test-skeleton.c (xrealloc): Support realloc-as-free
[platform/upstream/glibc.git] / ChangeLog
1 2016-06-23  Florian Weimer  <fweimer@redhat.com>
2
3         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
4
5 2016-06-23  Florian Weimer  <fweimer@redhat.com>
6
7         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
8         potentially unused.
9
10 2016-06-22  Florian Weimer  <fweimer@redhat.com>
11
12         * test-skeleton.c (write_message): New function.
13         * malloc/tst-mallocfork2.c (write_message): Remove.
14         * debug/tst-longjmp_chk2.c (write_indented): New function.
15         (write_message): Remove.
16         (stackoverflow_handler): Call write_indented.
17
18 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
19
20         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
21         "inexact" exceptions after fnstenv.
22         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
23         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
24         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
25
26 2015-06-22  Zack Weinberg  <zackw@panix.com>
27
28         * sysdeps/generic/bits/hwcap.h: Moved to ...
29         * bits/hwcap.h: Here.
30
31 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
32
33         * sysdeps/aarch64/memcpy.S (memcpy):
34         Further tuning for performance.
35
36 2016-06-21  Florian Weimer  <fweimer@redhat.com>
37
38         [BZ #20284]
39         * malloc/arena.c (reused_arena): Do not return NULL if we start
40         out with a non-corrupted arena.
41
42 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
43
44         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
45         * misc/tst-preadvwritev.c: New file.
46         * misc/tst-preadvwritev64.c: Likewise.
47         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
48         usage.
49         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
50         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
51         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
52         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
53
54 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
55
56         [BZ #19654]
57         * sysdeps/x86_64/fpu/Makefile: Added new tests.
58         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
59         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
60         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
61         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
62         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
63         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
64         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
65         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
66         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
67         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
68         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
69         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
70         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
71         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
72         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
73         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
74         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
75         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
76         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
77         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
78         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
79         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
80         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
81         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
82         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
83
84 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
85
86         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
87         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
88
89 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
90
91         * sysdeps/aarch64/memcpy.S (memcpy):
92         Rewrite of optimized memcpy and memmove.
93         * sysdeps/aarch64/memmove.S (memmove): Remove
94         memmove code (merged into memcpy.S).
95
96 2016-06-20  Florian Weimer  <fweimer@redhat.com>
97
98         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
99         * sysdeps/generic/dl-dtv.h: New file.
100         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
101         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
102         (dtv_t): Remove.
103         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
104         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
105         (dtv_t): Remove.
106         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
107         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
108         (dtv_t): Remove.
109         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
110         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
111         (dtv_t): Remove.
112         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
113         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
114         (dtv_t): Remove.
115         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
116         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
117         (dtv_t): Remove.
118         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
119         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
120         (dtv_t): Remove.
121         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
122         (dtv_t): Remove.
123         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
124         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
125         (dtv_t): Remove.
126         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
127         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
128         (dtv_t): Remove.
129         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
130         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
131         (dtv_t): Remove.
132         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
133         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
134         (dtv_t): Remove.
135         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
136         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
137         (dtv_t): Remove.
138         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
139         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
140         (dtv_t): Remove.
141         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
142         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
143         (dtv_t): Remove.
144         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
145         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
146         (dtv_t): Remove.
147
148 2016-06-20  Florian Weimer  <fweimer@redhat.com>
149
150         Revert symbol poisoning of  __malloc_initialize_hook.
151         * include/stdc-predef.h (__malloc_initialize_hook): Remove
152         poisoning.
153         * malloc/Makefile: Remove un-poisoning.
154         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
155         instead of old__malloc_initialize_hook.
156         * malloc/malloc-hooks.h: Likewise.
157         * malloc/malloc.c: Likewise.
158         * malloc/mcheck-init.c: Likewise.
159
160 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
161
162         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
163
164 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
165
166         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
167         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
168         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
169         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
170
171 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
172
173         * NEWS: Mention addition of nextup and nextdown.
174         * manual/arith.texi: Document nextup and nextdown.
175         * manual/libm-err-tab.pl: Add nextup and nextdown.
176         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
177         * math/Versions (libm): Add GLIBC_2.24.
178         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
179         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
180         Add new test.
181         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
182         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
183         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
184         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
185         (nextup_test_data): Likewise.
186         (nextdown_test_data): Likewise.
187         * math/s_nextdown.c: New file.
188         * math/s_nextdownf.c: Likewise.
189         * math/s_nextdownl.c: Likewise.
190         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
191         F(nextup): New function.
192         F(nextdown): Likewise.
193         * math/tgmath.h: Add nextup and nextdown.
194         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
195         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
196         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
197         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
198         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
199         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
200         Add nextup and nextdown.
201         (CFLAGS-nldbl-nextup.c): New variable.
202         (CFLAGS-nldbl-nextdown.c): Likewise.
203         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
204         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
205         * sysdeps/nacl/libm.abilist: Update.
206         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
207         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
208         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
209         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
210         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
211         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
212         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
213         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
214         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
215         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
216         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
217         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
219         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
220         Likewise.
221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
223         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
224         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
225         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
226         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
227         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
228         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
229         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
230         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
231         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
232         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
233         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
234
235 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
236
237         * manual/pattern.texi: Fix typos & grammar errors.
238
239 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
240
241         * manual/search.texi: Fix typos & grammar errors.
242
243 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
244
245         * manual/message.texi: Fix typos & grammar errors.
246
247 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
248
249         * manual/contrib.texi: Fix spelling typos.
250         * manual/crypt.texi: Likewise.
251         * manual/filesys.texi: Likewise.
252         * manual/locale.texi: Likewise.
253         * manual/message.texi: Likewise.
254         * manual/nss.texi: Likewise.
255         * manual/string.texi: Likewise.
256
257 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
258
259         * manual/locale.texi: Fix typos & grammar errors.
260
261 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
262
263         * manual/charset.texi: Fix typos & grammar errors.
264
265 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
266
267         * manual/string.texi: Fix typos.
268
269 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
270
271         * manual/ctype.texi: Fix typos.
272
273 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
274
275         * manual/memory.texi: Fix various typos & grammar errors.
276
277 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
278
279         [BZ #20255]
280         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
281         * math/libm-test.inc (fdim_test_data): Add another test.
282
283         [BZ #6796]
284         [BZ #20255]
285         [BZ #20256]
286         * math/s_fdim.c: Include <math_private.h>.
287         (__fdim): Use math_narrow_eval on result.
288         * math/s_fdimf.c: Include <math_private.h>.
289         (__fdimf): Use math_narrow_eval on result.
290         * sysdeps/i386/fpu/s_fdim.S: Remove file.
291         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
292         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
293         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
294         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
295         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
296         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
297         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
298         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
299         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
300         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
301         * math/libm-test.inc (fdim_test_data): Expect errno setting on
302         overflow.  Add sNaN tests.
303
304         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
305         fpclassify.
306         * math/s_fdimf.c (__fdimf): Likewise.
307         * math/s_fdiml.c (__fdiml): Likewise.
308
309 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
310
311         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
312         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
313         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
314         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
315         ifunc'ed strcasecmp/strncasecmp.
316         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
317         [EALIGN]: Removed.
318         [END]: Likewise.
319         [__strcasecmp]: Define instead of the above to control symbol name.
320         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
321         for __strcasecmp_power8.
322         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
323         for __strncasecmp_power8.
324         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
325         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
326         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
327         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
328         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
329         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
330
331 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
332
333         [BZ #20252]
334         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
335         arguments when second argument is a NaN.
336         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
337         qNaN tests.
338
339         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
340         (conj_test_data): Likewise.
341         (copysign_test_data): Likewise.
342         (creal_test_data): Likewise.
343         (fma_test_data): Likewise.
344         (fmod_test_data): Likewise.
345
346         [BZ #20250]
347         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
348         itself.
349         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
350         zero input to itself.
351         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
352         Likewise.
353         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
354         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
355         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
356         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
357         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
358
359 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
360
361         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
362         * nptl/tst-cancel4-common.c: New file.
363         * nptl/tst-cancel4-common.h: Likewise.
364         * nptl/tst-cancel4.c: Move common definitions to
365         tst-cancel4-common.{c,h} file.
366         * nptl/tst-cancel4_1.c: New test.
367         * nptl/tst-cancel4_2.c: New test.
368
369 2016-06-13  Florian Weimer  <fweimer@redhat.com>
370
371         [BZ #20248]
372         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
373         (write_message): New function.
374         (stackoverflow_handler): Call it instead of printf, to avoid
375         excessive stack usage by printf.
376         (do_test): Restore SIGSEGV, SIGBUS default handlers.
377
378 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
379
380         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
381         (prio_inherit_missing): Remove define.
382         * sysdeps/unix/sysv/linux/arm/kernel-features.h
383         (__ASSUME_FUTEX_LOCK_PI): Likewise.
384         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
385         Likewise.
386         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
387         (__ASSUME_FUTEX_LOCK_PI): Likewise.
388         * sysdeps/unix/sysv/linux/mips/kernel-features.h
389         (__ASSUME_FUTEX_LOCK_PI): Likewise.
390         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
391         (__ASSUME_FUTEX_LOCK_PI): Likewise.
392
393 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
394
395         [BZ #19670]
396         [BZ #19672]
397
398         * io/test-lfs.c (do_prepare): Use xmalloc.
399         * io/tst-fcntl.c (do_prepare): Likewise.
400         * libio/tst-fopenloc.c (do_bz17916): Likewise.
401         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
402         * login/tst-utmp.c (do_prepare): Likewise.
403         * posix/tst-exec.c (do_prepare): Likewise.
404         * posix/tst-pathconf.c (prepare): Likewise.
405         * posix/tst-spawn.c (do_prepare): Likewise.
406         * posix/tst-truncate.c (do_prepare): Likewise.
407         * rt/tst-aio.c (do_prepare): Likewise.
408         * rt/tst-aio64.c (do_prepare): Likewise.
409
410 2016-06-11  Florian Weimer  <fweimer@redhat.com>
411
412         [BZ #20237]
413         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
414         (get*ent): Set entidx to NULL during initialization.  If entidx is
415         NULL, start iteration from the beginning.
416
417 2016-06-11  Florian Weimer  <fweimer@redhat.com>
418
419         * malloc/malloc.c (musable): Return correct size for dumped fake
420         mmapped chunk.
421
422 2016-06-11  Florian Weimer  <fweimer@redhat.com>
423
424         [BZ #20222]
425         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
426         (_IO_cookie_write): Likewise.
427         (_IO_cookie_seek): Likewise.
428         (_IO_cookie_close): Likewise.
429         (_IO_old_cookie_seek): Likewise.
430         (set_callbacks): New function.
431         (_IO_cookie_init): Call set_callbacks to copy callbacks.
432
433 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
434
435         * locale/programs/localedef.c (oldstyle_tables): Remove.
436         * locale/programs/localedef.h (oldstyle_tables): Likewise.
437
438 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
439
440         [BZ #20240]
441         * math/Makefile (CFLAGS-s_modf.c): New variable.
442         (CFLAGS-s_modff.c): Likewise.
443         (CFLAGS-s_modfl.c): Likewise.
444         * math/libm-test.inc (modf_test_data): Add sNaN tests.
445
446 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
447
448         [BZ #20215]
449         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
450         [!__GNUC_PREREQ (3,2)]: Likewise.
451
452 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
453
454         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
455         (msghdr.msg_controllen): Likewise.
456         (cmsghdr.cmsg_len): Likewise.
457         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
458         ptw-oldsendmsg.
459         (CFLAGS-oldrecvmsg.c): Remove rule.
460         (CFLAGS-oldsendmsg.c): Likewise.
461         (CFLAGS-recvmsg.c): Add rule.
462         (CFLAGS-sendmsg.c): Likewise.
463         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
464         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
465         (CFLAGS-recvmsg.c): Remove rule.
466         (CFLAGS-sendmsg.c): Likewise.
467         (CFLAGS-oldrecvmsg.c): Likewise.
468         (CFLAGS-oldsendmsg.c): Likewise.
469         (CFLAGS-recvmmsg.c): Likewise.
470         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
471         to kernel defined interfaces.
472         (msghdr.msg_controllen): Likewise.
473         (cmsghdr.cmsg_len): Likewise.
474         (msghdr.__glibc_reserved1): Remove member.
475         (msghdr.__glibc_reserved2): Likewise.
476         (cmsghdr.__glibc_reserved1): Likewise.
477         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
478         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
479         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
480         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
481         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
482         version.
483         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
484         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
485         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
486         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
487         Remove recvmsg and sendmsg.
488         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
489         Likewise.
490         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
491         Likewise.
492         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
493         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
494         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
495         Likewise.
496         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
497         Likewise.
498         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
499         [libc] (GLIBC_2.24): Likewise.
500         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
501         Likewise.
502         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
503         Likewise.
504         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
505         [libc] (GLIBC_2.24): Likewise.
506         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
507         Likewise.
508         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
509         Likewise.
510         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
511         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
512         Likewise.
513         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
514         Likewise.
515         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
516         Likewise.
517         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
518         Likewise.
519         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
520         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
521         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
522         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
523         version for {recv,send,recm,sendm}msg.
524         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
525         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
526         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
527         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
528         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
529         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
530         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
531         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
532         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
533         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
534         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
535         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
537         Likewise.
538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
539         Likewise.
540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
541         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
542         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
543         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
544         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
545         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
546         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
547         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
548         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
549         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
550         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
551         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
552         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
553
554 2016-06-10  Florian Weimer  <fweimer@redhat.com>
555
556         [BZ #19564]
557         Remove __malloc_initialize_hook from the API.
558         * malloc/malloc.h (__malloc_initialize_hook): Remove.
559         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
560         #pragma GCC poison.
561         * malloc/malloc-hooks.h: New file.
562         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
563         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
564         (old__malloc_initialize_hook): Rename from
565         __malloc_initialize_hook to evade poisoning.  Turn into compat
566         symbol.
567         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
568         __malloc_initialize_hook.
569         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
570         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
571         * manual/memory.texi (Hooks for Malloc): Remove
572         __malloc_initialize_hook.  Adjust hook example.
573
574 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
575
576         [BZ #20235]
577         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
578         itself.
579         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
580         * math/libm-test.inc (log2_test_data): Add sNaN tests.
581
582         [BZ #20234]
583         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
584         infinity or NaN input to itself.
585
586         [BZ #20233]
587         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
588         to itself.
589
590         [BZ #20232]
591         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
592         itself.
593
594 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
595
596         * sysdeps/x86_64/start.S (_start): Always indirect branch to
597         __libc_start_main via GOT.
598
599 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
600
601         * sysdeps/x86_64/memcopy.h: New file.
602         * sysdeps/x86_64/wordcopy.c: Likewise.
603
604 2016-06-09  Florian Weimer  <fweimer@redhat.com>
605
606         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
607         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
608         <cstdlib>.
609         (optimization_barrier): New.
610         (do_test): Use it.  Call quick_exit in the global namespace.
611         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
612         instead of <cstdlib>, <thread>.
613         (optimization_barrier): New.
614         (non_main_thread): Adjust declaration.  Call optimization_barrier.
615         Call quick_exit in the global namespace.
616         (do_test): Call optimization_barrier.  Use pthread_create,
617         pthread_join instead of std::thread.
618
619 2016-06-09  Andreas Schwab  <schwab@suse.de>
620
621         [BZ #19755]
622         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
623         new entries in auto-propagate mode.
624         * nscd/grpcache.c (cache_addgr): Likewise.
625
626 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
627
628         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
629         New functions.
630         (add_temp_file): Use them.
631
632 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
633
634         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
635
636 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
637
638         [BZ #20229]
639         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
640         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
641         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
642
643         [BZ #20228]
644         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
645         itself.
646         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
647         * math/libm-test.inc (log10_test_data): Add sNaN tests.
648
649         [BZ #20227]
650         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
651         itself.
652         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
653         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
654         * math/libm-test.inc (log_test_data): Add sNaN tests.
655
656         [BZ #20226]
657         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
658         itself.
659         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
660         * math/libm-test.inc (exp_test_data): Add sNaN tests.
661         (exp10_test_data): Likewise.
662         (expm1_test_data): Likewise.
663
664         [BZ #20225]
665         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
666         itself.
667         * math/s_ldexpf.c (__ldexpf): Likewise.
668         * math/s_ldexpl.c (__ldexpl): Likewise.
669         * math/w_scalbln.c (__w_scalbln): Likewise.
670         * math/w_scalblnf.c (__w_scalblnf): Likewise.
671         * math/w_scalblnl.c (__w_scalblnl): Likewise.
672         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
673         (scalbln_test_data): Likewise.
674
675         [BZ #20224]
676         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
677         argument to itself.
678         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
679
680 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
681
682         [BZ #19776]
683         * sysdeps/x86_64/memcpy.S: Make it dummy.
684         * sysdeps/x86_64/mempcpy.S: Likewise.
685         * sysdeps/x86_64/memmove.S: New file.
686         * sysdeps/x86_64/memmove_chk.S: Likewise.
687         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
688         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
689         * sysdeps/x86_64/memmove.c: Removed.
690         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
691         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
692         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
693         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
694         Likewise.
695         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
696         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
697         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
698         memcpy-sse2-unaligned, memmove-avx-unaligned,
699         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
700         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
701         (__libc_ifunc_impl_list): Replace
702         __memmove_chk_avx512_unaligned_2 with
703         __memmove_chk_avx512_unaligned.  Remove
704         __memmove_chk_avx_unaligned_2.  Replace
705         __memmove_chk_sse2_unaligned_2 with
706         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
707         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
708         with __memmove_avx512_unaligned.  Replace
709         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
710         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
711         with __memcpy_chk_avx512_unaligned.  Remove
712         __memcpy_chk_avx_unaligned_2.  Replace
713         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
714         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
715         Replace __memcpy_avx512_unaligned_2 with
716         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
717         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
718         with __mempcpy_chk_avx512_unaligned.  Remove
719         __mempcpy_chk_avx_unaligned_2.  Replace
720         __mempcpy_chk_sse2_unaligned_2 with
721         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
722         Replace __mempcpy_avx512_unaligned_2 with
723         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
724         Replace __mempcpy_sse2_unaligned_2 with
725         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
726         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
727         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
728         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
729         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
730         (ENTRY): Removed.
731         (END): Likewise.
732         (ENTRY_CHK): Likewise.
733         (libc_hidden_builtin_def): Likewise.
734         Don't include ../memcpy.S.
735         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
736         __memcpy_chk_avx512_unaligned_erms and
737         __memcpy_chk_avx512_unaligned.  Use
738         __memcpy_chk_avx_unaligned_erms and
739         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
740         Default to __memcpy_chk_sse2_unaligned.
741         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
742         Change function suffix from unaligned_2 to unaligned.
743         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
744         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
745         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
746         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
747         (ENTRY): Removed.
748         (END): Likewise.
749         (ENTRY_CHK): Likewise.
750         (libc_hidden_builtin_def): Likewise.
751         Don't include ../mempcpy.S.
752         (mempcpy): New.  Add a weak alias.
753         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
754         __mempcpy_chk_avx512_unaligned_erms and
755         __mempcpy_chk_avx512_unaligned.  Use
756         __mempcpy_chk_avx_unaligned_erms and
757         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
758         Default to __mempcpy_chk_sse2_unaligned.
759
760 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
761
762         [BZ #19881]
763         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
764         into ...
765         * sysdeps/x86_64/memset.S: This.
766         (__bzero): Removed.
767         (__memset_tail): Likewise.
768         (__memset_chk): Likewise.
769         (memset): Likewise.
770         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
771         defined.
772         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
773         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
774         (__memset_zero_constant_len_parameter): Check SHARED instead of
775         PIC.
776         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
777         memset-avx2 and memset-sse2-unaligned-erms.
778         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
779         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
780         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
781         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
782         (__bzero): Enabled.
783         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
784         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
785         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
786         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
787         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
788         (memset): Removed.
789         (__memset_chk): Likewise.
790         (MEMSET_SYMBOL): New.
791         (libc_hidden_builtin_def): Replace __memset_sse2 with
792         __memset_sse2_unaligned.
793         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
794         __memset_chk_sse2 and __memset_chk_avx2 with
795         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
796         Use __memset_chk_sse2_unaligned_erms or
797         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
798         __memset_chk_avx512_unaligned_erms and
799         __memset_chk_avx512_unaligned.
800
801 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
802
803         * math/gen-auto-libm-test.c (fp_format_desc): remove
804         suffix member.
805         (output_generic_value): Remove usage of suffix member,
806         and the resulting unuse of the fp_format argument.
807         (output_for_one_input_case): Remove unused fp_format
808         parameter.
809
810         * math/auto-libm-test-out: Regenerate.
811
812         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
813         usage with TEST_COND_ibm128.
814         (TEST_COND_flt_32): Remove.
815         (TEST_COND_dbl_64): Remove.
816         (TEST_COND_ldbl_96_intel): Remove.
817         (TEST_COND_ldbl_96_m68k): Remove.
818         (TEST_COND_ldbl_128): Remove.
819
820 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
821
822         * auto-libm-test-in:
823         Replace flt-32 usage with binary32.
824         Replace dbl-64 usage with binary64.
825         Replace ldbl-intel-96 usage with intel96.
826         Replace ldbl-m68k-96 usage with m68k96.
827         Replace ldbl-128ibm usage with ibm128.
828         Replace ldbl-128 usage with binary128.
829
830         * auto-libm-test-out: Regenerate.
831
832 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
833
834         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
835         (parse_ulps): Dynamically generate type name matching
836         string from all_floats.
837         (get_ulps): Generate the ulps as an array instead.
838         (output_ulps): Dynamically compose the type based
839         on the number of supported formats, and print
840         the indices as type specific helper macros.
841
842         * math/libm-test.inc: Remove comment about CHOOSE.
843         (ulp_data): Generate the type in libm-test-ulps.h.
844         (ULP_IDX): New macro.
845         (find_ulps): Update usage of max_ulp.
846
847         * math/test-double-vlen2.h (CHOOSE): Remove.
848         * math/test-double-vlen4.h (CHOOSE): Likewise.
849         * math/test-double-vlen8.h (CHOOSE): Likewise.
850         * math/test-float.c (CHOOSE): Likewise.
851         * math/test-float-finite.c (CHOOSE): Likewise.
852         * math/test-double.c (CHOOSE): Likewise.
853         * math/test-double-finite.c (CHOOSE): Likewise.
854         * math/test-idouble.c (CHOOSE): Likewise.
855         * math/test-ifloat.c (CHOOSE): Likewise.
856         * math/test-ildoubl.c (CHOOSE): Likewise.
857         * math/test-ldouble-finite.c (CHOOSE): Likewise.
858         * math/test-ldouble.c (CHOOSE): Likewise.
859
860         * math/test-float.h (TEST_FLOAT): Remove.
861         * math/test-double.h (TEST_DOUBLE): Likewise.
862         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
863
864 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
865
866         * math/gen-libm-test.pl: (apply_lit): New subroutine.
867         (parse_args): Strip C suffix from floating point literals
868         typed with 'f' and wrap them with LIT().
869
870         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
871         (test_ff_f_data_nexttoward): Rename to
872         (test_fj_f_data): New struct.
873         (nexttoward_test_data): Relabel tests as
874         TEST_fj_f instead of TEST_ff_f.
875
876 2016-06-08  Florian Weimer  <fweimer@redhat.com>
877
878         Emacs bug 23726.
879         * malloc/malloc.c (dumped_main_arena_start): Update comment.
880         (__libc_realloc): Correct size computation for dumped fake mmapped
881         chunks.
882
883 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
884
885         [BZ #20219]
886         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
887         to itself.
888         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
889
890         [BZ #20218]
891         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
892         to itself.
893         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
894
895 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
896
897         [BZ #20195]
898         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
899         check to ...
900         (init_cpu_features): Here.
901
902 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
903
904         [BZ #20214]
905         * sysdeps/unix/sysv/linux/bits/in.h
906         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
907          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
908         Define to 1.
909         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
910          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
911         Define to 0.
912         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
913         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
914
915 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
916
917         [BZ #20198]
918         * stdlib/Makefile (tests): Add tst-quick_exit, and
919         tst-thread-quick_exit.
920         [ifeq ($(have-cxx-thread_local),yes)]
921         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
922         (CFLAGS-tst-thread-quick_exit.o): Likewise.
923         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
924         (LDLIBS-tst-thread-quick_exit): Likewise.
925         [ifneq ($(have-cxx-thread_local),yes)]
926         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
927         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
928         If run_dtors is true call __call_tls_dtors.
929         (exit): Call __run_exit_handlers with run_dtors set to true.
930         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
931         definition.
932         * stdlib/quick_exit.c (quick_exit): Remove function.
933         (__new_quick_exit): New function.
934         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
935         function.
936         * stdlib/tst-quick_exit.cc: New file.
937         * stdlib/tst-thread-quick_exit.cc: New file.
938         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
939         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
940         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
941         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
942         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
943         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
944         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
945         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
946         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
947         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
948         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
949         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
950         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
951         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
952         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
953         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
955         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
958         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
959         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
960         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
961         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
962         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
963         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
964         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
965         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
966         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
967         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
968
969 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
970
971         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
972         a typo in comments.
973
974 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
975
976         [BZ #20213]
977         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
978         argument to itself.
979         * math/libm-test.inc (asin_test_data): Add sNaN tests.
980
981 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
982
983         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
984         required flags.
985         (CFLAGS-pwritev64.c): Likewise.
986         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
987         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
988         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
989         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
990         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
991         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
992         syscall from auto-generation.
993         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
994         [WORDSIZE == 64] (pwritev64): Remove macro.
995         [!PWRITEV] (PWRITEV): Likewise.
996         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
997         [!PWRITEV] (PWRITE): Likewise.
998         [!PWRITEV] (OFF_T): Likewise.
999         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1000         (LO_HI_LONG): Remove macro.
1001         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
1002         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
1003         (PWRITEV): Remove macro.
1004         (PWRITEV_REPLACEMENTE): Likewise.
1005         (PWRITE): Likewise.
1006         (OFF_T): Likewise.
1007         (pwritev64): New function.
1008         * nptl/tst-cancel4.c (tf_writev): Add test.
1009
1010         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
1011         required flags.
1012         (CFLAGS-preadv64.c): Likewise.
1013         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
1014         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
1015         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
1016         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
1017         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
1018         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
1019         syscall from auto-generation.
1020         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
1021         [WORDSIZE == 64] (preadv64): Remove macro.
1022         [!PREADV] (PREADV): Likewise.
1023         [!PREADV] (PREADV_REPLACEMENT): Likewise.
1024         [!PREADV] (PREAD): Likewise.
1025         [!PREADV] (OFF_T): Likewise.
1026         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
1027         (LO_HI_LONG): Remove macro.
1028         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
1029         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
1030         (PREADV): Remove macro.
1031         (PREADV_REPLACEMENTE): Likewise.
1032         (PREAD): Likewise.
1033         (OFF_T): Likewise.
1034         (preadv64): New function.
1035         * nptl/tst-cancel4.c (tf_preadv): Add test.
1036
1037 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1038
1039         [BZ #20212]
1040         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
1041         argument to itself.
1042         * math/libm-test.inc (acos_test_data): Add sNaN tests.
1043
1044 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1045
1046         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
1047         New symbol defined as libc_hidden_def.
1048         (strcasestr): Became a weak alias to __strcasestr.
1049         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
1050         according to multi-arch support.  Move __stpncpy hidden
1051         definition from here to...
1052         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
1053         symbol stpncpy.
1054         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
1055         libc_hidden_builtin_def.
1056         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
1057         memset symbol to use when multi-arch support is available.
1058
1059 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
1060
1061         * dlfcn/tst-rec-dlopen.c: Include string.h.
1062
1063 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
1064
1065         * manual/install.texi: Remove mention of --without-tls
1066         * INSTALL: Regenerate.
1067
1068 2016-06-05  Florian Weimer  <fweimer@redhat.com>
1069
1070         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
1071         Remove.
1072         (call_function, interposed_malloc_called): New variables.
1073         (malloc): New function.
1074         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
1075         and clear call_function as needed.
1076
1077 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
1078
1079         * include/wchar.h (__wmemset): Use __typeof.
1080
1081 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
1082
1083         * include/wchar.h (__wmemset): Declare function without typeof.
1084
1085 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
1086
1087         [BZ #20205]
1088         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
1089         exponent when incrementing negative subnormal with low mantissa
1090         word zero.
1091         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
1092         Add another test.
1093
1094 2016-06-03  Florian Weimer  <fweimer@redhat.com>
1095
1096         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
1097         __wmemset instead of wmemset.
1098
1099 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
1100
1101         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
1102         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
1103         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
1104         __USE_KERNEL_IPV6_DEFS to 0.
1105         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
1106         Update comment.
1107
1108 2016-06-01  Florian Weimer  <fweimer@redhat.com>
1109
1110         [BZ #19861]
1111         Do not use IFUNC resolver with potentially unrelocated symbol.
1112         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
1113         (DEFINE_FORK): Remove macro and inline definition.
1114         (fork_alias): Renamed from fork_ifunc.
1115         (__fork_alias): Renamed from __fork_ifunc.
1116
1117 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
1118
1119         [BZ 19653]
1120         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
1121         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
1122
1123 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1124
1125         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
1126         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
1127         i386-linux-gnu).
1128         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
1129         Set to no.
1130         * sysdeps/mach/hurd/configure: Refresh.
1131
1132 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1133
1134         [BZ #20178]
1135         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
1136         on failure instead of exit.
1137
1138 2016-05-30  Roland McGrath  <roland@hack.frob.com>
1139
1140         [BZ #3629]
1141         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
1142         of POSIX.1-2008.
1143
1144 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1145
1146         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
1147           Use PLT entry for calling _hurd_self_sigstate.
1148
1149 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1150
1151         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
1152         available logical processors with SMT level type sharing L2
1153         cache for Intel processors.
1154
1155 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1156
1157         [BZ #20160]
1158         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
1159         argument to itself before returning the result.
1160         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1161         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1162         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1163         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
1164         Likewise.
1165         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
1166         Likewise.
1167         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
1168         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
1169         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
1170         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
1171         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1172         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1173
1174         [BZ #20160]
1175         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
1176         argument to itself before returning the result.
1177         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1178         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1179         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1180         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
1181         Likewise.
1182         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
1183         Likewise.
1184         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
1185         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
1186         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
1187         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
1188         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1189         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1190
1191 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1192
1193         * libm-test.inc: Replace usage of M_El with
1194         (lit_e): New macro.
1195
1196 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1197
1198         * libm-test.inc: Replace usage of M_PI_4l with
1199         (lit_pi_4_d): New macro.
1200
1201 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1202
1203         * libm-test.inc: Replace usage of M_PIl with
1204         (lit_pi): New macro.
1205
1206 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1207
1208         * libm-test.inc: Replace usage of M_PI2l with
1209         (lit_pi_2_d): New macro.
1210
1211         * math/test-double.h (LITM): New macro.
1212         * math/test-float.h (LITM): Likewise.
1213         * math/test-ldouble.h (LITM): Likewise.
1214
1215 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1216
1217         * libm-test.inc (M_PI_34l): Rename to
1218         (lit_pi_3_m_4_d): New Macro.
1219         (M_PI_34_LOG10El): Rename to
1220         (lit_pi_3_m_4_ln10_m_d): New Macro.
1221         (M_PI2_LOG10El): Rename to
1222         (lit_pi_2_ln10_m_d):  New Macro.
1223         (M_PI4_LOG10El): Rename to
1224         (lit_pi_4_ln10_m_d):  New Macro.
1225         (M_PI_LOG10El): Rename to
1226         (lit_pi_ln10_d):  New Macro.
1227
1228 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1229
1230         [BZ #20157]
1231         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
1232         determine whether to negate low half if [_ARCH_PPCGR], and integer
1233         comparison otherwise.
1234         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
1235         determine whether to negate low half.
1236
1237         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
1238         (NO_TEST_INLINE_DOUBLE): Likewise.
1239         (TEST_COND_x86_64): Likewise.
1240         (TEST_COND_x86): Likewise.
1241         (M_PI_6l): Likewise.
1242
1243 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1244
1245         * math/libm-test.inc:
1246         (TEST_FLOAT): Change usage to TEST_COND_binary32.
1247         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
1248         (TEST_LDOUBLE): Update usage to evaluate as true if
1249         the guarded tests match the property being tested.
1250         (LDBL_MAX_EXP): Change to MAX_EXP.
1251         (LDBL_MIN_EXP): Change to MIN_EXP.
1252         (LDBL_MANT_DIG): Change to MANT_DIG, except for
1253         nexttoward tests.
1254
1255 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1256
1257         * math/libm-test.inc:
1258         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
1259         (TYPE_MIN): Likewise.
1260         (TYPE_TRUE_MIN): Likewise.
1261         (TYPE_MAX): Likewise.
1262         (MIN_EXP): Likewise.
1263         (MAX_EXP): Likewise.
1264         (MANT_DIG): Likewise.
1265
1266         (FSTR_MAX): New macro.
1267         (__CONCATX): Likewise.
1268         (QTYPE_STR): Likewise.
1269         (TEST_COND_binary32): Likewise.
1270         (TEST_COND_binary64): Likewise.
1271         (TEST_COND_binary128): Likewise.
1272         (TEST_COND_ibm128): Likewise.
1273         (TEST_COND_intel96): Likewise.
1274         (TEST_COND_m68k96): Likewise.
1275
1276         (TEST_COND_flt_32): Redefine as equivalent format test macro.
1277         (TEST_COND_dbl_64): Likewise.
1278         (TEST_COND_ldbl_96_intel): Likewise.
1279         (TEST_COND_ldbl_96_m68k): Likewise.
1280         (TEST_COND_ldbl_128): Likewise.
1281         (TEST_COND_ldbl_128ibm): Likewise.
1282
1283         (plus_zero): Redefine using LIT macro.
1284         (minus_zero): Likewise.
1285         (plus_infty): Redefine as (INF).
1286         (minux_infty): Redefine as (-INF).
1287         (max_value): Redefine as TYPE_MAX.
1288         (min_value): Redefine as TYPE_MIN.
1289         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
1290
1291         (print_float): Refactor to use snprintf to convert FLOAT values
1292         to string. This brings it closer to dropin replacement of strtof
1293         for the TS 18661 defined types.
1294         (update_stats): Likewise.
1295         (print_complex_function_ulps): Likewise.
1296         (print_max_error): Likewise.
1297         (print_complex_max_error): Likewise.
1298         (check_float_internal): Likewise.
1299
1300         * math/test-float.h (PREFIX): New macro.
1301         (LIT): Likewise.
1302         (TYPE_STR): Likewise.
1303         (FTOSTR): Likewise.
1304
1305         * math/test-double.h (PREFIX): New macro.
1306         (LIT): Likewise.
1307         (TYPE_STR): Likewise.
1308         (FTOSTR): Likewise.
1309
1310         * math/test-ldouble.h (PREFIX): New macro.
1311         (LIT): Likewise.
1312         (TYPE_STR): Likewise.
1313         (FTOSTR): Likewise.
1314
1315 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1316
1317         [BZ #20156]
1318         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
1319         to itself when zero or not finite.
1320         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
1321         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
1322         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
1323         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
1324
1325 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
1326
1327         [BZ #20153]
1328         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
1329         x * x + x for infinities and NaNs.
1330
1331         [BZ #20151]
1332         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
1333         argument to itself before returning result.
1334         (__ieee754_y0l): Likewise.
1335         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1336         (__ieee754_y1l).
1337
1338         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
1339         (atan_test_data): Likewise.
1340         (ceil_test_data): Likewise.
1341         (cos_test_data): Likewise.
1342         (cosh_test_data): Likewise.
1343         (erf_test_data): Likewise.
1344         (exp2_test_data): Likewise.
1345         (fabs_test_data): Likewise.
1346         (floor_test_data): Likewise.
1347         (ilogb_test_data): Likewise.
1348         (j0_test_data): Likewise.
1349         (j1_test_data): Likewise.
1350         (jn_test_data): Likewise.
1351         (lgamma_test_data): Likewise.
1352         (lrint_test_data): Likewise.
1353         (llrint_test_data): Likewise.
1354         (logb_test_data): Likewise.
1355         (lround_test_data): Likewise.
1356         (llround_test_data): Likewise.
1357         (nearbyint_test_data): Likewise.
1358         (rint_test_data): Likewise.
1359         (round_test_data): Likewise.
1360         (sin_test_data): Likewise.
1361         (sincos_test_data): Likewise.
1362         (sinh_test_data): Likewise.
1363         (sqrt_test_data): Likewise.
1364         (tan_test_data): Likewise.
1365         (tanh_test_data): Likewise.
1366         (tgamma_test_data): Likewise.
1367         (trunc_test_data): Likewise.
1368         (y0_test_data): Likewise.
1369         (y1_test_data): Likewise.
1370         (yn_test_data): Likewise.
1371
1372         * math/libm-test.inc: Update comment about NaN testing.
1373         (TEST_SNAN): New macro.
1374         (snan_value): Likewise.
1375         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
1376         (fpclassify_test_data): Add sNaN tests.
1377         (isfinite_test_data): Likewise.
1378         (isinf_test_data): Likewise.
1379         (isnan_test_data): Likewise.
1380         (isnormal_test_data): Likewise.
1381         (issignaling_test_data): Likewise.
1382         (signbit_test_data): Likewise.
1383         * math/gen-libm-test.pl (%beautify): Add snan_value.
1384         (show_exceptions): Add argument $test_snan.
1385         (parse_args): Handle snan_value as non-finite.  Update call to
1386         show_exceptions.
1387         * math/Makefile (libm-test-no-inline-cflags): Add
1388         -fsignaling-nans.
1389
1390 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1391
1392         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
1393         (CFLAGS-oldsendmsg.c): Add rule.
1394         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1395         Correct recvmsg symbol name.
1396         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
1397         Likewise.
1398
1399 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1400
1401         * sysdeps/unix/sysv/linux/Makefile
1402         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
1403         oldsendmmsg.
1404         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
1405         sendmmsg.
1406         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1407         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1408         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1409         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1411         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1412         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1413         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
1414         Likewise.
1415         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1416         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
1417         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
1418         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
1419         iovlen and controllen fields to adjust to POSIX specification.
1420         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
1421
1422         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
1423         and change to correct expected type.
1424         (msghdr.msg_controllen): Likewise.
1425         (cmsghdr.cmsg_len): Likewise.
1426         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
1427         expected POSIX assumption about the size.
1428         (msghdr.msg_controllen): Likewise.
1429         (msghdr.__glibc_reserved1): Likewise.
1430         (msghdr.__glibc_reserved2): Likewise.
1431         (cmsghdr.cmsg_len): Likewise.
1432         (cmsghdr.__glibc_reserved1): Likewise.
1433         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
1434         Add ptw-oldrecvmsg and ptw-oldsendmsg.
1435         (CFLAGS-sendmsg.c): Remove rule.
1436         (CFLAGS-recvmsg.c): Likewise.
1437         (CFLAGS-oldsendmsg.c): Add rule.
1438         (CFLAGS-oldrecvmsg.c): Likewise.
1439         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
1440         recvmsg and sendmsg.
1441         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
1442         Likewise.
1443         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
1444         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
1445         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
1446         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
1447         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
1448         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
1449         Likewise.
1450         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
1451         Likewise.
1452         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
1453         Likewise.
1454         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
1455         Likewise.
1456         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
1457         Likewise.
1458         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
1459         Likewise.
1460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
1461         (GLIBC_2.24): Likewise.
1462         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
1463         Likewise.
1464         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
1465         Likewise.
1466         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
1467         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
1468         Likewise.
1469         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
1470         Likewise.
1471         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
1472         Likewise.
1473         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
1474         (GLIBC_2.24): Likewise.
1475         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
1476         Likewise.
1477         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
1478         Likewise.
1479         * sysdeps/unix/sysv/linux/Makefile
1480         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
1481         (CFLAGS-sendmsg.c): Add rule.
1482         (CFLAGS-recvmsg.c): Likewise.
1483         (CFLAGS-oldsendmsg.c): Likewise.
1484         (CFLAGS-oldrecvmsg.c): Likewise.
1485         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
1486         initialization.
1487         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
1488         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
1489         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
1490         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
1491         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
1492         iovlen and controllen fields to adjust to POSIX specification.
1493         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
1494         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
1495         added recvmsg and sendmsg.
1496         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1497         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1498         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1499         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1500         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1501         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1502         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1503         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1504         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1505         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1506         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1507         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1509         Likewise.
1510         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
1511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1512         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1513         Likewise.
1514         Likewise.
1515         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1516         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1517         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1518         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1519         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1520         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1521         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1522         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1523         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1524         Likewise.
1525         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1526         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1527
1528         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
1529         from auto-generation.
1530         (sendmsg): Likewise.
1531         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
1532         (sendmsg): Likewise.
1533         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
1534         (sendmsg): Likewise.
1535         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
1536         (sendmsg): Likewise.
1537         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
1538         (sendmsg): Likewise.
1539         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
1540         (sendmsg): Likewise.
1541         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
1542         Likewise.
1543         (sendmsg): Likewise.
1544         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
1545         (sendmsg): Likewise.
1546         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1547         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1548         Remove.
1549         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1550         Likewise.
1551         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1552         Undefine.
1553         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1554         Likewise.
1555         * sysdeps/unix/sysv/linux/kernel-features.h
1556         (__ASSUME_SENDMSG_SYSCALL): Define.
1557         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1558         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1559         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1560         Remove.
1561         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1562         Likewise.
1563         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1564         Undefine.
1565         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1566         Likewise.
1567         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1568         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1569         Remove.
1570         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1571         Likewise.
1572         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1573         Undefine.
1574         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1575         Likewise.
1576         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1577         (__ASSUME_SENDMSG_SYSCALL): Undefine.
1578         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1579         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1580         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1581         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1582         * sysdeps/unix/sysv/linux/sh/kernel-features.h
1583         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1584         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1585
1586 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1587
1588         * stdlib/gen-tst-strtod-round.c: Add backslash to
1589         compile command in comment.
1590         (printfp): Remove the literal suffix, and define an infinite
1591         value as INF to avoid expansion clash with INFINITY.
1592         (round_str): Remove the literal suffix.
1593         (round_for_all): Likewise, remove the now duplicate ldbl-64
1594         entry, and remove some magic constants.
1595
1596         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
1597         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
1598         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
1599         (_CONCAT): New macro.
1600         (CONCAT): Likewise.
1601         (CHOOSE_ld): Likewise.
1602         (CHOOSE_f): Likewise.
1603         (CHOOSE_d): Likewise.
1604         (FTYPE_MEMBER): Likewise.
1605         (BOOL_MEMBER): Likewise.
1606         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
1607         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
1608         (_XNTRY): Likewise.
1609         (XNTRY): Likewise.
1610         (_ENTRY): Likewise.
1611         (ENTRY): Likewise.
1612         (test_exactness): Generate members via macro.
1613         (test_results): Likewise.
1614         (test): Update members.
1615         (TEST): Redefine using new macros.
1616         (INF): New macro.
1617         (fetestmodes): New structure.
1618         (do_test): Refactor to be type generic.
1619         (test_in_one_mode): Refactor duplicate code into
1620         (GEN_ONE_TEST): New macro.
1621
1622         * stdlib/tst-strtod-round-data.h: Regenerate.
1623
1624         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
1625         Extend to pass additional arbitrary parameters to
1626         generators.
1627
1628 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
1629
1630         [BZ #15479]
1631         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
1632         floating-point state after first floating-point operation on
1633         input.  Restore full floating-point state instead of just rounding
1634         mode.
1635         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1636         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1637         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1638         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1639         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1640
1641         [BZ #15479]
1642         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
1643         floating-point state after first floating-point operation on
1644         input.  Restore full floating-point state instead of just rounding
1645         mode.
1646         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1647         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1648         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1649         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1650         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1651
1652 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1653
1654         [BZ #19727]
1655         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
1656         valid high surrogate.
1657         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
1658         of an utf16 surrogate.
1659         * iconv/gconv_simple.c (BODY): Likewise.
1660         * iconvdata/bug-iconv12.c: New file.
1661         * iconvdata/Makefile (tests): Add bug-iconv12.
1662
1663 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1664
1665         [BZ #19726]
1666         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
1667         outptrp in case of an illegal input.
1668         * iconv/tst-iconv6.c: New file.
1669         * iconv/Makefile (tests): Add tst-iconv6.
1670
1671 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1672
1673         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
1674         an error in case of a value in range of an utf16 low surrogate.
1675
1676 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1677
1678         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
1679         an error in case of a value in range of an utf16 low surrogate.
1680
1681 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1682
1683         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
1684         Move to ...
1685         * sysdeps/s390/Makefile: ... here.
1686         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
1687         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
1688         (BRANCH_ON_COUNT): New define.
1689         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
1690         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
1691         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
1692         run on s390-32, too.
1693         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
1694         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
1695         run on s390-32, too.
1696         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
1697         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
1698         run on s390-32, too.
1699
1700 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1701
1702         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
1703         etf3eh or new vector loop-variant.
1704
1705 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1706
1707         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
1708         etf3eh or new vector loop-variant.
1709
1710 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1711
1712         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
1713         or new vector loop-variant.
1714
1715 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1716
1717         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
1718         Rename to TR_LOOP and usage of tr instead of troo instruction.
1719
1720 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1721
1722         * sysdeps/s390/multiarch/gconv_simple.c: New File.
1723         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
1724
1725 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1726
1727         * sysdeps/s390/multiarch/8bit-generic.c: New File.
1728         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
1729         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
1730         New override define.
1731         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
1732
1733 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1734
1735         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
1736         * sysdeps/s390/configure.ac: Add test for S390 vector register
1737         support in gcc.
1738         * sysdeps/s390/configure: Regenerated.
1739
1740 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1741
1742         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
1743         Install file from $(objpfx)gconv-modules.
1744         ($(objpfx)gconv-modules): Concatenate architecture specific file
1745         in variable sysdeps-gconv-modules and gconv-modules in src dir.
1746         * sysdeps/s390/gconv-modules: New file.
1747         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
1748         Deleted.
1749         ($(objpfx)gconv-modules-s390): Deleted.
1750         (sysdeps-gconv-modules): New variable.
1751
1752 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
1753
1754         [BZ #15479]
1755         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
1756         of immediate operand to rounding instruction.
1757         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
1758         Likewise.
1759         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
1760         Likewise.
1761         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
1762         Likewise.
1763
1764 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1765
1766         * math/libm-test.inc (MIN_EXP): Directly define as
1767         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
1768
1769 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1770
1771         * math/libm-test.inc (MANT_DIG): Directly define as
1772         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
1773
1774 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1775
1776         * stdlib/gen-tst-strtod-round.c (main):
1777           Change usage to more closely match the generated
1778           output.  Add usage and compilation instructions.
1779           (string_to_fp): Add and use FILE* parameter as
1780           output target.
1781           (print_fp): Likewise.
1782           (round_str): Likewise.
1783           (round_for_all): Likewise.
1784         * stdlib/tst-strtod-round.c (tests): Move into
1785         * stdlib/tst-strtod-round-data.h: New file.
1786
1787 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
1788
1789         [BZ #15479]
1790         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
1791         (__round): Do not force "inexact" exception.
1792         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
1793         variable.
1794         (__round): Do not force "inexact" exception.
1795         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
1796         (__roundf): Do not force "inexact" exception.
1797         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
1798         (__roundl): Do not force "inexact" exception.
1799         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
1800         (__roundl): Do not force "inexact" exception.
1801         * math/libm-test.inc (round_test_data): Do not allow spurious
1802         "inexact" exceptions.
1803
1804         [BZ #15479]
1805         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
1806         exception in comment.
1807         (huge): Remove variable.
1808         (__floor): Do not force "inexact" exception.
1809         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
1810         "inexact" exception in comment.
1811         (huge): Remove variable.
1812         (__floor): Do not force "inexact" exception.
1813         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
1814         exception in comment.
1815         (huge): Remove variable.
1816         (__floorf): Do not force "inexact" exception.
1817         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
1818         exception in comment.
1819         (huge): Remove variable.
1820         (__floorl): Do not force "inexact" exception.
1821
1822         [BZ #15479]
1823         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
1824         exception in comment.
1825         (huge): Remove variable.
1826         (__ceil): Do not force "inexact" exception.
1827         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
1828         "inexact" exception in comment.
1829         (huge): Remove variable.
1830         (__ceil): Do not force "inexact" exception.
1831         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
1832         (__ceilf): Do not force "inexact" exception.
1833         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
1834         exception in comment.
1835         (huge): Remove variable.
1836         (__ceill): Do not force "inexact" exception.
1837
1838 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1839
1840         * config.h.in (BIND_NOW): New.
1841         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
1842         * configure: Regenerated.
1843         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
1844         indirect branch via the GOT slot.
1845
1846 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1847
1848         [BZ #19765]
1849         * sysdeps/s390/mempcpy.S: New File.
1850         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
1851         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
1852         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
1853         Add mempcpy variants.
1854         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
1855         (memcpy): Adjust to be usable from mempcpy entry point.
1856         (__memcpy_mvcle): Likewise.
1857         * sysdeps/s390/s390-64/memcpy.S: Likewise.
1858         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
1859         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
1860         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
1861         (__memcpy_z10): Likewise.
1862         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
1863
1864 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1865
1866         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
1867         Remove __GI_ symbol.
1868         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
1869         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
1870         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
1871         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
1872         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
1873         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
1874
1875 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1876
1877         * sysdeps/s390/s390-64/memcpy.S (memcpy):
1878         Use cghi instead of chi to compare 64bit value.
1879
1880 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1881
1882         * sysdeps/s390/s390-32/memcpy.S (memcpy):
1883         Jump to 1MB check before executing mvc-loop.
1884
1885 2016-05-24  Florian Weimer  <fweimer@redhat.com>
1886
1887         [BZ #6527]
1888         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
1889         unconditionally.
1890         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
1891
1892 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1893
1894         * stdlib/tst-strtod6.c (do_test): Use new type generic
1895         invocation of the test function.
1896         (test): Refactor into ...
1897         (TEST_STRTOD): New macro base function.
1898
1899 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1900
1901         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
1902         (TEST_STRTOD): New macro.
1903         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
1904
1905 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1906
1907         * stdlib/tst-strtod6.c (do_test): Use new type generic
1908         invocation of the test function.
1909         (test): Refactor into ...
1910         (TEST_STRTOD): New macro base function.
1911
1912 2016-05-23  Florian Weimer  <fweimer@redhat.com>
1913
1914         CVE-2016-4429
1915         [BZ #20112]
1916         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
1917         payload.
1918
1919 2016-05-23  Florian Weimer  <fweimer@redhat.com>
1920
1921         [BZ #20111]
1922         * bits/sockaddr.h (_SS_SIZE): Define.
1923         * bits/socket.h (_SS_SIZE): Remove.
1924         (_SS_PADSIZE): Adjust to account for all padding.
1925         (struct sockaddr_storage): Update comment.  Avoid implicit
1926         padding.
1927         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
1928         (_SS_PADSIZE): Adjust to account for all padding.
1929         (struct sockaddr_storage): Update comment.  Avoid implicit
1930         padding.
1931         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
1932         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
1933         (_SS_PADSIZE): Adjust to account for all padding.
1934         (struct sockaddr_storage): Update comment.  Avoid implicit
1935         padding.
1936         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
1937         __SS_SIZE is 126 in this version.
1938         * inet/tst-sockaddr.c: New file.
1939         * inet/Makefile (tests): Add tst-sockaddr.c
1940         (tst-sockaddr.c): Compile with non-strict aliasing.
1941
1942 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
1943
1944         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
1945         [XPG3 || XPG4].
1946         (NL_ARGMAX): Also expect for [XPG3].
1947         (NL_LANGMAX): Likewise.
1948         (NL_MSGMAX): Likewise.
1949         (NL_NMAX): Likewise.
1950         (NL_SETMAX): Likewise.
1951         (NL_TEXTMAX): Likewise.
1952         (NZERO): Likewise.
1953         (TMP_MAX): Likewise.
1954         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
1955         variable.
1956
1957         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
1958         (PF_MAX): Update value.
1959         (AF_KCM): New macro.
1960         (SOL_NETBEUI): Likewise.
1961         (SOL_LLC): Likewise.
1962         (SOL_DCCP): Likewise.
1963         (SOL_NETLINK): Likewise.
1964         (SOL_TIPC): Likewise.
1965         (SOL_RXRPC): Likewise.
1966         (SOL_PPPOL2TP): Likewise.
1967         (SOL_BLUETOOTH): Likewise.
1968         (SOL_PNPIPE): Likewise.
1969         (SOL_RDS): Likewise.
1970         (SOL_IUCV): Likewise.
1971         (SOL_CAIF): Likewise.
1972         (SOL_ALG): Likewise.
1973         (SOL_NFC): Likewise.
1974         (SOL_KCM): Likewise.
1975         (MSG_BATCH): New enum value and macro.
1976
1977 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
1978
1979         [BZ #18185]
1980         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
1981         sharing L2 cache to 2 for Knights Landing.
1982
1983 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
1984
1985         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
1986         (FTW_DP): Do not expect for [XPG3 || XPG4].
1987         (FTW_SL): Do not expect for [XPG3].
1988         (FTW_SLN): Likewise.
1989         (FTW_PHYS): Likewise.
1990         (FTW_MOUNT): Likewise.
1991         (FTW_DEPTH): Likewise.
1992         (FTW_CHDIR): Likewise.
1993         (nftw): Likewise.
1994         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
1995         variable.
1996
1997 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
1998
1999         * manual/errno.texi: Fix various typos & grammar errors.
2000
2001 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2002
2003         * manual/intro.texi: Fix duplicated typo.
2004
2005 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2006
2007         [BZ #13304]
2008         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
2009         <float.h>, <math_private.h> and <stdlib.h>.
2010         (add_split): New function.
2011         (mul_split): Likewise.
2012         (ext_val): New typedef.
2013         (store_ext_val): New function.
2014         (mul_ext_val): New function.
2015         (compare): New function.
2016         (add_split_ext): New function.
2017         (__fmal): After checking for Inf, NaN and zero, compute result as
2018         an exact sum of scaled double values in round-to-nearest before
2019         adding those up and adjusting for other rounding modes.
2020         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
2021         tests of fma.
2022         * math/auto-libm-test-out: Regenerated.
2023
2024 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2025
2026         [BZ #20119]
2027         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
2028         processor level type mask for CPUID with EAX == 11.
2029
2030 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2031
2032         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
2033         logical threads if the HTT bit is 0.
2034         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
2035         (index_cpu_HTT): Likewise.
2036         (reg_HTT): Likewise.
2037
2038 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2039
2040         [BZ #20115]
2041         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
2042         Remove alignments on jump targets.
2043
2044 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2045
2046         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
2047         (getpwent): Likewise.
2048         (setpwent): Likewise.
2049         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
2050         variable.
2051
2052         * conform/data/search.h-data (insque): Do not expect for [XPG3].
2053         (remque): Likewise.
2054         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
2055         variable.
2056
2057 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2058
2059         * math/libm-test.inc: Update comment not to refer to signs of NaNs
2060         not being tested.
2061
2062 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2063
2064         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2065         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
2066         call.
2067         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2068         (__condvar_cleanup1): Likewise.
2069
2070 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2071
2072         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
2073         New
2074         (__pthread_unwind): Renamed to ...
2075         (PTHREAD_UNWIND): This.
2076         (__pthread_enable_asynccancel): Replace
2077         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
2078
2079 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2080
2081         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
2082         (CLONE_NEWCGROUP): New macro.
2083
2084         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
2085         (Q_GETNEXTQUOTA): New macro.
2086
2087 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2088
2089         [BZ #19907]
2090         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
2091         buffer updated by the previous run.
2092         * string/test-memcpy.c (do_one_test): Likewise.
2093         * benchtests/bench-memmove.c (do_one_test): Add a comment.
2094         * string/test-memmove.c (do_one_test): Likewise.
2095
2096 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
2097
2098         [BZ #20094]
2099         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
2100         not [__USE_XOPEN].
2101         (unlockpt): Likewise.
2102         (ptsname): Likewise.
2103         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
2104         variable.
2105
2106         [BZ #20076]
2107         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
2108         instead of [__USE_UNIX98].
2109         (S_ISSOCK): Likewise.
2110         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
2111         variable.
2112
2113         [BZ #20074]
2114         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
2115         [__USE_POSIX].
2116         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
2117         variable.
2118
2119         [BZ #20051]
2120         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
2121         (ttyslot): Do not declare.
2122         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
2123         (ttyslot): New prototype.
2124         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
2125         variable.
2126         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
2127
2128 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2129
2130         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
2131
2132 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2133
2134         Fix race condition in tst-mallocfork2, use fewer resources.
2135         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
2136         to current process group.
2137         (signal_sender): Yield in the non-sleeping case.
2138
2139 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
2140
2141         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
2142         (ecvt): Likewise.
2143         (fcvt): Likewise.
2144         (gcvt): Likewise.
2145         (getsubopt): Likewise.
2146         (grantpt): Likewise.
2147         (initstate): Likewise.
2148         (l64a): Likewise.
2149         (mktemp): Likewise.
2150         (mkstemp): Likewise.
2151         (ptsname): Likewise.
2152         (random): Likewise.
2153         (realpath): Likewise.
2154         (setstate): Likewise.
2155         (srandom): Likewise.
2156         (ttyslot): Likewise.
2157         (unlockpt): Likewise.
2158         (valloc): Likewise.
2159
2160         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
2161         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
2162         variable.
2163
2164 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2165
2166         [BZ #20072]
2167         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
2168         init_cpu_features only if SHARED is defined.
2169         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
2170
2171 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2172
2173         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
2174         non-inclusive caches on Intel processors.
2175
2176 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2177
2178         * malloc/malloc.c (dumped_main_arena_start)
2179         (dumped_main_arena_end): New variables.
2180         (DUMPED_MAIN_ARENA_CHUNK): New macro.
2181         (do_check_chunk): Skip dumped fake mmapped chunks.
2182         (munmap_chunk): Likewise.
2183         (__libc_free): Do not adjust statistics for fake mmapped chunks.
2184         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
2185         mmapped chunks.
2186         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
2187         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
2188         and dumped_main_arena_end to cover the dumped heap.
2189
2190 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
2191
2192         * conform/data/time.h-data (getdate_err): Do not expect for
2193         [XPG3].
2194         (getdate): Likewise.
2195         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
2196         variable.
2197
2198         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
2199         (F_ULOCK): Likewise.
2200         (F_TEST): Likewise.
2201         (F_TLOCK): Likewise.
2202         (useconds_t): Likewise.
2203         (intptr_t): Do not expect for [XPG3] or [XPG4].
2204         (brk): Do not expect for [XPG3]
2205         (fchown): Likewise.
2206         (fchdir): Likewise.
2207         (ftruncate): Likewise.
2208         (getdtablesize): Likewise.
2209         (gethostid): Likewise.
2210         (getpagesize): Likewise.
2211         (getpgid): Likewise.
2212         (getsid): Likewise.
2213         (getwd): Likewise.
2214         (lchown): Likewise.
2215         (lockf): Likewise.
2216         (readlink): Likewise.
2217         (sbrk): Likewise.
2218         (setpgrp): Likewise.
2219         (setregid): Likewise.
2220         (setreuid): Likewise.
2221         (symlink): Likewise.
2222         (sync): Likewise.
2223         (truncate): Likewise.
2224         (ualarm): Likewise.
2225         (usleep): Likewise.
2226         (vfork): Likewise.
2227         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
2228         variable.
2229
2230         [BZ #20054]
2231         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
2232         not [__USE_UNIX98].
2233         * conform/data/unistd.h-data (gethostname): Do not expect for
2234         [XPG3].
2235
2236         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
2237         [!POSIX] (S_IFBLK): Likewise.
2238         [!POSIX] (S_IFCHR): Likewise.
2239         [!POSIX] (S_IFIFO): Likewise.
2240         [!POSIX] (S_IFREG): Likewise.
2241         [!POSIX] (S_IFDIR): Likewise.
2242         [!POSIX] (S_IFLNK): Likewise.
2243         [!POSIX] (S_IFSOCK): Likewise.
2244         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
2245         variable.
2246         (test-xfail-XPG4/fcntl.h/conform): Likewise.
2247
2248 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
2249
2250         * sysdeps/aarch64/memset.S (__memset):
2251         Rewrite of optimized memset.
2252
2253 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2254
2255         [BZ #19703]
2256         Partially async-signal-safe fork for single-threaded processes.
2257         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
2258         variable.  Do not acquire and reset/release malloc and libio locks
2259         in single-threaded processes.
2260         * malloc/tst-mallocfork2.c: New file.
2261         * malloc/Makefile (tests): Add it.
2262
2263 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2264
2265         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
2266         argument.  Use scratch buffer instead of extend_alloca.
2267         (gethosts): Use scratch buffer instead of extend_alloca.
2268         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
2269         extend_alloca.
2270         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
2271
2272 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
2273
2274         [BZ #20055]
2275         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
2276         instead of [__USE_UNIX98].
2277         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
2278         [__USE_UNIX98].
2279         * conform/data/termios.h-data (tcgetsid): Do not expect for
2280         [XPG3].
2281         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
2282         variable.
2283         (test-xfail-XPG4/termios.h/conform): Likewise.
2284
2285 2016-05-11  Florian Weimer  <fweimer@redhat.com>
2286
2287         Do not use mcheck in localedef.
2288         * locale/programs/localedef.c (turn_on_mcheck)
2289         (__malloc_initialize_hook): Remove.
2290
2291 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
2292
2293         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
2294         * sysdeps/s390/s390-64/Makefile: Likewise.
2295
2296 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2297
2298         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
2299         Remove ifunc-defines.sym.
2300         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
2301         Likewise.
2302         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
2303         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
2304         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
2305         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
2306         rtld-global-offsets.sym.
2307         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
2308         * sysdeps/x86/cpu-features-offsets.sym: This.
2309         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
2310         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
2311
2312 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
2313
2314         [BZ #20073]
2315         * io/sys/stat.h (fchmod): Declare for
2316         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
2317         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
2318         variable.
2319
2320         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
2321         [XPG3] (S_IFSOCK): Likewise.
2322         [XPG3] (S_ISVTX): Likewise.
2323         [XPG3] (S_ISLNK): Likewise.
2324         [XPG3] (S_ISSOCK): Likewise.
2325         [XPG3] (fchmod): Likewise.
2326         [XPG3] (lstat): Likewise.
2327         [XPG3] (mknod): Likewise.
2328
2329         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
2330         [XPG3].  Expect type long and XFAIL for [XPG4].
2331         (st_blocks): Likewise.
2332
2333         [BZ #20044]
2334         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
2335         (pthread_atfork): New prototype.
2336         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
2337         variable.
2338
2339         [BZ #20043]
2340         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
2341         prototype.
2342
2343 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2344
2345         [BZ #20017]
2346         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
2347         gmtime.
2348
2349 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2350
2351         [BZ #19994]
2352         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
2353         flag in _res.options.
2354
2355 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
2356
2357         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
2358         [XPG3 || XPG4].
2359         (blksize_t): Likewise.
2360         (clockid_t): Likewise.
2361         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
2362         variable.
2363         (test-xfail-XPG4/sys/types.h/conform): Likewise.
2364
2365 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
2366
2367         * sysdeps/unix/sysv/linux/s390/init-first.c:
2368         Add VDSO_SYMBOL(getcpu).
2369         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
2370         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
2371         Add VDSO_SYMBOL(getcpu).
2372         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
2373         New define HAVE_GETCPU_VSYSCALL.
2374         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2375
2376 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
2377
2378         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
2379         instead of <sysdeps/x86_64/cacheinfo.c>.
2380         * sysdeps/x86_64/cacheinfo.c: Moved to ...
2381         * sysdeps/x86/cacheinfo.c: Here.
2382
2383 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2384
2385         * malloc/malloc-internal.h: Adjust header file guard.
2386
2387 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2388
2389         [BZ #19787]
2390         * inet/getnameinfo.c (check_sprintf_result): New function.
2391         (CHECKED_SNPRINTF): New macro.
2392         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
2393         to the host buffer.
2394         (gni_host_local): Use checked_copy to copy the host name.
2395         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
2396         (gni_serv_local): Use checked_copy to copy the service name.
2397         (getnameinfo): Remove unnecessary truncation of result buffers.
2398
2399 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2400
2401         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
2402         in case of inet_ntop failure.
2403
2404 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2405
2406         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
2407         avoid long lines.
2408         (gni_host_inet_numeric): Likewise.  Reduce scope of local
2409         variables.
2410         (gni_host_inet, gni_host_local): Add comment.
2411         (gni_host): Add comment.  Use temporary to avoid long lines.
2412
2413 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2414
2415         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
2416         registers specifiers where general purpose registers specifiers should
2417         have been used.
2418
2419 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2420
2421         [BZ #19779]
2422         CVE-2016-1234
2423         Avoid copying names of directory entries.
2424         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
2425         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
2426         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
2427         (struct readdir_result): New type.
2428         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
2429         (GL_READDIR): New macros.
2430         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
2431         (convert_dirent, convert_dirent64): New functions.
2432         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
2433         convert_dirent64.  Adjust references to the readdir result.
2434         * sysdeps/unix/sysv/linux/i386/glob64.c:
2435         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
2436         * posix/bug-glob2.c (LONG_NAME): Define.
2437         (filesystem): Add LONG_NAME.
2438         (my_DIR): Increase the size of room_for_dirent.
2439
2440 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
2441
2442         [BZ #20041]
2443         * misc/sys/select.h (__need_timespec): Only define if
2444         [__USE_XOPEN2K].
2445         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
2446         variable.
2447         (test-xfail-XPG4/utmpx.h/conform): Likewise.
2448         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
2449         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
2450
2451 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2452             Segher Boessenkool  <segher@gcc.gnu.org>
2453
2454         [BZ #20004]
2455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
2456         (__novec_swapcontext): Add missing load.
2457
2458 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
2459
2460         [BZ #20023]
2461         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
2462         <time.h>.
2463         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
2464         variable.
2465         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
2466
2467 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2468
2469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
2470         flags CLONE_VM compare.
2471
2472 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2473
2474         [BZ #20031]
2475         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
2476         completely empty.
2477
2478 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2479
2480         [BZ #19573]
2481         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
2482         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
2483         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
2484         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
2485         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
2486         (hesiod_free_list): Mark as hidden.
2487         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
2488         res_set, res_get.
2489         * hesiod/hesiod.c: Remove unnecessary forward declarations.
2490         (init, __hesiod_res_get, __hesiod_res_set): Remove.
2491         (hesiod_init): Remove obsolete res_ninit call.
2492         (hesiod_end): Do not free resolver state.  Do not invoke callback.
2493         (hesiod_bind): Do not call init.
2494         (get_txt_records): Use res_mkquery, res_send instead of
2495         res_nmkquery, res_nsend.
2496         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
2497         instead of _nss_hesiod_init.
2498         (_nss_hesiod_initgroups_dyn): Likewise.
2499         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2500         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
2501         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2502
2503 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2504
2505         * hesiod/hesiod_p.h (DEF_RHS): Remove.
2506         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
2507
2508 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2509
2510         * hesiod/hesiod.h: Remove RCS keyword.
2511         * hesiod/hesiod_p.h: Likewise.
2512
2513         * hesiod/hesiod.c: Likewise.
2514
2515 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
2516
2517         [BZ #12450]
2518         * locale/iso-639.def: Add Samogitian/sgs.
2519
2520 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
2521
2522         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
2523
2524         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
2525
2526 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
2527             Carlos O'Donell  <carlos@redhat.com>
2528
2529         [BZ #19072]
2530         * grp/Makefile (headers): Add grp-merge.h
2531         (routines): Add grp-merge.
2532         * grp/getgrgid_r.c: Include grp-merge.h.
2533         (DEEPCOPY_FN): Define.
2534         (MERGE_FN): Define.
2535         * grp/getgrname_r.c: Include grp-merge.h.
2536         (DEEPCOPY_FN): Define.
2537         (MERGE_FN): Define.
2538         * grp/grp-merge.c: New file.
2539         * grp/grp-merge.h: New file.
2540         * include/grp-merge.h: New file.
2541         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
2542         __copy_grp@GLIBC_PRIVATE.
2543         * manual/nss.texi (Actions in the NSS configuration): Describe
2544         return, continue, and merge.
2545         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
2546         (DEEPCOPY_FN): Define.
2547         (MERGE_FN): Define.
2548         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
2549         (DEEPCOPY_FN): Define.
2550         (MERGE_FN): Define.
2551         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
2552         [!MERGE_FN]: Define __merge_einval.
2553         (CHECK_MERGE): Define.
2554         (REENTRANT_NAME): Process merge if do_merge is true.
2555         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
2556         (__nss_getent_r): Likewise.
2557         * nss/nsswitch.c (nss_parse_service_list): Likewise.
2558         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
2559
2560 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2561
2562         [BZ #20012]
2563         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
2564         length to calculate the buffer to read.
2565         (fmemopen_write): Set the buffer position based on bytes written.
2566         (fmemopen_seek): Return EINVAL for invalid whence modes.
2567
2568         [BZ #19957]
2569         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
2570         tst-getpid2.
2571         (test): Add tst-clone2.
2572         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
2573         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
2574         pid/tid fields for CLONE_VM.
2575         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
2576         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
2577         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
2578         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
2579         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
2580         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
2581         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
2582         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
2583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
2584         Likewise.
2585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
2586         Likewise.
2587         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
2588         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
2589         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
2590         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
2591         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
2592         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
2593         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
2594         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
2595
2596 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2597
2598         [BZ #19642]
2599         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
2600         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
2601         (gni_serv_local, gni_serv): New functions extracted from
2602         getnameinfo.
2603         (getnameinfo): Call gni_host and gni_serv to perform the
2604         processing.  Always free scratch buffer.
2605
2606 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2607
2608         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
2609         remaining bytes in the dest string, with zeros.
2610
2611 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2612
2613         [BZ #20010]
2614         CVE-2016-3706
2615         * sysdeps/posix/getaddrinfo.c
2616         (convert_hostent_to_gaih_addrtuple): New function.
2617         (gethosts): Call convert_hostent_to_gaih_addrtuple.
2618         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
2619         AF_INET data.
2620
2621 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2622
2623         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
2624         callback function gl_readdir.
2625         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
2626         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
2627         (glob_in_dir): Remove len.  Use strdup instead of malloc and
2628         memcpy to copy the name.
2629         * manual/pattern.texi (Calling Glob): Document requirements for
2630         implementations of the gl_readdir callback function.
2631         * manual/examples/mkdirent.c: New example.
2632         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
2633         per the manual guidance.
2634         * posix/tst-gnuglob.c (my_readdir): Likewise.
2635
2636 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
2637
2638         [BZ #20014]
2639         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
2640         not [__USE_POSIX].
2641         (getchar_unlocked): Likewise.
2642         (putc_unlocked): Likewise.
2643         (putchar_unlocked): Likewise.
2644         (flockfile): Likewise.
2645         (ftrylockfile): Likewise.
2646         (funlockfile): Likewise.
2647         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
2648         variable.
2649         (test-xfail-XPG4/stdio.h/conform): Likewise.
2650
2651         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
2652         Expect constant.
2653         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
2654         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
2655         variable.
2656         (test-xfail-XPG4/langinfo.h/conform): Likewise.
2657         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
2658
2659         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
2660         [__USE_LARGEFILE64] (off64_t): Likewise.
2661         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
2662         variable.
2663
2664 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2665
2666         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
2667
2668 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2669
2670         * resolv/inet_addr.c: Reindent preprocessor conditionals.
2671         * resolv/res_init.c: Likewise.
2672         * resolv/res_mkquery.c: Likewise.
2673
2674 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2675
2676         * resolv/res_init.c (isascii): Do not define.  Use definition in
2677         <ctype.h>.
2678         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
2679         (LOG_AUTH): Remove.
2680         (SPRINTF): Remove, adjust caller.
2681         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
2682
2683 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2684
2685         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
2686         SUNSECURITY conditional.
2687         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
2688
2689 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2690
2691         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
2692         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
2693         Remove BSD-related preprocessor conditionals.
2694         * conf/portability.h: Remove.
2695
2696 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2697
2698         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
2699         * resolv/res_data.c: Likewise.
2700
2701 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2702
2703         * resolv/res_comp.c: Remove code conditional on __ultrix__.
2704         * resolv/res_data.c: Remove code conditional on ultrix.
2705
2706 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2707
2708         * resolv/res_init.c (RFC1535): Do not define.  Remove
2709         RFC1535 preprocessor conditionals.
2710         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
2711         because there configuration options which make the resolver
2712         behavior different.
2713
2714 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2715
2716         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
2717         RESOLVSORT preprocessor conditionals.
2718         * resolv/nss_dns/dns-host.c: Likewise.
2719         * resolv/res_init.c: Likewise.
2720
2721 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2722
2723         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
2724         is never defined.
2725
2726 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2727
2728         * inet/inet_lnaof.c: Remove SCSS keyword.
2729         * inet/inet_mkadr.c: Likewise.
2730         * inet/inet_net.c: Likewise.
2731         * inet/inet_netof.c: Likewise.
2732         * inet/rcmd.c: Likewise.
2733         * inet/rexec.c: Likewise.
2734         * inet/ruserpass.c: Likewise.
2735
2736 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2737
2738         * resolv/inet_addr.c: Remove _LIBC conditionals.
2739         * resolv/res_data.c: Likewise.
2740         * resolv/res_init.c: Likewise.
2741         * resolv/res_mkquery.c: Likewise.
2742         * resolv/res_libc.c: Update comment.
2743         * resolv/README: Update.
2744
2745 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2746
2747         * resolv/gethnamaddr.c: Remove SCSS keyword.
2748         * resolv/herror.c: Likewise.
2749         * resolv/inet_addr.c: Likewise.
2750         * resolv/inet_net_ntop.c: Likewise.
2751         * resolv/inet_net_pton.c: Likewise.
2752         * resolv/inet_neta.c: Likewise.
2753         * resolv/inet_ntop.c: Likewise.
2754         * resolv/inet_pton.c: Likewise.
2755         * resolv/ns_date.c: Remove RCS keyword.
2756         * resolv/ns_name.c: Likewise.
2757         * resolv/ns_netint.c: Likewise.
2758         * resolv/ns_parse.c: Likewise.
2759         * resolv/ns_print.c: Likewise.
2760         * resolv/ns_samedomain.c: Likewise.
2761         * resolv/ns_ttl.c: Likewise.
2762         * resolv/nsap_addr.c: Likewise.
2763         * resolv/res_comp.c: Remove SCSS and RCS keyword.
2764         * resolv/res_data.c: Remove RCS keyword.
2765         * resolv/res_debug.c: Remove SCSS and RCS keyword.
2766         * resolv/res_init.c: Likewise.
2767         * resolv/res_mkquery.c: Likewise.
2768         * resolv/res_query.c: Likewise.
2769         * resolv/res_send.c: Likewise.
2770
2771 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
2772
2773         * conform/data/stdio.h-data (fdopen): Expect also for
2774         [XPG3 || XPG4].
2775
2776         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
2777         (fseeko): Likewise.
2778         (ftello): Likewise.
2779         (ftrylockfile): Likewise.
2780         (funlockfile): Likewise.
2781         (getc_unlocked): Likewise.
2782         (getchar_unlocked): Likewise.
2783         (putc_unlocked): Likewise.
2784         (putchar_unlocked): Likewise.
2785
2786 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2787
2788         [BZ #19868]
2789         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
2790         DNS packet syntax checks (which were not needed before).  Skip
2791         over non-PTR records.
2792
2793 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2794
2795         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
2796         definition.  Include <stddef.h> instead.
2797
2798 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2799
2800         [BZ #19831]
2801         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
2802         function.
2803         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
2804         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
2805
2806 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2807
2808         [BZ #19862]
2809         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
2810         (getanswer_r): Do not call syslog.
2811         (gaih_getanswer_slice): Likewise.
2812         * resolv/gethnamaddr.c (AskedForGot): Remove.
2813         (getanswer): Do not call syslog.
2814         (gethostbyaddr): Likewise.
2815
2816 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
2817
2818         * conform/data/signal.h-data (union sigval): Expect also if
2819         [XOPEN2K].
2820         (struct sigevent): Likewise.
2821         (SIGEV_NONE): Likewise.
2822         (SIGEV_SIGNAL): Likewise.
2823         (SIGEV_THREAD): Likewise.
2824         (SIGRTMIN): Likewise.
2825         (SIGRTMAX): Likewise.
2826         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
2827         variable.
2828         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
2829
2830 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2831
2832         [BZ #19830]
2833         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
2834         (gaih_getanswer_slice): Likewise.
2835         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
2836         Also check for availability of RR metadata.
2837
2838 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2839
2840         [BZ #19825]
2841         * resolv/res_send.c (send_vc): Remove early *resplen2
2842         initialization.  Set *resplen2 on socket error.  Call
2843         close_and_return_error for other errors.
2844
2845 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
2846
2847         * sysdeps/unix/sysv/linux/netiucv/iucv.h
2848         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
2849         (SCM_IUCV_TRGCLS): New define.
2850
2851 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2852
2853         [BZ #20005]
2854         * libio/fmemopen.c (fmemopen_write): Update internal position after
2855         write.
2856         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
2857         * stdio-common/tst-fmemopen4.c: New file..
2858
2859 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
2860
2861         [BZ #19996]
2862         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
2863         not [__USE_XOPEN2K].
2864         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
2865         variable.
2866
2867         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
2868         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
2869         variable.
2870
2871         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
2872         [__USE_XOPEN2K8].
2873         [__USE_LARGEFILE64] (off64_t): Likewise.
2874         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
2875         variable.
2876
2877 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
2878
2879         [BZ #19989]
2880         * libio/stdio.h (cuserid): Do not declare if
2881         [__USE_XOPEN2K && !__USE_GNU].
2882         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
2883         variable.
2884
2885 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2886
2887         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
2888         (sysdep_routines): Add P8 and PPC64 strcspn targets.
2889         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
2890         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
2891         ifunc'ed strcspn.
2892         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
2893         [EALIGN]: Removed.
2894         [END]: Likewise
2895         [STRSPN]: Define instead of the above to control symbol name.
2896         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
2897         New file.
2898         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
2899         Likewise.
2900         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
2901         Likewise.
2902         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
2903         Likewise.
2904         * sysdeps/powerpc/powerpc64/power8/strspn.S:
2905         [INITIAL_MASK]: New macro.
2906         [STRCSPN]: Likewise.
2907         [UPDATE_MASK]: Likewise.
2908         [USE_AS_STRCSPN]: Lisewise.
2909
2910 2016-04-25  Florian Weimer  <fweimer@redhat.com>
2911
2912         [BZ #19931]
2913         * stdio-common/tst-vfprintf-width-prec.c: New file.
2914         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
2915         (tests-special): Add tst-vfprintf-width-prec-mem.out.
2916         (generated): Add mtrace-related files.
2917         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
2918         (tst-%-mem.out): New pattern rule, replaces
2919         tst-printf-bz18872-mem.out.
2920         * stdio-common/vfprintf.c (vfprintf): When handling a precision
2921         specifier, deallocate any previously allocated work buffer.
2922
2923 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
2924
2925         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
2926         Add nop before __startcontext, add explaining comments.
2927
2928 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
2929
2930         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
2931         any more. Notably since IPV6_PKTINFO has been reintroduced with a
2932         completely different API.
2933
2934         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
2935         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
2936         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
2937         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
2938         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
2939         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
2940         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
2941         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
2942         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
2943         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
2944
2945 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2946
2947         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
2948
2949 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
2950
2951         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
2952         when it is the default of 0.
2953
2954 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2955
2956         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
2957         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
2958         (sysdep_routines): Add new strcasestr targets.
2959         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
2960         (__libc_ifunc_impl_list): Likewise.
2961         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
2962         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
2963         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
2964         * sysdeps/powerpc/powerpc64/power8/Makefile:
2965         New file to add strcasestr-ppc64 to sysdep_routines.
2966         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
2967         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
2968
2969 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
2970
2971         * benchtests/Makefile (wcsmbs-benchset): Include only for
2972         native builds and runs.
2973         (LOCALES): Likewise.
2974         (bench-build): Build timing-type here instead of the bench
2975         target.  Generate locale only for native builds.
2976         * benchtests/README: Add note for cross-building.
2977
2978         * benchtests/Makefile (bench-clean): Clean up extra-objs.
2979
2980         * benchtests/README: Update README to include instructions on
2981         using bench-build.
2982
2983         * Makefile.in (bench-build): New target.
2984         * Rules (PHONY): Add bench-build target.
2985         * benchtests/Makefile (bench): Depend on bench-build.
2986         (bench-build): New target.
2987
2988 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2989
2990         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
2991         profil_reply_port.
2992         (profile_waiter): Do not initialize profil_reply_port.
2993         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
2994         frequency instead of tick length in us.
2995
2996 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
2997
2998         [BZ #18712]
2999         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
3000         (__old_mempcpy_small): Likewise.
3001         (__old_strcpy_small): Likewise.
3002         (__old_stpcpy_small): Likewise.
3003         (__old_strpbrk_c2): Fix compat symbol name.
3004         (__old_strpbrk_c3): Likewise.
3005         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
3006         (__mempcpy_small): Remove.
3007         (__strcpy_small): Remove.
3008         (__stpcpy_small): Remove.
3009
3010 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
3011
3012         [BZ #19400]
3013         * locale/iso-639.def: Add the Talossan/tzl language.
3014
3015 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3016
3017         [BZ #16983]
3018         * locale/programs/ld-address.c (address_finish): Update postal_fmt
3019         comment.  Add "ln" to strchr check on postal_fmt.
3020
3021 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3022
3023         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
3024         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
3025         tel_dom_fmt.
3026
3027 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3028
3029         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3030         (sysdep_routines): Added __strlen_power8.
3031         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
3032         __strlen_power8 entry.
3033         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
3034         Implementation for POWER8.
3035         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
3036         for __strlen_power8.
3037         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
3038         Implementation for POWER8.
3039
3040 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
3041
3042         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
3043
3044 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
3045
3046         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
3047         Goldmont and Airmont processors.
3048
3049 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
3050
3051         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
3052         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
3053         (__STRING2_SMALL_GET32): Remove.
3054         (memset): Remove.
3055         (__memset_1): Remove.
3056         (__memset_gc): Remove.
3057         (__mempcpy): Remove.
3058         (mempcpy): Remove.
3059         (__mempcpy_args): Remove.
3060         (strchr): Remove.
3061         (strcpy): Remove.
3062         (strcpy_args): Remove.
3063         (__stpcpy_args): Remove.
3064         (__strcmp_cc): Remove.
3065         (__strcmp_gc): Remove.
3066         (strstr): Remove.
3067
3068 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
3069
3070         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
3071         * nis/nis_call.c (nis_server_cache_add): Likewise.
3072
3073 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3074
3075         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
3076
3077 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3078
3079         * malloc/arena.c (__malloc_fork_lock_parent)
3080         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
3081         internal_function attribute.
3082
3083 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
3084
3085         * stdio-common/printf_fp.c (__printf_fp_l):
3086         Rename ___printf_fp_l to __printf_fp_l and
3087         remove strong alias. Use libc_hidden_def instead
3088         of ldbl_hidden_def macro.
3089
3090 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3091
3092         Remove malloc hooks from fork handler.  They are no longer needed
3093         because malloc runs right before fork, and no malloc calls from
3094         other fork handlers are not possible anymore.
3095         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
3096         declarations.
3097         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
3098         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
3099         (atfork_recursive_cntr): Remove.
3100         (__malloc_fork_lock_parent): Do not override malloc hooks and
3101         thread_arena.
3102         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
3103         thread_arena.
3104         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
3105         thread_arena instead of save_arena.
3106
3107 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3108
3109         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
3110         (thread_atfork, thread_atfork_static): Remove.
3111         * sysdeps/mach/hurd/malloc-machine.h:
3112         (thread_atfork, thread_atfork_static): Remove.
3113
3114 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3115
3116         [BZ #19431]
3117         Run the malloc fork handler as late as possible to avoid deadlocks.
3118         * malloc/malloc-internal.h: New file.
3119         * malloc/malloc.c: Include it.
3120         * malloc/arena.c (ATFORK_MEM): Remove.
3121         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
3122         Update comment.
3123         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
3124         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
3125         Remove outdated comment.
3126         (ptmalloc_init): Do not call thread_atfork.  Remove
3127         thread_atfork_static.
3128         * malloc/tst-malloc-fork-deadlock.c: New file.
3129         * Makefile (tests): Add tst-malloc-fork-deadlock.
3130         (tst-malloc-fork-deadlock): Link against libpthread.
3131         * manual/memory.texi (Aligned Memory Blocks): Update safety
3132         annotation comments.
3133         * sysdeps/nptl/fork.c (__libc_fork): Call
3134         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
3135         __malloc_fork_unlock_child.
3136         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3137
3138 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3139
3140         [BZ #19613]
3141         Remove union wait.
3142         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
3143         (w_stopsig, w_stopval): Remove.
3144         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
3145         stat_loc argument.
3146         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
3147         (__WAIT_STATUS_DEFN): Remove.
3148         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3149         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
3150         (wait, wait3, wait4): Use int * for the stat_loc argument.
3151         * posix/wait.c (__wait): Likewise.
3152         * posix/wait3.c (__wait3): Likewise.
3153         * posix/wait4.c (__wait4): Likewise.
3154         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
3155         (__WAIT_STATUS_DEFN): Remove.
3156         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3157         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
3158         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
3159         argument.
3160         * sysdeps/posix/wait.c (__libc_wait): Likewise.
3161         * sysdeps/posix/wait3.c (__wait3): Likewise.
3162         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
3163         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
3164         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
3165         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
3166         stat_loc argument.
3167         * manual/process.texi (BSD Wait Functions): Remove union wait.
3168
3169 2016-04-13  Andreas Schwab  <schwab@suse.de>
3170
3171         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
3172         (test-extras): Add tst-tlsalign-vars.
3173         * math/Makefile: Wrap long lines.
3174         (libm-vec-test-wrappers): Define.
3175         (test-extras): Add $(libm-vec-test-wrappers).
3176         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
3177         * nss/Makefile (extra-test-objs): Add nss_test1.os.
3178         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
3179         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
3180         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
3181         (extra-test-objs): Add corresponding objects.
3182
3183 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
3184
3185         [BZ #19928]
3186         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
3187         New.
3188         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
3189         times of shared cache size.
3190         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
3191         (VMOVNT): New.
3192         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
3193         (VMOVNT): Likewise.
3194         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
3195         (VMOVNT): Likewise.
3196         (VMOVU): Changed to movups for smaller code sizes.
3197         (VMOVA): Changed to movaps for smaller code sizes.
3198         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
3199         comments.
3200         (PREFETCH): New.
3201         (PREFETCH_SIZE): Likewise.
3202         (PREFETCHED_LOAD_SIZE): Likewise.
3203         (PREFETCH_ONE_SET): Likewise.
3204         Rewrite to use forward and backward loops, which move 4 vector
3205         registers at a time, to support overlapping addresses and use
3206         non temporal store if size is above the threshold and there is
3207         no overlap between destination and source.
3208
3209 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
3210
3211         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
3212         Include dl-vdso.
3213         * sysdeps/unix/sysv/linux/mips/Versions: Add
3214         __vdso_clock_gettime.
3215         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
3216         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
3217         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
3218         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
3219         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
3220         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
3221         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
3222         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
3223         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3224
3225 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3226
3227         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
3228         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
3229         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
3230         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
3231         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3232         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
3234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
3235         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
3236         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
3237         syscalls generation.
3238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3239         [__NR_pwrite64] (__NR_write): Remove define.
3240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3241         [__NR_pwrite64] (__NR_write): Remove define.
3242         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
3243         Remove define.
3244         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
3245         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
3246         Remove define.
3247         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
3248         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
3249         Linux implementation as base.
3250         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
3251
3252         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
3253         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
3254         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
3255         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
3256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
3257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
3258         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
3259         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
3260         syscall generation.
3261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3262         [__NR_pread64] (__NR_pread): Remove define.
3263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3264         [__NR_pread64] (__NR_pread): Likewise.
3265         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
3266         define.
3267         (__libc_pread): Use SYSCALL_LL macro on offset argument.
3268         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
3269         Remove define.
3270         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
3271         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
3272         Linux implementation as base.
3273         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
3274         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3275         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3276
3277         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
3278         definition.
3279         (__ALIGNMENT_COUNT): Likewise.
3280         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
3281         (__ALIGNMENT_COUNT): Likewise.
3282         (SYSCALL_LL): New define.
3283         (SYSCALL_LL64): Likewise.
3284         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
3285         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
3286         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
3287         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
3288
3289         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3290         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
3291         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3292         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3293         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3294         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3295
3296 2016-04-11  Florian Weimer  <fweimer@redhat.com>
3297
3298         [BZ #19865]
3299         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
3300         original buffer before retry.
3301
3302 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3303
3304         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
3305         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
3306         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
3307         GLRO(dl_auxv) list.
3308         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
3309         including <ldsodefs.h>.
3310         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
3311
3312 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
3313
3314         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
3315         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
3316         $(CPPFLAGS).
3317
3318 2016-04-09  Khem Raj  <raj.khem@gmail.com>
3319
3320         [BZ #17950]
3321         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
3322         Add -mfpmath=387.
3323
3324 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
3325
3326         * sysdeps/i386/configure.ac: Change == to = when calling test.
3327         * sysdeps/x86_64/configure.ac: Likewise.
3328         * sysdeps/i386/configure: Regenerated.
3329         * sysdeps/x86_64/configure: Likewise.
3330
3331 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
3332
3333         [BZ #16137]
3334         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
3335         * benchtests/bench-strcoll.c (input_files): Likewise.
3336         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
3337         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
3338         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
3339
3340 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
3341
3342         [BZ #19929]
3343         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
3344         [__USE_XOPEN2K8 && !__USE_GNU].
3345         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
3346         variable.
3347
3348         [BZ #19925]
3349         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
3350         define if [!__USE_MISC && __USE_XOPEN2K].
3351         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
3352         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
3353         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
3354         Likewise.
3355         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
3356         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
3357         variable.
3358         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
3359
3360 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3361
3362         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3363         (sysdep_routines): Add new strspn targets.
3364         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3365         (__libc_ifunc_impl_list): Add strspn.
3366         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3367         New file.
3368         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
3369         Likewise.
3370         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
3371         Likewise.
3372         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3373         Likewise.
3374
3375 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3376
3377         * misc/hsearch_r.c: Include <limits.h>.
3378
3379 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3380
3381         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
3382
3383 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3384
3385         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
3386         (MEMCPY_SYMBOL): New.
3387         (MEMPCPY_SYMBOL): Likewise.
3388         (MEMMOVE_CHK_SYMBOL): Likewise.
3389         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
3390         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
3391         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
3392         Provide alias for memcpy in libc.a and ld.so.
3393
3394 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3395
3396         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
3397         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
3398         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
3399         Disabled fro now.
3400         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
3401         symbols.  Properly check USE_MULTIARCH on __memset symbols.
3402
3403 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3404
3405         * benchtests/Makefile (string-benchset): Add memcpy-large,
3406         memmove-large and memset-large.
3407         * benchtests/bench-memcpy-large.c: New file.
3408         * benchtests/bench-memmove-large.c: Likewise.
3409         * benchtests/bench-memmove-large.c: Likewise.
3410         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
3411
3412 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3413
3414         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
3415         32-bit displacement to avoid long nop between instructions.
3416
3417 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3418
3419         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
3420         a comment on VMOVU and VMOVA.
3421
3422 2016-04-04  Florian Weimer  <fweimer@redhat.com>
3423
3424         [BZ #19633]
3425         Use specified locale for number formatting in strfmon_l.
3426         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
3427         (__nl_lookup_word): New inline functions.
3428         * include/printf.h (__print_fp_l): Declare.
3429         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
3430         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
3431         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
3432         (___printf_fp): New function.
3433         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
3434         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
3435         * stdlib/tst-strfmon_l.c (do_test): New test.
3436         * stdlib/Makefile (tests): Add kt.
3437         (LOCALES): Build additional locales.
3438         (tst-strfmon_l.out): Require locales.
3439
3440 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3441
3442         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
3443         if not in libc.
3444         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3445         Likewise.
3446         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
3447         Likewise.
3448         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3449         Likewise.
3450
3451 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3452
3453         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3454         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
3455         with unaligned_erms.
3456         (__memmove_erms): Skip if source == destination.
3457         (__memmove_unaligned_erms): Don't check source == destination
3458         first.
3459
3460 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3461
3462         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
3463         bit_arch_Fast_Copy_Backward for Intel Core proessors.
3464
3465 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3466
3467         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
3468         * string/strspn.c (strspn): Likewise.
3469
3470 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3471
3472         * benchtests/bench-memset.c (do_test): Support 64-byte
3473         alignment.
3474         (test_main): Test 64-byte alignment.
3475
3476 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3477
3478         * benchtests/bench-memmove.c (test_main): Test 64-byte
3479         alignment.
3480
3481 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3482
3483         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
3484
3485 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3486
3487         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
3488         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
3489         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
3490
3491         * string/strpbrk.c (strpbrk): Rewrite function.
3492         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
3493         (__strpbrk_c2): Likewise.
3494         (__strpbrk_c3): Likewise.
3495         * string/string-inlines.c
3496         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
3497         Likewise.
3498         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
3499         Likewise.
3500
3501         * string/strspn.c (strcspn): Rewrite function.
3502         * string/bits/string2.h (strspn): Use __builtin_strcspn.
3503         (__strspn_c1): Remove inline function.
3504         (__strspn_c2): Likewise.
3505         (__strspn_c3): Likewise.
3506         * string/string-inlines.c
3507         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
3508         compatibility symbol.
3509         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
3510         Likewise.
3511         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
3512         Likewise.
3513         * string/string-inlines.c: Include generic version.
3514
3515 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
3516             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3517
3518         * string/Version (libc): Add GLIBC_2.24.
3519         * string/strcspn.c (strcspn): Rewrite function.
3520         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
3521         (__strcspn_c1): Remove inline function.
3522         (__strcspn_c2): Likewise.
3523         (__strcspn_c3): Likewise.
3524         * string/string-inline.c
3525         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
3526         compatibility symbol.
3527         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
3528         Likewise.
3529         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
3530         Likewise.
3531         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
3532
3533 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
3534
3535         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
3536         Use ahi instead of aghi to adjust stack pointer.
3537
3538 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3539
3540         [BZ #19853]
3541         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
3542         TEST to take significant digits as second parameter.
3543         [TEST]: Redefine in terms of TEST_N taking 30
3544         significant digits.
3545         (do_test): Add test case to demonstrate precision
3546         failure in the ldbl-128ibm printf.
3547         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
3548         (__mpn_extract_long_double): Carry 7 extra intermediate
3549         bits of precision to aide computing difference when
3550         signs differ.
3551
3552 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3553
3554         [BZ #19881]
3555         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3556         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
3557         memset-avx512-unaligned-erms.
3558         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3559         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
3560         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
3561         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
3562         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
3563         __memset_sse2_unaligned_erms, __memset_erms,
3564         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
3565         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
3566         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
3567         file.
3568         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3569         Likewise.
3570         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
3571         Likewise.
3572         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
3573         Likewise.
3574
3575 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3576
3577         [BZ #19776]
3578         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3579         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
3580         memmove-avx512-unaligned-erms.
3581         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3582         (__libc_ifunc_impl_list): Test
3583         __memmove_chk_avx512_unaligned_2,
3584         __memmove_chk_avx512_unaligned_erms,
3585         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
3586         __memmove_chk_sse2_unaligned_2,
3587         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
3588         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
3589         __memmove_avx512_unaligned_erms, __memmove_erms,
3590         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
3591         __memcpy_chk_avx512_unaligned_2,
3592         __memcpy_chk_avx512_unaligned_erms,
3593         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
3594         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
3595         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
3596         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
3597         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
3598         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
3599         __mempcpy_chk_avx512_unaligned_erms,
3600         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
3601         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
3602         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
3603         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
3604         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
3605         __mempcpy_erms.
3606         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
3607         file.
3608         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3609         Likwise.
3610         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
3611         Likwise.
3612         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3613         Likwise.
3614
3615 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3616
3617         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
3618         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
3619         (La_s390_64_regs): Likewise.
3620         (La_s390_32_retval): Append vector register lrv_v24.
3621         (La_s390_64_retval): Likeweise.
3622         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
3623         Handle extended structs La_s390_32_regs and La_s390_32_retval.
3624         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
3625         Handle extended structs La_s390_64_regs and La_s390_64_retval.
3626
3627 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3628
3629         [BZ #19916]
3630         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
3631         to create a non-vector/vector version for _dl_runtime_resolve and
3632         _dl_runtime_profile. Move implementation to ...
3633         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
3634         (_dl_runtime_resolve) Save and restore fpr/vrs.
3635         (_dl_runtime_profile) Save and restore vrs and fix some issues
3636         if _dl_call_pltexit is called.
3637         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
3638         Choose the correct resolver function if running on a machine with vx.
3639         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
3640         to create a non-vector/vector version for _dl_runtime_resolve and
3641         _dl_runtime_profile. Move implementation to ...
3642         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
3643         (_dl_runtime_resolve) Save and restore fpr/vrs.
3644         (_dl_runtime_profile) Save and restore vrs and fix some issues
3645         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
3646         Choose the correct resolver function if running on a machine with vx.
3647
3648 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3649
3650         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
3651
3652 2016-03-31  Florian Weimer  <fweimer@redhat.com>
3653
3654         [BZ #19509]
3655         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
3656         skip_map != NULL.
3657         * elf/tst-dlsym-error.c: New file.
3658         * elf/Makefile (tests): Add tst-dlsym-error.
3659         (tst-dlsym-error): Link against libdl.
3660
3661 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
3662
3663         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3664         (__ASSUME_FUTIMESAT): Remove macro.
3665         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
3666
3667 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3668
3669         [BZ #19879]
3670         CVE-2016-3075
3671         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
3672         copy name.
3673
3674 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3675
3676         [BZ #19837]
3677         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
3678         error if parse_line fails.
3679
3680 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3681
3682         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
3683         (index_cpu_ERMS): Likewise.
3684         (reg_ERMS): Likewise.
3685
3686 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
3687
3688         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
3689         PER_LINUX_FDPIC): Add.
3690
3691 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3692
3693         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3694         memcpy-avx512-no-vzeroupper.
3695         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
3696         to ...
3697         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
3698         (MEMCPY): Don't define.
3699         (MEMCPY_CHK): Likewise.
3700         (MEMPCPY): Likewise.
3701         (MEMPCPY_CHK): Likewise.
3702         (MEMPCPY_CHK): Renamed to ...
3703         (__mempcpy_chk_avx512_no_vzeroupper): This.
3704         (MEMPCPY_CHK): Renamed to ...
3705         (__mempcpy_chk_avx512_no_vzeroupper): This.
3706         (MEMCPY_CHK): Renamed to ...
3707         (__memmove_chk_avx512_no_vzeroupper): This.
3708         (MEMCPY): Renamed to ...
3709         (__memmove_avx512_no_vzeroupper): This.
3710         (__memcpy_avx512_no_vzeroupper): New alias.
3711         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
3712
3713 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3714
3715         [BZ #18858]
3716         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3717         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
3718         and mempcpy-avx512-no-vzeroupper.
3719         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
3720         New.
3721         (MEMPCPY): Likewise.
3722         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
3723         (MEMPCPY_CHK): New.
3724         (MEMPCPY): Likewise.
3725         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
3726         (MEMPCPY): Likewise.
3727         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
3728         (MEMPCPY): Likewise.
3729         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
3730         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
3731         Likewise.
3732         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
3733         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
3734
3735 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3736              Amit Pawar  <Amit.Pawar@amd.com>
3737
3738         [BZ #19583]
3739         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
3740         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
3741         processors.  Set Fast_Copy_Backward for AMD Excavator
3742         processors.
3743         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
3744         New.
3745         (index_arch_Fast_Unaligned_Copy): Likewise.
3746         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
3747         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
3748
3749 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3750
3751         [BZ #19791]
3752         * resolv/res_send.c (close_and_return_error): New function.
3753         (send_dg): Initialize *resplen2 after reopen failure.  Call
3754         close_and_return_error for error returns.  On error paths without
3755         __res_iclose, initialze *resplen2 explicitly.  Update comment for
3756         successful return.
3757
3758 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3759
3760         [BZ# 19860]
3761         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
3762         zero if the compiler does not provide the AVX512F bit.
3763
3764 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
3765
3766         [BZ #19848]
3767         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
3768         from 8 to 4.
3769         (__ieee754_powl): Compare integer exponent against 4 not 8.
3770         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
3771         from 8 to 4.
3772         (__ieee754_powl): Compare integer exponent against 4 not 8.
3773         * math/auto-libm-test-in: Add more tests of pow.
3774         * math/auto-libm-test-out: Regenerated.
3775         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
3776         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3777
3778 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
3779
3780         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
3781         Make code unconditional.
3782         [!__NR_utimensat]: Remove conditional code.
3783         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
3784         Make code unconditional.
3785         [!__NR_utimensat]: Remove conditional code.
3786         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
3787         Make code unconditional.
3788         [!__NR_utimensat]: Remove conditional code.
3789
3790 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
3791
3792         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
3793         Make code unconditional.
3794
3795 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
3796
3797         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
3798         call-clobbered %eax on retry path.
3799         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
3800
3801 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3802
3803         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
3804         Don't set %rcx twice before "rep movsb".
3805
3806 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3807
3808         [BZ #19583]
3809         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
3810         inline.  Check family before setting family, model and
3811         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
3812         bits here.
3813         (init_cpu_features): Replace HAS_CPU_FEATURE and
3814         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
3815         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
3816         for Intel processors with usable AVX2.  Call get_common_indeces
3817         for other processors with family == NULL.
3818         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
3819         (CPU_FEATURES_ARCH_P): Likewise.
3820         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
3821         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
3822
3823 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3824
3825         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
3826         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
3827         $(shared-thread-library) instead of hardcoding the path to libpthread.
3828
3829 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
3830
3831         * sysdeps/unix/sysv/linux/kernel-features.h
3832         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
3833         * sysdeps/unix/sysv/linux/getdents.c
3834         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
3835         [!have_no_getdents64_defined]: Likewise.
3836         (__GETDENTS): Remove __have_no_getdents64 conditional.
3837
3838 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
3839
3840         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
3841         Remove macro.
3842         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
3843         <kernel-features.h>.
3844         (signalfd) [__NR_signalfd4]: Make code unconditional.
3845         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
3846
3847 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3848
3849         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
3850         style.
3851
3852 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
3853
3854         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
3855         (__pthread_enable_asynccancel): Use JUMPTARGET to call
3856         __pthread_unwind.
3857         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
3858         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
3859         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
3860         (__condvar_cleanup1): Likewise.
3861
3862 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
3863
3864         [BZ #19822]
3865         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
3866         move it to the final $@ location.
3867
3868 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3869
3870         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
3871         access where posix_spawn success and pid argument is null.
3872         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
3873         success case.
3874
3875 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
3876
3877         * sysdeps/mach/hurd/i386/c++-types.data: New file.
3878
3879         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
3880
3881         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
3882         and __fcntl.
3883         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
3884         __fcntl only.
3885         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
3886         adding attribute_hidden to __open and __fcntl.
3887
3888         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
3889         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
3890         depend on libc-modules.h,
3891         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
3892
3893 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
3894
3895         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
3896         Remove macro.
3897         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
3898         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
3899         entry.
3900
3901         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
3902         Remove macro.
3903         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
3904         include <kernel-features.h>.
3905         [!__ASSUME_FALLOCATE]: Remove conditional code.
3906         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
3907
3908 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3909
3910         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
3911         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
3912         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
3913         (_ZGVdN4v_cos_avx2): Likewise.
3914         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
3915         (_ZGVdN4v_cos): Likewise.
3916         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
3917         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
3918         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
3919         (_ZGVdN4v_exp_avx2): Likewise.
3920         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
3921         (_ZGVdN4v_exp): Likewise.
3922         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
3923         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
3924         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
3925         (_ZGVdN4v_log_avx2): Likewise.
3926         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
3927         (_ZGVdN4v_log): Likewise.
3928         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
3929         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
3930         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
3931         (_ZGVdN4vv_pow_avx2): Likewise.
3932         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
3933         (_ZGVdN4vv_pow): Likewise.
3934         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
3935         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
3936         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
3937         (_ZGVdN4v_sin_avx2): Likewise.
3938         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
3939         (_ZGVdN4v_sin): Likewise.
3940         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
3941         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
3942         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
3943         (_ZGVdN4vvv_sincos_avx2): Likewise.
3944         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
3945         (_ZGVdN4vvv_sincos): Likewise.
3946         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
3947         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
3948         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
3949         (_ZGVbN4v_cosf_sse4): Likewise.
3950         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
3951         (_ZGVdN8v_cosf_avx2): Likewise.
3952         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
3953         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
3954         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
3955         (_ZGVbN4v_expf_sse4): Likewise.
3956         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
3957         (_ZGVdN8v_expf_avx2): Likewise.
3958         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
3959         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
3960         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
3961         (_ZGVbN4v_logf_sse4): Likewise.
3962         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
3963         (_ZGVdN8v_logf_avx2): Likewise.
3964         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
3965         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
3966         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
3967         (_ZGVbN4vv_powf_sse4): Likewise.
3968         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
3969         (_ZGVdN8vv_powf_avx2): Likewise.
3970         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
3971         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
3972         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
3973         (_ZGVbN4vvv_sincosf_sse4): Likewise.
3974         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
3975         (_ZGVdN8vvv_sincosf_avx2): Likewise.
3976         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
3977         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
3978         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
3979         (_ZGVbN4v_sinf_sse4): Likewise.
3980         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
3981         (_ZGVdN8v_sinf_avx2): Likewise.
3982         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
3983         Use JUMPTARGET to call callee.
3984         (WRAPPER_IMPL_SSE2_ff): Likewise.
3985         (WRAPPER_IMPL_SSE2_fFF): Likewise.
3986         (WRAPPER_IMPL_AVX): Likewise.
3987         (WRAPPER_IMPL_AVX_ff): Likewise.
3988         (WRAPPER_IMPL_AVX_fFF): Likewise.
3989         (WRAPPER_IMPL_AVX512): Likewise.
3990         (WRAPPER_IMPL_AVX512_ff): Likewise.
3991         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
3992         Likewise.
3993         (WRAPPER_IMPL_SSE2_ff): Likewise.
3994         (WRAPPER_IMPL_SSE2_fFF): Likewise.
3995         (WRAPPER_IMPL_AVX): Likewise.
3996         (WRAPPER_IMPL_AVX_ff): Likewise.
3997         (WRAPPER_IMPL_AVX_fFF): Likewise.
3998         (WRAPPER_IMPL_AVX512): Likewise.
3999         (WRAPPER_IMPL_AVX512_ff): Likewise.
4000         (WRAPPER_IMPL_AVX512_fFF): Likewise.
4001
4002 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4003
4004         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
4005         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
4006         qualifier.
4007         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
4008         internal_function qualifiers.
4009
4010 2016-03-15  Carlos O'Donell <carlos@redhat.com>
4011
4012         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
4013         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
4014         * math/atest-exp.c (exp_mpn): Mark chk unused.
4015         * math/atest-exp2.c (exp_mpn): Likwise.
4016         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
4017         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
4018
4019 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
4020
4021         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
4022         Remove macro.
4023         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
4024         <kernel-features.h>.
4025         [__NR_ppoll]: Make code unconditional.
4026         [!__ASSUME_PPOLL]: Remove conditional code.
4027
4028         * sysdeps/unix/sysv/linux/kernel-features.h
4029         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
4030         (__ASSUME_ACCEPT4): Likewise.
4031         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4032         Define.
4033         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
4034         Likewise.
4035         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4036         Likewise.
4037         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
4038         Likewise.
4039         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
4040         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
4041         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4042         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4043         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4044         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4045         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4046         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4047         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4048         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4049         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4050         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4051         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4052         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4053         * sysdeps/unix/sysv/linux/i386/kernel-features.h
4054         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4055         Likewise.
4056         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4057         Likewise.
4058         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4059         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4060         0x040300].
4061         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4062         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4063         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4064         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4065         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4066         0x030300].
4067         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
4068         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4069         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4070         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4071         0x040300].
4072         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4073         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4074         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4075         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4076         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4077         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4078         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4079         0x030300].
4080         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4081         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4082         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4083         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4084         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4085         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4086         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4087         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4088         * sysdeps/unix/sysv/linux/s390/kernel-features.h
4089         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4090         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4091         0x040300].
4092         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4093         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4094         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4095         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4096         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4097         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4098         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4099         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4100         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4101         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4102         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4103         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4104         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4105         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4106         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
4107         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4108         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4109         Likewise.
4110         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4111         Likewise.
4112
4113 2016-03-15  Andreas Schwab  <schwab@suse.de>
4114
4115         [BZ #19257]
4116         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
4117         statp->_u._ext.nscount as loop count.
4118
4119 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
4120
4121         * math/test-signgam-finite-c99.c: Also #undef
4122         __LIBC_INTERNAL_MATH_INLINES.
4123         * math/test-signgam-main.c: Likewise.
4124
4125 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
4126
4127         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
4128         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
4129         (MADV_FREE): Likewise.
4130         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
4131         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
4132         EPOLLEXCLUSIVE.
4133
4134 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
4135
4136         * timezone/README: Remove mention of checktab.awk. Mention wiki
4137         SharedSourceFiles.
4138
4139 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
4140
4141         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
4142         WUNTRACED.
4143
4144 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4145
4146         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
4147         order to match the type of p when calling atomic_exchange_acq().
4148
4149 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4150
4151         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
4152         cfi_offset calls.
4153         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
4154         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
4155         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
4156         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
4157         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
4158
4159 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
4160
4161         * timezone/checktab.awk: Removed.
4162
4163 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
4164
4165         * manual/math.texi (Errors in Math Functions): Document relaxed
4166         accuracy goals for IBM long double.
4167         * math/libm-test.inc (test_exceptions): Always allow spurious
4168         "underflow" and "inexact" exceptions for IBM long double.
4169
4170 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
4171
4172         [BZ #19762]
4173         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4174         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
4175         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
4176         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
4177         (bit_arch_*): This for feature array.
4178         (bit_*): Renamed to ...
4179         (bit_cpu_*): This for cpu array.
4180         (index_*): Renamed to ...
4181         (index_arch_*): This for feature array.
4182         (index_*): Renamed to ...
4183         (index_cpu_*): This for cpu array.
4184         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
4185         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
4186         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
4187         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
4188         bit_##name with index_cpu_##name and bit_cpu_##name.
4189         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
4190         bit_##name with index_arch_##name and bit_arch_##name.
4191
4192 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
4193
4194         [BZ #19792]
4195         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4196         Terminate FDE before return label.
4197
4198 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
4199
4200         [BZ #19790]
4201         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
4202         (rintl): Define as macro.
4203         [USE_AS_NEARBYINTL] (__rintl): Likewise.
4204         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
4205         of fesetround.  Ensure results are evaluated before end of scope.
4206         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
4207         USE_AS_NEARBYINTL and include s_rintl.c.
4208         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
4209         Disable exception traps in new environment.
4210         (libc_feholdsetround_ppc_ctx): Likewise.
4211
4212 2016-03-08  Roland McGrath  <roland@hack.frob.com>
4213
4214         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
4215         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
4216         (tst_audit10_aux) [__AVX512F__]: ... here.
4217
4218 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
4219
4220         * include/sys/auxv.h: New file.
4221
4222 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4223
4224         [BZ #19759]
4225         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
4226
4227 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4228
4229         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
4230         operand modifier.
4231         (feclearexcept): Likewise.
4232
4233 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4234
4235         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
4236         to reflect the entire 32-bit HWCAP.
4237         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
4238         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
4239
4240 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4241
4242         [BZ #19783]
4243         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
4244         $(test-via-rtld-prefix).
4245         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
4246
4247 2016-03-08  Florian Weimer  <fweimer@redhat.com>
4248
4249         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
4250         union wait.  Report any non-zero exit status as error.
4251
4252 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4253
4254         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
4255         configured with --enable-hardcoded-path-in-tests.
4256
4257 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
4258
4259         [BZ #19677]
4260         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4261         (__ieee754_remainderl): Put zero low parts in canonical form.
4262         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
4263         file.  Based on
4264         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
4265         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
4266         with wrapper round test-fmodrem-ldbl-128ibm.c.
4267         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
4268         file.
4269         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
4270         Likewise.
4271         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
4272         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
4273
4274 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4275
4276         [BZ #19610]
4277         * elf/ldconfig.c (opt_link): Update comment.
4278         (options): Update help string for option -X.
4279         (search_dir): Unlink stale symbolic link only if updating symbolic
4280         links.
4281         * elf/tst-ldconfig-X.sh: New file.
4282         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
4283         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
4284
4285 2016-03-07  Andreas Schwab  <schwab@suse.de>
4286
4287         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
4288         needed arguments.
4289
4290 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
4291
4292         [BZ #15333]
4293         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
4294         to lstat64.
4295
4296 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4297
4298         * libio/filedoalloc.c (isatty): Remove.
4299         (local_isatty): Add comment.  Call __isatty directly.
4300         (_IO_file_doallocate): Update comment.  Assume _LIBC.
4301         * libio/wfiledoalloc.c (isatty): Remove.
4302         (_IO_wfile_doallocate): Update comment.
4303
4304 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4305
4306         [BZ #19269]
4307         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
4308         tst-audit4-aux.o.
4309         (tst-audit10): Depend on tst-audit10-aux.o.
4310         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
4311         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
4312         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
4313         instead of inline AVX code.
4314         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
4315         instead of inline AVX512 code.
4316         * sysdeps/x86_64/tst-audit4-aux.c: New file
4317         * sysdeps/x86_64/tst-audit10-aux.c: New file
4318
4319         [BZ #19648]
4320         * test-skeleton.c (main): Do not set RLIMIT_DATA.
4321
4322 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4323
4324         [BZ #14750]
4325         [BZ #10354]
4326         [BZ #18433]
4327         * include/sched.h (__clone): Add hidden prototype.
4328         (__clone2): Likewise.
4329         * include/unistd.h (__dup): Likewise.
4330         * posix/Makefile (tests): Add tst-spawn2.
4331         * posix/tst-spawn2.c: New file.
4332         * sysdeps/posix/dup.c (__dup): Add hidden definition.
4333         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
4334         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
4335         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
4336         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
4337         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
4338         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
4339         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
4340         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
4341         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
4342         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
4343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
4344         Likewise.
4345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
4346         Likewise.
4347         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
4348         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
4349         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
4350         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4351         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
4352         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
4353         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
4354         * sysdeps/unix/sysv/linux/nptl-signals.h
4355         (____nptl_is_internal_signal): New function.
4356         * sysdeps/unix/sysv/linux/spawni.c: New file.
4357
4358         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
4359         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
4360         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
4361         * posix/tst-execvp2.c (do_test): Likewise.
4362         * posix/tst-execvp3.c (do_test): Likewise.
4363         * posix/tst-execvp4.c (do_test): Likewise.
4364         * posix/tst-execvpe1.c: New file.
4365         * posix/tst-execvpe2.c: Likewise.
4366         * posix/tst-execvpe3.c: Likewise.
4367         * posix/tst-execvpe4.c: Likewise.
4368         * posix/tst-execvpe5.c: Likewise.
4369         * posix/tst-execvpe6.c: Likewise.
4370
4371         [BZ #19534]
4372         * posix/execl.c (execl): Remove dynamic memory allocation.
4373         * posix/execle.c (execle): Likewise.
4374         * posix/execlp.c (execlp): Likewise.
4375
4376 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4377
4378         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
4379         Replace .text with .text.avx512.
4380         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
4381         Likewise.
4382
4383 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
4384
4385         * sysdeps/generic/libnsl.abilist: New file.
4386         * sysdeps/generic/libutil.abilist: New file.
4387
4388 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4389
4390         [BZ #19762]
4391         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
4392         HAS_ARCH_FEATURE with Fast_Rep_String.
4393         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
4394         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
4395         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
4396         Likewise.
4397         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
4398         Likewise.
4399         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
4400         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
4401         Likewise.
4402         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
4403         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
4404         Likewise.
4405
4406 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4407
4408         [BZ #19745]
4409         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
4410         with *%rax in call.
4411
4412 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4413
4414         [BZ #19745]
4415         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
4416         with *__libc_start_main@GOTPCREL(%rip) in call.
4417
4418 2016-03-04  Roland McGrath  <roland@hack.frob.com>
4419
4420         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
4421         inside conditional for nonempty $(CXX).
4422
4423         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
4424         nonempty.
4425
4426         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
4427         to test for empty $(CXX) rather than $(CXX) of "no".
4428
4429 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4430
4431         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
4432
4433 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
4434             H.J. Lu  <hongjiu.lu@intel.com>
4435
4436         [BZ #18880]
4437         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
4438         instead of Slow_BSF, and also check for Fast_Copy_Backward to
4439         enable __memcpy_ssse3_back.
4440
4441 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4442
4443         [BZ #19758]
4444         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4445         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
4446
4447 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
4448
4449         [BZ #19490]
4450         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
4451         (__fentry__): Likewise.
4452
4453 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4454
4455         * gmon/Makefile (noprof): Add $(sysdep_noprof).
4456         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
4457
4458 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4459
4460         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
4461         __mcount_internal directly.
4462         (C_LABEL(__fentry__)): Likewise.
4463         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
4464         directly.
4465
4466 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4467
4468         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4469         (__start_context): Call __setcontext directly.
4470
4471 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
4472
4473         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4474         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4475         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
4476         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4477         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4478         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4479         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
4480         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4481         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4482         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
4483         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4484         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4485         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4486         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4487         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4488         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4489         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
4490         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4491         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4492         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4493         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
4494         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4495         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4496         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4497         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
4498         Remove conditional code.
4499         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4500         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
4501         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4502         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4503         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
4504         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4505         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4506         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4507         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4508         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4509         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4510         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4511
4512 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
4513
4514         * NEWS (2.23): Fix typo in bug 19048 text.
4515
4516 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
4517
4518         [BZ #14259]
4519         * Makeconfig: Rename msgcatdir to localedir.
4520         Rename inst_msgcatdir to inst_localedir.
4521         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
4522         * config.make.in: Add localedir.
4523         * elf/Makefile ($(objpfx)sotruss): Use localedir.
4524         (ldd-rewrite): Likewise.
4525         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
4526         (install-others): Use inst_localedir.
4527         (CPPFLAGS): Use localedir.
4528         * locale/Makefile (locale-CPPFLAGS): Likewise.
4529         * po/Makefile (mo-installed): Use inst_localedir.
4530
4531         [BZ #19575]
4532         * localedata/charmaps/GB18030: Update comments regarding PAU to
4533         non-PUA mappings.
4534
4535 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
4536
4537         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
4538         test for header.
4539         * sysdeps/unix/sysv/linux/configure: Regenerated.
4540         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
4541         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
4542         Remove conditional code.
4543         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
4544
4545         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
4546         Define to 3.2.0.
4547         (arch_minimum_kernel): Likewise.
4548         * sysdeps/unix/sysv/linux/configure: Regenerated.
4549         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
4550         Define to 2.6.32.
4551         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
4552         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
4553         (arch_minimum_kernel): Define to 2.6.32.
4554         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
4555         * README: Document Linux 3.2 requirement.
4556         * manual/install.texi (Linux): Document Linux 3.2 headers
4557         requirement.
4558         * INSTALL: Regenerated.
4559
4560 2016-02-24  Andreas Schwab  <schwab@suse.de>
4561
4562         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
4563         if !NO_LONG_DOUBLE.
4564
4565 2016-02-22  Roland McGrath  <roland@hack.frob.com>
4566
4567         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
4568         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
4569
4570 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
4571
4572         [BZ #19512]
4573         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
4574
4575 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
4576
4577         * posix/tst-dir.c: Include libc-internal.h.
4578
4579 2016-02-20  Florian Weimer  <fweimer@redhat.com>
4580
4581         [BZ #19056]
4582         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
4583         * manual/filesys.texi (Reading/Closing Directory): Mention
4584         deprecaion.
4585         * posix/tst-dir.c (main): Disable deprecation warning in test.
4586
4587 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
4588
4589         [BZ #19679]
4590         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
4591         Renamed to ...
4592         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
4593         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4594         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
4595         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4596         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4597         * sysdeps/x86_64/dl-trampoline.h
4598         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4599         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4600
4601 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4602
4603         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
4604
4605 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4606
4607         * elf/elf.h (R_386_GOT32X): New.
4608         (R_386_NUM): Update.
4609         (R_X86_64_GOTPCRELX: New.
4610         (R_X86_64_REX_GOTPCRELX): New.
4611         (R_X86_64_NUM): Update.
4612
4613 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
4614
4615         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
4616
4617 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
4618
4619         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
4620         assign attr->stackaddr to it, and adjust it down when
4621         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
4622         [_STACK_GROWS_UP]: Delete assert.
4623         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
4624         Implement stack grows up logic.
4625         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
4626         stack grows up logic.
4627
4628 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4629
4630         * NEWS: Update with 2.24 template.
4631
4632 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4633
4634         [BZ #19678]
4635         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
4636         Ensure +0.0 is returned when taking the next value below the least
4637         positive value.
4638
4639 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4640
4641         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
4642         available.  Do not define NO_THREADS.
4643         * malloc/malloc.c: Do not check NO_THREADS.
4644         * malloc/arena.c: Likewise.
4645
4646 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4647
4648         * malloc/malloc.c (__libc_mallinfo): Update comment.
4649         (struct malloc_par): Remove max_total_mem member, it was always 0.
4650         (int_mallinfo): Store 0 into usmblks (no functional change).
4651         * malloc/hooks.c (struct malloc_state): Document that
4652         max_total_mem is always 0.
4653         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
4654         always 0.
4655         * manual/memory.texi (Statistics of Malloc): Likewise.
4656
4657 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4658
4659         * malloc/malloc.c (sysmalloc): Do not update arena_max.
4660         * malloc/arena.c (arena_max): Remove.
4661         (heap_trim, _int_new_arena): Do not update arena_max.
4662
4663 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4664
4665         * resolv/res_init.c (res_ninit): Update comment.
4666
4667 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4668
4669         [BZ #19505]
4670         * posix/spawn_int.h: Add headers and include guard.
4671         (__spawn_valid_fd): New function.
4672         * posix/spawn_faction_addopen.c
4673         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
4674         * posix/spawn_faction_addclose.c
4675         (posix_spawn_file_actions_addclose): Likewise.
4676         * posix/spawn_faction_adddup2.c
4677         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
4678         second file descriptor.
4679         * posix/spawn_valid_fd.c: New file.
4680         * posix/tst-posix_spawn-fd.c: New file.
4681         * posix/Makefile (routines): Add spawn_valid_fd.
4682         (tests): Add tst-posix_spawn-fd.
4683
4684 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4685
4686         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
4687         (do_test): Limit the number of arenas, so that we can use fewer
4688         outer threads.  Limit timeout to 3 seconds, in preparation for a
4689         larger TIMEOUT value.
4690
4691 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4692
4693         [BZ #19674]
4694         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
4695         sign in overflowing and underflowing results when overflow or
4696         underflow is detected early.  Include sign in result before rather
4697         than after scaling.
4698
4699         [BZ #19603]
4700         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4701         (__ieee754_remainderl): Adjust sign of integer version of low part
4702         when taking absolute value of high part.
4703         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
4704         * math/libm-test.inc (remainder_test_data): Add another test.
4705         (remquo_test_data): Likewise.
4706
4707 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
4708
4709         [BZ #19602]
4710         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
4711         equal high parts and both low parts zero specially.
4712         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
4713         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
4714         Add test-fmodl-ldbl-128ibm.
4715
4716         [BZ #19595]
4717         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
4718         common logic for all cases of shifting subnormal results.  Do not
4719         insert sign bit in shifted mantissa.  Always pass -1023 as biased
4720         exponent to ldbl_insert_mantissa in subnormal case.
4721
4722         [BZ #19594]
4723         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
4724         on high and low parts then adjust result and use
4725         ldbl_canonicalize_int if needed.
4726
4727         [BZ #19593]
4728         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
4729         on high part and __floor or __ceil on low part then use
4730         ldbl_canonicalize_int if needed.
4731
4732         [BZ #19592]
4733         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
4734         high and low parts then use ldbl_canonicalize_int if needed.
4735
4736         [BZ #17899]
4737         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
4738         New function.
4739         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
4740         on high and low parts then use ldbl_canonicalize_int if needed.
4741
4742 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4743
4744         * configure: Regenerated.
4745
4746         * po/libc.pot: Regenerated.
4747
4748         * po/be.po: Updated translation.
4749         * po/bg.po: Likewise.
4750         * po/ca.po: Likewise.
4751         * po/cs.po: Likewise.
4752         * po/da.po: Likewise.
4753         * po/el.po: Likewise.
4754         * po/eo.po: Likewise.
4755         * po/es.po: Likewise.
4756         * po/fi.po: Likewise.
4757         * po/fr.po: Likewise.
4758         * po/gl.po: Likewise.
4759         * po/hr.po: Likewise.
4760         * po/hu.po: Likewise.
4761         * po/ia.po: Likewise.
4762         * po/id.po: Likewise.
4763         * po/it.po: Likewise.
4764         * po/ja.po: Likewise.
4765         * po/lt.po: Likewise.
4766         * po/nb.po: Likewise.
4767         * po/nl.po: Likewise.
4768         * po/pt_BR.po: Likewise.
4769         * po/rw.po: Likewise.
4770         * po/sk.po: Likewise.
4771         * po/sl.po: Likewise.
4772         * po/sv.po: Likewise.
4773         * po/tr.po: Likewise.
4774         * po/zh_CN.po: Likewise.
4775         * po/zh_TW.po: Likewise.
4776
4777         * version.h (RELEAES): Set to "development".
4778         (VERSION): Set to 2.23.90.
4779
4780         * version.h (RELEASE): Set to "stable".
4781         (VERSION): Set to 2.23.
4782         * include/feature.h (__GLIBC_MINOR__): Set to 23.
4783
4784         * NEWS: Updated fixed bugs.
4785
4786 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
4787             Wilco Dijkstra  <wdijkstr@arm.com>
4788
4789         [BZ #19462]
4790         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
4791         (_STRING_INLINE_unaligned): This.
4792         * include/string.h: Include <string_private.h>.
4793         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
4794         _STRING_INLINE_unaligned.
4795         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
4796         (_STRING_INLINE_unaligned): New.
4797         * sysdeps/aarch64/string_private.h: New file.
4798         * sysdeps/generic/string_private.h: Likewise.
4799         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
4800         * sysdeps/s390/string_private.h: Likewise.
4801         * sysdeps/x86/string_private.h: Likewise.
4802         * sysdeps/m68k/m680x0/m68020/bits/string.h
4803         (_STRING_ARCH_unaligned): Renamed to ...
4804         (_STRING_INLINE_unaligned): This.
4805         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
4806         to ...
4807         (_STRING_INLINE_unaligned): This.
4808         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
4809         to ...
4810         (_STRING_INLINE_unaligned): This.
4811         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
4812         to ...
4813         (_STRING_INLINE_unaligned): This.
4814
4815 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
4816             H.J. Lu  <hongjiu.lu@intel.com>
4817
4818         [BZ #19590]
4819         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
4820         relocation.
4821
4822 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
4823
4824         [BZ #18665]
4825         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
4826         *herrno_p.
4827         (gaih_getanswer): Document functional behviour. Return tryagain
4828         if any result is tryagain.
4829         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
4830         when freed.
4831         * resolv/res_send.c: Add copyright text.
4832         (__libc_res_nsend): Document that MAXPACKET is expected.
4833         (send_vc): Document. Remove buffer reuse.
4834         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
4835         size of the buffer. Add Dprint for truncated UDP buffer.
4836
4837 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
4838
4839         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
4840         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
4841         * INSTALL: Regenerate.
4842
4843 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
4844             Jonathan Wakely  <jwakely@redhat.com>
4845             Carlos O'Donell  <carlos@redhat.com>
4846
4847         [BZ 19439]
4848         * math/Makefile (tests): Add test-math-isinff.
4849         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
4850         * math/bits/mathcalls.h [__USE_MISC]: Use
4851         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
4852         functions not in C++11 and which don't conflict e.g. isinff,
4853         isinfl etc.
4854         * math/test-math-isinff.cc: New file.
4855
4856 2016-02-12  Florian Weimer  <fweimer@redhat.com>
4857
4858         * misc/bug18240.c (do_test): Set RLIMIT_AS.
4859
4860 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4861
4862         [BZ #19529]
4863         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
4864
4865 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4866
4867         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
4868
4869 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
4870
4871         [BZ #19550]
4872         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
4873         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
4874         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
4875         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
4876         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
4877         New syscall entry.
4878         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
4879         New syscall entry.
4880         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
4881         syscall entry.
4882
4883 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4884
4885         [BZ #18240]
4886         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
4887         unsigned int wraparound.
4888
4889 2016-01-27  Florian Weimer  <fweimer@redhat.com>
4890
4891         [BZ #18240]
4892         * misc/bug18240.c: New test.
4893         * misc/Makefile (tests): Add it.
4894
4895 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
4896             Joseph Myers  <joseph@codesourcery.com>
4897
4898         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
4899         load in branch delay slot when less than a word of input left.
4900
4901 2016-01-27  Andreas Schwab  <schwab@suse.de>
4902
4903         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
4904         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
4905         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
4906         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
4907
4908 2016-01-26  David S. Miller  <davem@davemloft.net>
4909
4910         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
4911
4912 2016-01-25  David S. Miller  <davem@davemloft.net>
4913
4914         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
4915         __sqrtl_finite.
4916         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
4917         instead using versioned_symbol.
4918         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
4919         of entries.
4920
4921         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
4922         __sqrtl_finite to GLIBC_2.23
4923
4924 2016-01-25  Ricchard Henderson  <rth@redhat.com>
4925
4926         * sysdeps/alpha/fpu/libm-test-ulps: Update.
4927
4928 2016-01-25  Andreas Schwab  <schwab@suse.de>
4929
4930         [BZ #17514]
4931         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
4932         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
4933         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
4934         * nptl/tst-mutex-errorcheck.c: New file.
4935
4936 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4937
4938         [BZ #18560]
4939         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
4940         (IPCOP_semop): Likewise.
4941         (IPCOP_semget): Likewise.
4942         (IPCOP_semctl): Likewise.
4943         (IPCOP_msgsnd): Likewise.
4944         (IPCOP_msgrcv): Likewise.
4945         (IPCOP_msgget): Likewise.
4946         (IPCOP_msgctl): Likewise.
4947         (IPCOP_shmat): Likewise.
4948         (IPCOP_shmdt): Likewise.
4949         (IPCOP_shmget): Likewise.
4950         (IPCOP_shmctl): Likewise.
4951
4952 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
4953
4954         * string/tst-endian.c: Include <libc-internal.h>.
4955         (do_test): Ignore tautological-compare warnings around
4956         "htobeXX (beXXtoh (i)) != i" and
4957         "htoleXX (leXXtoh (i)) != i" if-statements.
4958
4959 2016-01-24  David S. Miller  <davem@davemloft.net>
4960
4961         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
4962         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
4963         alias.
4964         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
4965         __sqrtl_finite.
4966
4967         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4968
4969 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
4970
4971         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
4972         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
4973         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
4974
4975 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4976
4977         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
4978         (thread_func): Use new function to simplify barrier check.
4979         (do_test): Use new function to simplify checking barrier exit
4980         code, and actually join the child thread.
4981
4982 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4983
4984         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
4985         semicolon.
4986         (__libc_tend): Likewise.
4987         (__libc_tabort): Likewise.
4988
4989 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
4990
4991         * sysdeps/nios2/libm-test-ulps: Update.
4992         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
4993         (__gtsf2): Likewise.
4994         (__unorddf2): Likewise.
4995         (__unordsf2): Likewise.
4996         (__ledf2): Likewise.
4997
4998 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
4999
5000         * nis/nis_table.c (__follow_path): Disable diagnostic for
5001         uninitialized variable that is a false positive for gcc 4.7.
5002         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
5003
5004 2016-01-20  Roland McGrath  <roland@hack.frob.com>
5005
5006         * sysdeps/nacl/lowlevellock-futex.h
5007         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
5008         Always evaluate PRIVATE argument.
5009
5010 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5011
5012         [BZ #19490]
5013         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
5014         (pthread_cond_broadcast): Use ENTRY/END
5015         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
5016         (pthread_cond_signal): Likewise.
5017         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
5018         Likewise.
5019         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
5020         Likewise.
5021         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
5022         Likewise.
5023
5024 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
5025
5026         * sysdeps/ieee754/dbl-64/s_finite.c
5027         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
5028         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
5029         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
5030         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
5031         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
5032
5033         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
5034         (__gtsf2): Add as optional for libc.so.
5035         (__unordsf2): Likewise.
5036         (__signbit): Remove for libc.so.
5037         (__signbitl): Likewise.
5038
5039 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
5040
5041         * iconvdata/bug-iconv11.c (test_ibm93x):
5042         Use %zu printf format specifier for size_t argument.
5043
5044 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
5045
5046         * math/gen-libm-test.pl (parse_ulps): Do not reduce
5047         already-recorded ulps.
5048         * sysdeps/arm/libm-test-ulps: Regenerated.
5049         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
5050         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5051         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
5052
5053 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5054             Paul Pluzhnikov  <ppluzhnikov@google.com>
5055
5056         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
5057         assembler not supporting AVX-512.
5058
5059 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
5060
5061         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5062
5063 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
5064
5065         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
5066         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5067
5068         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
5069
5070         * sysdeps/arm/libm-test-ulps: Regenerated.
5071
5072 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
5073
5074         [BZ #19451]
5075         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
5076
5077 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
5078
5079         [BZ #19486]
5080         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
5081         * sysdeps/generic/fix-fp-int-convert-overflow.h
5082         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
5083         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
5084         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
5085         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
5086         Likewise.
5087         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
5088         Avoid conversions to long int where inexact exceptions
5089         could be raised.
5090         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
5091         Likewise.
5092         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
5093         Avoid conversions to long long int where inexact exceptions
5094         could be raised.
5095         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
5096         Likewise.
5097
5098 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
5099
5100         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
5101         * configure: Regenerated.
5102
5103 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5104
5105         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
5106
5107 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
5108
5109         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
5110         outside of comment.
5111
5112 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5113
5114         * nptl/tst-barrier1.c: Add description on first line.
5115         * nptl/tst-barrier2.c: Likewise.
5116         * nptl/tst-barrier3.c: Likewise.
5117         * nptl/tst-barrier4.c: Likewise.
5118         * nptl/tst-barrier5.c: Likewise.
5119
5120 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5121
5122         [BZ #18868]
5123         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
5124
5125 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5126
5127         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
5128         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5129         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
5130         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
5131         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
5132         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
5133         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
5134         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
5135         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
5136         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
5137         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
5138
5139 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5140
5141         [BZ #13065]
5142         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
5143         new implementation.
5144         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
5145         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
5146         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
5147         (BARRIER_IN_THRESHOLD): New macro.
5148         * nptl/pthread_barrierattr_setpshared.c
5149         (pthread_barrierattr_setpshared): Clean up.
5150         * nptl/tst-barrier4.c: Correct comment.
5151         * nptl/tst-barrier5.c: New file.
5152         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
5153         (gen-as-const-headers): Remove lowlevelbarrier.sym.
5154         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
5155         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
5156         * nptl/lowlevelbarrier.sym: Remove.
5157         * nptl/DESIGN-barrier.txt: Remove.
5158         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
5159         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
5160         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
5161         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
5162         error.
5163         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
5164         implementation.
5165
5166 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5167
5168         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
5169         (do_child): Mask SIGRTMIN while thr is running.
5170
5171 2016-01-15  Martin Sebor  <msebor@redhat.com>
5172
5173         [BZ #19432]
5174         * iconvdata/Makefile: Add bug-iconv11.
5175         * iconvdata/bug-iconv11.c: New test.
5176         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
5177         * iconvdata/ibm933.c: Same.
5178         * iconvdata/ibm935.c: Same.
5179         * iconvdata/ibm937.c: Same.
5180         * iconvdata/ibm939.c: Same.
5181
5182 2016-01-15  Martin Sebor  <msebor@redhat.com>
5183
5184         [BZ #19443]
5185         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
5186         [DEBUG] (_ufc_set_bits): Declare used.
5187         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
5188         [DEBUG] (print_all): Declare used.
5189         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
5190         operands of the ternary ?: expression to target type.
5191         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
5192         calling the undeclared abort.
5193         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
5194
5195 2016-01-15  Martin Sebor  <msebor@redhat.com>
5196
5197         [BZ #18755]
5198         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
5199         warnings.
5200         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
5201         (__gai_create_helper_thread): Same.
5202         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
5203         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
5204         to suppress -Wmaybe-uninitialized warnings.
5205
5206 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
5207
5208         [BZ #19465]
5209         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
5210         inside if.
5211         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5212         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5213         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5214
5215 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
5216
5217         [BZ #19466]
5218         * time/tst-mktime2.c (time_t_max): Removed.
5219         (time_t_min): Likewise.
5220         (TYPE_SIGNED): New.
5221         (TYPE_MINIMUM): Likewise.
5222         (TYPE_MAXIMUM): Likewise.
5223         (TIME_T_MIN): Likewise.
5224         (TIME_T_MAX): Likewise.
5225         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
5226         and TIME_T_MIN.
5227         (do_test): Likewise.
5228
5229 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
5230
5231         [BZ #19467]
5232         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
5233         index_Fast_Unaligned_Load flag for Excavator family CPUs.
5234
5235 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
5236
5237         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
5238
5239 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
5240
5241         * benchtests/Makefile (PYTHON): Define.
5242         (bench-func): Use $(PYTHON) to run python scripts.
5243         ($(objpfx)bench-%.c): Likewise.
5244
5245 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
5246
5247         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
5248         leading slash when `file_name' is "/".
5249
5250 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
5251
5252         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
5253         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
5254         Likewise.
5255         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
5256         Likewise.
5257         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
5258         Likewise.
5259         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
5260         enum constant and macro.
5261         (PTRACE_SETSIGMASK): Likewise.
5262         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5263         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
5264         (PTRACE_GETSIGMASK): Likewise.
5265         (PTRACE_SETSIGMASK): Likewise.
5266         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5267         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
5268         Likewise.
5269         (PTRACE_SETSIGMASK): Likewise.
5270         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5271         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5272         (PTRACE_GETSIGMASK): Likewise.
5273         (PTRACE_SETSIGMASK): Likewise.
5274         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5275         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
5276         Likewise.
5277         (PTRACE_SETSIGMASK): Likewise.
5278         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5279         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
5280         Likewise.
5281         (PTRACE_SETSIGMASK): Likewise.
5282         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5283         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
5284         Likewise.
5285         (PTRACE_SETSIGMASK): Likewise.
5286         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5287
5288 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
5289             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5290
5291         [BZ #19439]
5292         * math/bits/mathcalls.h
5293         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
5294         prototype.
5295         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
5296
5297 2016-01-11  Andreas Schwab  <schwab@suse.de>
5298
5299         [BZ #19253]
5300         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
5301         cache when TZDEFRULES was used.
5302         * time/tst-tzname.c: New file.
5303         * time/Makefile (test): Add tst-tzname.
5304         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
5305         * timezone/Makefile (test-zones): Add $(posixrules-file).
5306         ($(testdata)/$(posixrules-file)): New rule.
5307
5308 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5309
5310         Fix doc quoting problems with Texinfo 5
5311         Without this change, in the info file output, Texinfo 5 quotes code
5312         in text with undirected single quotes 'like this' and generates
5313         code examples that with many PDF readers cannot be cut out of PDFs
5314         and pasted into code.
5315         * manual/libc.texinfo: Configure the libc manual like the GNU
5316         Emacs manual, by using @documentencoding and setting
5317         txicodequoteundirected and txicodequotebacktick.  This way,
5318         Texinfo 5 quotes code in text with directed single quotes ‘like
5319         this’ and produces examples that can be cut out of PDFs.  This
5320         change causes Texinfo 5 to generate info files that contain UTF-8
5321         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
5322         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
5323
5324 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5325
5326         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
5327         __libc_tabort, __libc_tend): New wrappers that enforce compiler
5328         barriers to their respective compiler built-ins.
5329         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
5330         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
5331         * sysdeps/powerpc/sysdep.h: Likewise.
5332         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
5333         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
5334         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
5335
5336 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
5337
5338         * scripts/config.guess: Revert previous shebang change.
5339         * scripts/config.sub: Likewise.
5340         * scripts/mkinstalldirs: Likewise.
5341
5342 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5343
5344         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
5345         PPC_FEATURE2_HAS_IEEE128.
5346         * sysdeps/powerpc/dl-procinfo.c:
5347         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
5348
5349 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
5350
5351         [BZ #19415]
5352         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
5353         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
5354         (_dl_lookup_address): Rewrite using function resolver trampoline.
5355         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
5356         two bits in address.
5357
5358 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5359
5360         * longlong.h: Change !__SHMEDIA__ to
5361         (!defined (__SHMEDIA__) || !__SHMEDIA__).
5362         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
5363
5364 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
5365             Joseph Myers  <joseph@codesourcery.com>
5366             Mark Shinwell  <shinwell@codesourcery.com>
5367             Andrew Stubbs  <ams@codesourcery.com>
5368             Rich Felker <dalias@libc.org>
5369
5370         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
5371
5372 2016-01-07  Richard Henderson  <rth@redhat.com>
5373
5374         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
5375
5376 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5377
5378         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
5379         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
5380         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
5381         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
5382         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
5383
5384 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
5385             Joseph Myers  <joseph@codesourcery.com>
5386
5387         * timezone/private.h: Update from tzcode 2015g.
5388         * timezone/tzfile.h: Likewise.
5389         * timezone/tzselect.ksh: Likewise.
5390         * timezone/zdump.c: Likewise.
5391         * timezone/zic.c: Likewise.
5392         * timezone/ialloc.c: Remove file.
5393         * timezone/scheck.c: Likewise.
5394         * timezone/Makefile (extra-objs): Remove variable.
5395         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
5396         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
5397         -Wno-maybe-uninitialized.
5398         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
5399         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
5400         (CFLAGS-ialloc.c): Remove variable.
5401         (CFLAGS-scheck.c): Likewise.
5402         * timezone/README: Update list of files from tzcode.
5403
5404 2016-01-07  Khem Raj  <raj.khem@gmail.com>
5405
5406         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
5407         instead of __fxprintf when _LIBC is undefined.
5408
5409 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
5410
5411         * catgets/test-gencat.sh: Remove space after shebang.
5412         * conform/GlibcConform.pm: Likewise.
5413         * conform/check-header-lists.sh: Likewise.
5414         * conform/conformtest.pl: Likewise.
5415         * conform/linknamespace.pl: Likewise.
5416         * conform/list-header-symbols.pl: Likewise.
5417         * debug/catchsegv.sh: Likewise.
5418         * elf/genrtldtbl.awk: Likewise.
5419         * elf/tst-pathopt.sh: Likewise.
5420         * elf/tst-rtld-load-self.sh: Likewise.
5421         * grp/tst_fgetgrent.sh: Likewise.
5422         * iconvdata/gen-8bit-gap-1.sh: Likewise.
5423         * iconvdata/gen-8bit-gap.sh: Likewise.
5424         * iconvdata/gen-8bit.sh: Likewise.
5425         * iconvdata/run-iconv-test.sh: Likewise.
5426         * intl/tst-gettext.sh: Likewise.
5427         * intl/tst-gettext2.sh: Likewise.
5428         * intl/tst-gettext4.sh: Likewise.
5429         * intl/tst-gettext6.sh: Likewise.
5430         * intl/tst-translit.sh: Likewise.
5431         * io/ftwtest-sh: Likewise.
5432         * libio/test-freopen.sh: Likewise.
5433         * locale/gen-translit.pl: Likewise.
5434         * malloc/tst-mtrace.sh: Likewise.
5435         * manual/check-safety.sh: Likewise.
5436         * manual/libc-texinfo.sh: Likewise.
5437         * manual/tsort.awk: Likewise.
5438         * manual/xtract-typefun.awk: Likewise.
5439         * nptl/tst-cancel-wrappers.sh: Likewise.
5440         * nptl/tst-tls6.sh: Likewise.
5441         * posix/globtest.sh: Likewise.
5442         * posix/tst-getconf.sh: Likewise.
5443         * posix/wordexp-tst.sh: Likewise.
5444         * scripts/check-c++-types.sh: Likewise.
5445         * scripts/check-local-headers.sh: Likewise.
5446         * scripts/config.guess: Likewise.
5447         * scripts/config.sub: Likewise.
5448         * scripts/cpp: Likewise.
5449         * scripts/cross-test-ssh.sh: Likewise.
5450         * scripts/documented.sh: Likewise.
5451         * scripts/evaluate-test.sh: Likewise.
5452         * scripts/gen-libc-abis: Likewise.
5453         * scripts/gen-sorted.awk: Likewise.
5454         * scripts/list-fixed-bugs.py: Likewise.
5455         * scripts/merge-test-results.sh: Likewise.
5456         * scripts/mkinstalldirs: Likewise.
5457         * scripts/rellns-sh: Likewise.
5458         * scripts/test-installation.pl: Likewise.
5459         * scripts/update-copyrights: Likewise.
5460         * stdio-common/tst-printf.sh: Likewise.
5461         * stdio-common/tst-unbputc.sh: Likewise.
5462         * stdlib/tst-fmtmsg.sh: Likewise.
5463         * stdlib/tst-setcontext3.sh: Likewise.
5464         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
5465         * sysdeps/unix/make-syscalls.sh: Likewise.
5466
5467 2016-01-06  John David Anglin  <dave.anglin@bell.net>
5468
5469         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
5470         asm stw with atomic_exchange_rel.  Add explanatory comment.
5471         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
5472         Likewise.
5473
5474 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5475
5476         [BZ #19122]
5477         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
5478         * sysdeps/generic/dl-unistd.h: New file.
5479         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
5480
5481 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5482
5483          [BZ #19122]
5484          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
5485          * sysdeps/generic/dl-mman.h: New file.
5486          * sysdeps/mach/hurd/dl-mman.h: Likewise.
5487
5488 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
5489
5490         * manual/texinfo.tex: Update to version 2016-01-04.21 with
5491         trailing whitespace removed.
5492         * scripts/config.guess: Update to version 2016-01-01.
5493         * scripts/config.sub: Update to version 2016-01-01.
5494         * scripts/move-if-change: Update from gnulib.
5495
5496 2016-01-04  Anton Blanchard  <anton@samba.org>
5497
5498         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
5499         for array indices.
5500         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
5501
5502 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
5503
5504         * NEWS: Update copyright dates.
5505         * catgets/gencat.c (print_version): Likewise.
5506         * csu/version.c (banner): Likewise.
5507         * debug/catchsegv.sh: Likewise.
5508         * debug/pcprofiledump.c (print_version): Likewise.
5509         * debug/xtrace.sh (do_version): Likewise.
5510         * elf/ldconfig.c (print_version): Likewise.
5511         * elf/ldd.bash.in: Likewise.
5512         * elf/pldd.c (print_version): Likewise.
5513         * elf/sotruss.sh: Likewise.
5514         * elf/sprof.c (print_version): Likewise.
5515         * iconv/iconv_prog.c (print_version): Likewise.
5516         * iconv/iconvconfig.c (print_version): Likewise.
5517         * locale/programs/locale.c (print_version): Likewise.
5518         * locale/programs/localedef.c (print_version): Likewise.
5519         * login/programs/pt_chown.c (print_version): Likewise.
5520         * malloc/memusage.sh (do_version): Likewise.
5521         * malloc/memusagestat.c (print_version): Likewise.
5522         * malloc/mtrace.pl: Likewise.
5523         * manual/libc.texinfo: Likewise.
5524         * nptl/version.c (banner): Likewise.
5525         * nscd/nscd.c (print_version): Likewise.
5526         * nss/getent.c (print_version): Likewise.
5527         * nss/makedb.c (print_version): Likewise.
5528         * posix/getconf.c (main): Likewise.
5529         * scripts/test-installation.pl: Likewise.
5530         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
5531
5532         * All files with FSF copyright notices: Update copyright dates
5533         using scripts/update-copyrights.
5534         * intl/plural.c: Regenerated.
5535         * locale/programs/charmap-kw.h: Likewise.
5536         * locale/programs/locfile-kw.h: Likewise.
5537
5538 2016-01-02  Helge Deller  <deller@gmx.de>
5539
5540         [BZ #19285]
5541         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
5542         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
5543         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
5544         (MADV_xxK_PAGES): Remove.
5545
5546 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
5547
5548         [BZ #15421]
5549         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
5550         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
5551         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
5552         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
5553
5554 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
5555
5556         [BZ #19408]
5557         * sysdeps/unix/sysv/linux/personality.c: New file.
5558         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
5559         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
5560         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
5561         (sysdep_routines): Add personality.
5562         (tests): Add tst-personality.
5563         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
5564         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
5565         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
5566         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
5567         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
5568         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
5569         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
5570         Likewise.
5571         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
5572         Likewise.
5573         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
5574         Likewise.
5575         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
5576         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
5577         Likewise.
5578
5579 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
5580
5581         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
5582         (PATH_ARM_SYSTYPE): Remove.
5583         (PATH_CPUINFO): Likewise.
5584         (IO_BASE_FOOTBRIDGE): Likewise.
5585         (IO_SHIFT_FOOTBRIDGE): Likewise.
5586         (struct platform): Likewise.
5587         (init_iosys): Remove compatibility code for 2.4 kernels.
5588         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
5589
5590 2015-12-29  Florian Weimer  <fweimer@redhat.com>
5591
5592         * malloc/tst-malloc-thread-fail.c: New file.
5593         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
5594         (tst-malloc-thread-fail): Link against libpthread.
5595
5596 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
5597
5598         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
5599         (get_parser): New function.
5600         (main): New function.
5601
5602 2015-12-29  Rob Wu  <rob@robwu.nl>
5603
5604         [BZ #19369]
5605         * resolv/res_init.c (__res_vinit): Reset defdname before use.
5606
5607 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
5608
5609         [BZ #19270]
5610         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
5611
5612 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
5613
5614         [BZ #15421]
5615         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
5616
5617 2015-12-23  Torvald Riegel  <triegel@redhat.com>
5618
5619         [BZ #13690]
5620         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
5621         after releasing it.
5622         (__lll_robust_unlock): Likewise.
5623         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5624         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
5625         (lll_robust_unlock): Likewise.
5626         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
5627         Prevent warnings in callers.
5628
5629 2015-12-23  Florian Weimer  <fweimer@redhat.com>
5630
5631         * malloc/arena.c (list_lock): Update comment.
5632
5633 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5634
5635         * sysdeps/powerpc/hwcapinfo.c: Export symbol
5636         __parse_hwcap_and_convert_at_platform to libc.a.
5637
5638 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5639
5640         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
5641         platform and feature support for POWER9.
5642         * sysdeps/powerpc/dl-procinfo.h: Likewise.
5643         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
5644         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
5645         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
5646         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
5647         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
5648         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
5649         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
5650
5651 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5652
5653         Harmonize generic stdio-lock support with nptl
5654
5655         This fixes build when _IO_funlockfile is a macro, fixes build where
5656         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
5657         stack unwind.
5658
5659         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
5660         _IO_release_lock ): Use cleanup attribute on new
5661         _IO_acquire_lock_file variable instead of assuming that
5662         _IO_release_lock will be called.
5663         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
5664         _IO_acquire_lock_needs_exceptions_enabled.
5665         (_IO_acquire_lock_clear_flags2): New macro.
5666
5667 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5668
5669         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5670
5671 2015-12-21  Florian Weimer  <fweimer@redhat.com>
5672
5673         [BZ #19182]
5674         * malloc/arena.c (list_lock): Document lock ordering requirements.
5675         (free_list_lock): New lock.
5676         (ptmalloc_lock_all): Comment on free_list_lock.
5677         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
5678         (detach_arena): Update comment.  free_list_lock is now needed.
5679         (_int_new_arena): Use free_list_lock around detach_arena call.
5680         Acquire arena lock after list_lock.  Add comment, including FIXME
5681         about incorrect synchronization.
5682         (get_free_list): Switch to free_list_lock.
5683         (reused_arena): Acquire free_list_lock around detach_arena call
5684         and attached threads counter update.  Add two FIXMEs about
5685         incorrect synchronization.
5686         (arena_thread_freeres): Switch to free_list_lock.
5687         * malloc/malloc.c (struct malloc_state): Update comments to
5688         mention free_list_lock.
5689
5690 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
5691
5692         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
5693         Remove functions.
5694         (sloww, sloww1): Accept argument to offset quadrant.
5695         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
5696         quadrant.
5697         (__sin, __cos): Consolidate common code into new functions.
5698         (reduce_sincos_1, do_sincos_1): New functions.
5699         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5700
5701         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
5702         code to new functions.
5703         (reduce_sincos_2, do_sincos_2): New functions.
5704         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5705
5706         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
5707         common code for sincos.
5708         (__cos) [!IN_SINCOS]: Likewise.
5709         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
5710         New function.
5711         (__sincos): Use it.
5712
5713 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
5714
5715         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
5716         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
5717         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
5718
5719 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5720
5721         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
5722         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
5723         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5724         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
5725         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
5726         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
5727         index_Prefer_No_VZEROUPPER): New feature.
5728         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
5729         Prefer_No_VZEROUPPER for Knights Landing.
5730
5731 015-12-18  Torvald Riegel  <triegel@redhat.com>
5732
5733         * math/atest-exp2.c (mp_exp_m1): Remove.
5734
5735 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5736
5737         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
5738         syscalls.
5739         (__SYSCALL0): New macro.
5740         (__SYSCALL1): Likewise.
5741         (__SYSCALL2): Likewise.
5742         (__SYSCALL3): Likewise.
5743         (__SYSCALL4): Likewise.
5744         (__SYSCALL5): Likewise.
5745         (__SYSCALL6): Likewise.
5746         (__SYSCALL_CONCAT_X): Likewise.
5747         (__SYSCALL_CONCAT): Likewise.
5748         (__SYSCALL_DIST): Likewise.
5749         (__SYSCALL_CALL): Likewise.
5750
5751 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
5752
5753         [BZ #19363]
5754         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
5755
5756 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5757
5758         [BZ #19375]
5759         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
5760         negative subnormals.
5761
5762 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
5763
5764         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
5765         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
5766         (INTERNAL_SYSCALL_NCS): Use it.
5767         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5768
5769 2015-12-16  Florian Weimer  <fweimer@redhat.com>
5770
5771         [BZ #19243]
5772         * malloc/arena.c (get_free_list): Remove assert and adjust
5773         reference count handling.  Add comment about reused_arena
5774         interaction.
5775         (reused_arena): Add comments abount get_free_list interaction.
5776         * malloc/tst-malloc-thread-exit.c: New file.
5777         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
5778         (tst-malloc-thread-exit): Link against libpthread.
5779
5780 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5781
5782         [BZ #19367]
5783         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
5784         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
5785         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
5786         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
5787         (index_Prefer_MAP_32BIT_EXEC): Likewise.
5788
5789 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5790
5791         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
5792         Silvermont optimizations for Knights Landing.
5793
5794 2015-12-15  Andreas Schwab  <schwab@suse.de>
5795
5796         [BZ #17197]
5797         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
5798         immediately after emitting SI.
5799         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
5800         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
5801         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
5802         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
5803         * iconvdata/bug-iconv10.c: New file.
5804         * iconvdata/Makefile (tests): Add bug-iconv10.
5805         ($(objpfx)bug-iconv10.out): New rule.
5806
5807 2015-12-15  Florian Weimer  <fweimer@redhat.com>
5808
5809         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
5810         aliasing violation.
5811
5812 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
5813
5814         [BZ #18472]
5815         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
5816         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
5817         conditionals for them.
5818         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
5819         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
5820         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
5821         sys/kdaemon.h.
5822         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
5823         compat-only syscall, obsoleted in glibc 2.23.
5824         (create_module): Likewise.
5825         (get_kernel_syms): Likewise.
5826         (query_module): Likewise.
5827         (uselib): Likewise.
5828         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
5829
5830 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
5831
5832         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
5833         <linux/version.h>.
5834         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
5835         conditional code.
5836         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
5837         and ioshift_name initialization.
5838
5839 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5840
5841         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
5842         Fix indentation.
5843
5844 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5845
5846         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
5847
5848 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5849
5850         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
5851
5852 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
5853             Jakub Wilk  <jwilk@debian.org>
5854
5855         [BZ #19347]
5856         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
5857         to change the group of the device to the tty group.
5858
5859 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
5860
5861         Split large string section; add truncation advice
5862         * manual/examples/strncat.c: Remove.
5863         This example was misleading, as the code would have undefined
5864         behavior if "hello" was longer than SIZE.  Anyway, the manual
5865         shouldn't encourage strncpy+strncat for this sort of thing.
5866         * manual/string.texi (Copying Strings and Arrays): Split into
5867         three sections Copying Strings and Arrays, Concatenating Strings,
5868         and Truncating Strings, as this section was way too long.  All
5869         cross-referenced changed.  Add advice about string-truncation
5870         functions.  Remove misleading strncat example.
5871
5872 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
5873
5874         * manual/nss.texi (NSS Modules Interface): Document
5875         NSS_STATUS_NOTFOUND and SUCCESS.
5876
5877 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
5878
5879         [BZ 18568]
5880         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
5881         201505L, for Unicode 8.
5882
5883 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
5884
5885         * locale/C-translit.h: Regenerate.
5886
5887 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
5888
5889         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
5890         and U+0153.
5891
5892 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
5893
5894         [BZ #19351]
5895         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
5896         expanding log(1+z), compare z rather than its square with epsilon
5897         to determine when to avoid evaluating the expansion.
5898
5899         [BZ #19350]
5900         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
5901         Increase overflow threshold.
5902
5903         [BZ #19349]
5904         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
5905         when small.
5906
5907         * sysdeps/unix/sysv/linux/i386/kernel-features.h
5908         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
5909         New macro.
5910         [__LINUX_KERNEL_VERSION >= 0x040300]
5911         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5912         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
5913         Likewise.
5914         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
5915         Likewise.
5916         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
5917         Likewise.
5918         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
5919         Likewise.
5920         [__LINUX_KERNEL_VERSION >= 0x040300]
5921         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
5922         [__LINUX_KERNEL_VERSION >= 0x040300]
5923         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5924         [__LINUX_KERNEL_VERSION >= 0x040300]
5925         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5926         [__LINUX_KERNEL_VERSION >= 0x040300]
5927         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5928         [__LINUX_KERNEL_VERSION >= 0x040300]
5929         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5930         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
5931         Likewise.
5932         [__LINUX_KERNEL_VERSION >= 0x040300]
5933         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
5934         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5935         Likewise.
5936         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
5937         Likewise.
5938         [__LINUX_KERNEL_VERSION >= 0x040300]
5939         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
5940         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5941         Likewise.
5942         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
5943         Likewise.
5944         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5945         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
5946         Likewise.
5947         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
5948         Likewise.
5949         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
5950         Likewise.
5951         [__LINUX_KERNEL_VERSION >= 0x040300]
5952         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5953         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
5954         Likewise.
5955         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
5956         Likewise.
5957         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
5958         Likewise.
5959         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
5960         Likewise.
5961         [__LINUX_KERNEL_VERSION >= 0x040300]
5962         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
5963         [__LINUX_KERNEL_VERSION >= 0x040300]
5964         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5965         [__LINUX_KERNEL_VERSION >= 0x040300]
5966         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5967         [__LINUX_KERNEL_VERSION >= 0x040300]
5968         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5969         [__LINUX_KERNEL_VERSION >= 0x040300]
5970         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5971         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
5972         Likewise.
5973         [__LINUX_KERNEL_VERSION >= 0x040300]
5974         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
5975         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5976         Likewise.
5977         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
5978         Likewise.
5979         [__LINUX_KERNEL_VERSION >= 0x040300]
5980         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
5981         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5982         Likewise.
5983         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
5984         Likewise.
5985         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5986         (__ASSUME_SOCKET_SYSCALL): Likewise.
5987         (__ASSUME_BIND_SYSCALL): Likewise.
5988         (__ASSUME_CONNECT_SYSCALL): Likewise.
5989         (__ASSUME_LISTEN_SYSCALL): Likewise.
5990         (__ASSUME_ACCEPT_SYSCALL): Likewise.
5991         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5992         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5993         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5994         (__ASSUME_SEND_SYSCALL): Likewise.
5995         (__ASSUME_SENDTO_SYSCALL): Likewise.
5996         (__ASSUME_RECV_SYSCALL): Likewise.
5997         (__ASSUME_RECVFROM_SYSCALL): Likewise.
5998         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
5999         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6000         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6001         (__ASSUME_SENDMSG_SYSCALL): Likewise.
6002         (__ASSUME_RECVMSG_SYSCALL): Likewise.
6003         * sysdeps/unix/sysv/linux/sh/kernel-features.h
6004         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
6005         Likewise.
6006         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
6007         Likewise.
6008         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
6009         Likewise.
6010         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
6011         Likewise.
6012         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
6013         Likewise.
6014         [__LINUX_KERNEL_VERSION >= 0x020625]
6015         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6016         [__LINUX_KERNEL_VERSION >= 0x020625]
6017         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6018         [__LINUX_KERNEL_VERSION >= 0x020625]
6019         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6020         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
6021         Likewise.
6022         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
6023         Likewise.
6024         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
6025         Likewise.
6026         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
6027         Likewise.
6028         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
6029         Likewise.
6030         [__LINUX_KERNEL_VERSION >= 0x020625]
6031         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6032         [__LINUX_KERNEL_VERSION >= 0x020625]
6033         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6034         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
6035         Likewise.
6036         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
6037         Likewise.
6038
6039 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6040
6041         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
6042         record the current if the current ABI and CPU support the FP64
6043         extension.
6044         (has-modd-spreg): Define to record the current if the current ABI and
6045         CPU support 32-bit floating point values in odd FPU registers.
6046         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6047         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
6048         $(has-modd-spreg) equals yes.
6049         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
6050         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
6051         $(has-modd-spreg) equal yes.
6052
6053 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6054
6055         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
6056         basename.
6057
6058 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
6059
6060         * benchtests/Makefile (bench-math): Move ffs and ffsll...
6061         (bench-string): ... here.
6062         (bench): Add bench-string.
6063         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
6064         to *-benchset to reflect what they are.
6065         (benchset): Adjust.
6066
6067         * benchtests/sincos-inputs: Add inputs from sin-inputs and
6068         cos-inputs.
6069
6070 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
6071
6072         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
6073         __attribute__ ((__simd__)) for vector math function declarations.
6074
6075 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6076
6077         Fix typo in strncat, wcsncat manual entries
6078         * manual/string.texi (Copying and Concatenation): Fix typos in
6079         sample implementations of strncat and wcsncat, by having them use
6080         the old value of the destination length, not the new one.
6081
6082 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
6083
6084         [BZ #16961]
6085         [BZ #16962]
6086         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
6087         string on the stack for strtod.
6088         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
6089         a string on the stack for strtof.
6090         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
6091         constructing a string on the stack for strtold.
6092         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
6093         __strtold_nan to GLIBC_PRIVATE.
6094         * math/test-nan-overflow.c: New file.
6095         * math/test-nan-payload.c: Likewise.
6096         * math/Makefile (tests): Add test-nan-overflow and
6097         test-nan-payload.
6098
6099 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6100
6101         Consistency about byte vs character in string.texi
6102         * manual/string.texi (String and Array Utilities):
6103         Distinguish more carefully among bytes, multibyte characters,
6104         and wide characters.  Use "byte" when talking about C 'char',
6105         to distinguish it more clearly from multibyte characters.
6106         Say "wide character" or "multibyte character" instead of
6107         "character", when a wide or multibyte character is intended.
6108         Similarly for "multibyte string" versus "string".
6109         Define these terms more carefully.
6110
6111 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
6112
6113         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
6114         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
6115         Likewise.
6116         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6117         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6118         * sysdeps/sh/math_private.h: New file.
6119         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
6120         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
6121         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
6122         long double function name.
6123         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6124         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6125         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
6126         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
6127         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6128         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
6129         Remove __finitel, __isinfl, and __isnanl.
6130         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6131         Likewise.
6132         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6133         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6134         Remove __finitel.
6135         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6136         Likewise.
6137         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6138
6139 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
6140
6141         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
6142         installed libmvec_nonshared.a.
6143
6144 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6145
6146         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
6147         (sysdep_routines): Likewise.
6148         (sysdep-rtld-routines): Likewise.
6149         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
6150         [$(subdir) = nptl](tests-static): test-get_hwcap-static
6151         * sysdeps/powerpc/Versions: Added new
6152         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
6153         * sysdeps/powerpc/hwcapinfo.c: New file.
6154         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
6155         and parse hwcap, hwcap2 and platform number information.
6156         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
6157         to store HWCAP+HWCAP2 and platform number.
6158         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
6159         for HWCAP+HWCAP2 and platform number in the TCB.
6160         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
6161         the HWCAP, HWCAP2 and platform number in the TCB.
6162         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
6163         (TLS_INIT_TP): Included calls to add the hwcap and
6164         at_platform values in the TCB in TP initialization.
6165         (TLS_DEFINE_INIT_TP): Likewise.
6166         (THREAD_GET_HWCAP): New macro.
6167         (THREAD_SET_HWCAP): Likewise.
6168         (THREAD_GET_AT_PLATFORM): Likewise.
6169         (THREAD_SET_AT_PLATFORM): Likewise.
6170         * sysdeps/powerpc/powerpc32/dl-machine.h:
6171         (dl_platform_init): New function that calls
6172         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
6173         powerpc32.
6174         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
6175         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
6176         this functionality, static linking case.
6177         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
6178         linking case.
6179         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
6180         __parse_hwcap_and_convert_at_platform for the static linking case.
6181         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
6182         Included the new __parse_hwcap_and_convert_at_platform symbol in the
6183         ABI list for GLIBC 2.23.
6184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
6185         Likewise.
6186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
6187         Likewise.
6188
6189 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
6190
6191         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
6192         * configure: Regenerate.
6193         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
6194         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
6195
6196 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
6197
6198         * iconvdata/ibm930.c: Add comment explaining encoding uses.
6199         * iconvdata/ibm933.c: Likewise.
6200         * iconvdata/ibm935.c: Likewise.
6201         * iconvdata/ibm937.c: Likewise.
6202         * iconvdata/ibm939.c: Likewise.
6203
6204 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6205
6206         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
6207         pthread_join.
6208         * nptl/tst-cancel21.c (tf): Likewise.
6209
6210 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
6211
6212         [BZ #19313]
6213         * bits/typesizes.h (__CPU_MASK_TYPE): New.
6214         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6215         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6216         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
6217         Likewise.
6218         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
6219         Likewise.
6220         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
6221         Likewise.
6222         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
6223         Likewise.
6224         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
6225         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
6226         unsigned long int with __CPU_MASK_TYPE.
6227
6228 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6229
6230         * sysdeps/aarch64/libm-test-ulps: Regenerated.
6231
6232 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
6233
6234         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
6235         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
6236         t512.x.
6237         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
6238
6239 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
6240
6241         [BZ #19214]
6242         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
6243         argument to return extended model.  Update family and model
6244         with extended family and model when family == 0x0f.
6245         (init_cpu_features): Updated.
6246
6247 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6248
6249         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
6250         signed off_t, so 32bit bigger than 2GiB values are fine actually.
6251
6252         * sysdeps/mach/hurd/mmap64.c: New file.
6253
6254 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
6255
6256         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
6257         rights for its main user thread in NEWTASK.
6258
6259 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
6260
6261         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
6262         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
6263
6264 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
6265
6266         [BZ #14259]
6267         * Makeconfig: Rename localedir to complocaledir.
6268         Rename inst_localedir to inst_complocaledir.
6269         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
6270         * config.make.in: Use complocaledir and libc_cv_complocaledir.
6271         * configure.ac: Use libc_cv_complocaledir.
6272         * configure: Regenerate.
6273         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
6274         -DCOMPLOCALEDIR.
6275         * locale/findlocale.c: Use COMPLOCALEDIR.
6276         * locale/loadarchive.c: Likewise.
6277         * locale/programs/locale.c: Likewise.
6278         * locale/programs/localedef.c: Likewise.
6279         * locale/programs/locarchive.c: Likewise.
6280         * localedata/Makefile: Use inst_complocaledir.
6281         * sysdeps/gnu/configure: Regenerate.
6282         * sysdeps/hppa/configure: Regenerate.
6283         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
6284         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
6286         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
6287         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
6288         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
6289         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
6290
6291 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
6292
6293         [BZ #19058]
6294         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
6295         AS_NEEDED.
6296         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
6297         workaround.
6298         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
6299         libmvec-static-only-routines): Added new file.
6300         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
6301
6302 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6303
6304         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
6305         of interrupted RPC instead of restoring it.
6306
6307         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
6308         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
6309         libc_hidden_def.
6310         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
6311         into initialized data instead of common. Define rtld_hidden_data_def.
6312         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
6313         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
6314         libc_hidden_def.
6315         (if_freenameindex): Add libc_hidden_weak.
6316         (if_nameindex): Add libc_hidden_weak.
6317         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
6318         __open64.
6319         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
6320         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
6321         * sysdeps/mach/nanosleep.c: Include <time.h>
6322         (__nanosleep): Rename to __libc_nanosleep.
6323         (__nanosleep): Add weak_alias.
6324         (nanosleep): Update alias.
6325
6326 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
6327
6328         * stdlib/strtod_nan.c: New file.
6329         * stdlib/strtod_nan_double.h: Likewise.
6330         * stdlib/strtod_nan_float.h: Likewise.
6331         * stdlib/strtod_nan_main.c: Likewise.
6332         * stdlib/strtod_nan_narrow.h: Likewise.
6333         * stdlib/strtod_nan_wide.h: Likewise.
6334         * stdlib/strtof_nan.c: Likewise.
6335         * stdlib/strtold_nan.c: Likewise.
6336         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
6337         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
6338         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
6339         * wcsmbs/wcstod_nan.c: Likewise.
6340         * wcsmbs/wcstof_nan.c: Likewise.
6341         * wcsmbs/wcstold_nan.c: Likewise.
6342         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
6343         strtold_nan.
6344         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
6345         wcstof_nan.
6346         * include/stdlib.h (__strtof_nan): Declare and use
6347         libc_hidden_proto.
6348         (__strtod_nan): Likewise.
6349         (__strtold_nan): Likewise.
6350         (__wcstof_nan): Likewise.
6351         (__wcstod_nan): Likewise.
6352         (__wcstold_nan): Likewise.
6353         * include/wchar.h (____wcstoull_l_internal): Declare.
6354         * stdlib/strtod_l.c: Do not include <ieee754.h>.
6355         (____strtoull_l_internal): Remove declaration.
6356         (STRTOF_NAN): Define macro.
6357         (SET_MANTISSA): Remove macro.
6358         (STRTOULL): Likewise.
6359         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
6360         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
6361         (STRTOF_NAN): Define macro.
6362         (SET_MANTISSA): Remove macro.
6363         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
6364         (SET_MANTISSA): Remove macro.
6365         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
6366         macro.
6367         (SET_MANTISSA): Remove macro.
6368         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
6369         macro.
6370         (SET_MANTISSA): Remove macro.
6371         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
6372         (SET_MANTISSA): Remove macro.
6373         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
6374         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
6375         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
6376
6377         [BZ #19266]
6378         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
6379         upper case and lower case letters inside NAN(), not using TOLOWER.
6380         * stdlib/tst-strtod-nan-locale-main.c: New file.
6381         * stdlib/tst-strtod-nan-locale.c: Likewise.
6382         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
6383         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
6384         Depend on $(gen-locales).
6385         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
6386         * wcsmbs/tst-wcstod-nan-locale.c: New file.
6387         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
6388         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
6389         Depend on $(gen-locales).
6390         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
6391
6392 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
6393
6394         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
6395
6396         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6397         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
6398         __finitel, __isinfl, and __isnanl.
6399         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6400         Likewise.
6401         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6402         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
6403         __finitel.
6404         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6405         Likewise.
6406         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6407
6408 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
6409
6410         * malloc/memusage.c (me): Remove redundant getenv call.
6411
6412 2015-10-24  Florian Weimer  <fweimer@redhat.com>
6413
6414         [BZ #19143]
6415         [BZ #19164]
6416         * nptl/check-cpuset.h: Remove.
6417         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
6418         Remove CPU set size check.
6419         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
6420         Likewise.
6421         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
6422         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
6423         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
6424         (__pthread_setaffinity_new): Remove CPU set size check.
6425         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6426         (__kernel_cpumask_size): Remove.
6427         (__sched_setaffinity_new): Remove CPU set size check.
6428         * manual/threads.texi (Default Thread Attributes): Remove stale
6429         reference to check_cpuset_attr, determine_cpumask_size in comment.
6430         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
6431         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
6432         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
6433         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
6434         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
6435         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
6436         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
6437         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
6438         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
6439         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
6440         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
6441         skeleton test file.
6442         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
6443         tst-affinity-pid.
6444
6445 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6446
6447         * scripts/update-abilist.sh: New file.
6448         * Makefile (+subdir_targets): Add subdir_update-all-abi.
6449         * Makerules (update-all-abi-%, update-all-abi)
6450         (subdir_update-all-abi): New targets.
6451         * elf/Makefile (update-all-abi): New target.
6452
6453 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6454
6455         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
6456         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
6457         (__libc_lock_define_initialized): Use it.
6458         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
6459         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
6460         * malloc/malloc.c (main_arena): Likewise.
6461         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6462         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6463
6464 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
6465
6466         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
6467         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
6468         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6469         (PTRACE_O_MASK): Update value.
6470         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
6471         New value in enum __ptrace_setoptions.
6472         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6473         (PTRACE_O_MASK): Update value.
6474         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
6475         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6476         (PTRACE_O_MASK): Update value.
6477         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
6478         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6479         (PTRACE_O_MASK): Update value.
6480         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
6481         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6482         (PTRACE_O_MASK): Update value.
6483         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
6484         New value in enum __ptrace_setoptions.
6485         (PTRACE_O_MASK): Update value.
6486         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
6487         New value in enum __ptrace_setoptions.
6488         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6489         (PTRACE_O_MASK): Update value.
6490
6491         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
6492         New macro.
6493         (PACKET_AUXDATA): Likewise.
6494         (PACKET_ORIGDEV): Likewise.
6495         (PACKET_VERSION): Likewise.
6496         (PACKET_HDRLEN): Likewise.
6497         (PACKET_RESERVE): Likewise.
6498         (PACKET_TX_RING): Likewise.
6499         (PACKET_LOSS): Likewise.
6500         (PACKET_VNET_HDR): Likewise.
6501         (PACKET_TX_TIMESTAMP): Likewise.
6502         (PACKET_TIMESTAMP): Likewise.
6503         (PACKET_FANOUT): Likewise.
6504         (PACKET_TX_HAS_OFF): Likewise.
6505         (PACKET_QDISC_BYPASS): Likewise.
6506         (PACKET_ROLLOVER_STATS): Likewise.
6507         (PACKET_FANOUT_DATA): Likewise.
6508         (PACKET_MR_UNICAST): Likewise.
6509
6510         [BZ #19242]
6511         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
6512         (TOUPPER): Likewise.
6513         * stdlib/tst-strtol-locale-main.c: New file.
6514         * stdlib/tst-strtol-locale.c: Likewise.
6515         * stdlib/Makefile (tests): Add tst-strtol-locale.
6516         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
6517         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
6518         Depend on $(gen-locales).
6519         * wcsmbs/tst-wcstol-locale.c: New file.
6520         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
6521         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
6522         tr_TR.ISO-8859-9.
6523         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
6524         Depend on $(gen-locales).
6525
6526 2015-11-20  Roland McGrath  <roland@hack.frob.com>
6527
6528         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
6529         __glibc_likely instead of __builtin_expect.  After falling back to
6530         dyncode_create in a non-ET_DYN case, use the allocate_code_data
6531         system interface to register the code pages as occupied.
6532
6533 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
6534
6535         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6536         [!ARM_MATH_PRIVATE_H].
6537         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
6538         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6539         [!HPPA_MATH_PRIVATE_H].
6540         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
6541         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
6542         to [!I386_MATH_PRIVATE_H].
6543         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
6544         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
6545         Change guard to [!M68K_MATH_PRIVATE_H].
6546         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
6547         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
6548         guard to [!MICROBLAZE_MATH_PRIVATE_H].
6549         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
6550         macro.
6551         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6552         [!MIPS_MATH_PRIVATE_H].
6553         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
6554         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6555         [!NIO2_MATH_PRIVATE_H].
6556         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
6557         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6558         [!TILE_MATH_PRIVATE_H].
6559         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
6560
6561         [BZ #15421]
6562         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
6563         initialize with 0 and define as weak alias of __signgam.
6564         * include/math.h [!_ISOMAC] (__signgam): Declare.
6565         * math/Makefile (libm-calls): Add w_lgamma_compat.
6566         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
6567         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
6568         test-signgam-ullong-init.
6569         (tests-static): Add test-signgam-uchar-static,
6570         test-signgam-uchar-init-static, test-signgam-uint-static,
6571         test-signgam-uint-init-static, test-signgam-ullong-static and
6572         test-signgam-ullong-init-static.
6573         (CFLAGS-test-signgam-uchar.c): New variable.
6574         (CFLAGS-test-signgam-uchar-init.c): Likewise.
6575         (CFLAGS-test-signgam-uchar-static.c): Likewise.
6576         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
6577         (CFLAGS-test-signgam-uint.c): Likewise.
6578         (CFLAGS-test-signgam-uint-init.c): Likewise.
6579         (CFLAGS-test-signgam-uint-static.c): Likewise.
6580         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
6581         (CFLAGS-test-signgam-ullong.c): Likewise.
6582         (CFLAGS-test-signgam-ullong-init.c): Likewise.
6583         (CFLAGS-test-signgam-ullong-static.c): Likewise.
6584         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
6585         * math/Versions (libm): Add GLIBC_2.23.
6586         * math/lgamma-compat.h: New file.
6587         * math/test-signgam-main.c: Likewise.
6588         * math/test-signgam-uchar-init-static.c: Likewise.
6589         * math/test-signgam-uchar-init.c: Likewise.
6590         * math/test-signgam-uchar-static.c: Likewise.
6591         * math/test-signgam-uchar.c: Likewise.
6592         * math/test-signgam-uint-init-static.c: Likewise.
6593         * math/test-signgam-uint-init.c: Likewise.
6594         * math/test-signgam-uint-static.c: Likewise.
6595         * math/test-signgam-uint.c: Likewise.
6596         * math/test-signgam-ullong-init-static.c: Likewise.
6597         * math/test-signgam-ullong-init.c: Likewise.
6598         * math/test-signgam-ullong-static.c: Likewise.
6599         * math/test-signgam-ullong.c: Likewise.
6600         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
6601         wrapper of w_lgamma_main.c.
6602         * math/w_lgamma_compat.c: New file.
6603         * math/w_lgamma_compatf.c: Likewise.
6604         * math/w_lgamma_compatl.c: Likewise.
6605         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
6606         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6607         defining compatibility symbols.
6608         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
6609         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
6610         wrapper of w_lgammaf_main.c.
6611         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
6612         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6613         defining compatibility symbols.
6614         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
6615         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
6616         wrapper of w_lgammal_main.c.
6617         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
6618         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6619         defining compatibility symbols.
6620         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
6621         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
6622         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
6623         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
6624         <lgamma-compat.h>.
6625         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
6626         (__ieee754_gamma): Define as alias.
6627         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
6628         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
6629         <lgamma-compat.h>.
6630         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
6631         (__ieee754_gammaf): Define as alias.
6632         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
6633         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
6634         <lgamma-compat.h>.
6635         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
6636         (__ieee754_gammal): Define as alias.
6637         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
6638         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
6639         <math/w_lgamma_compat.c>.
6640         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
6641         Define as alias of __lgamma_compat and use in defining lgammal.
6642         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
6643         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
6644         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
6645         (USE_AS_COMPAT): New macro.
6646         (LGAMMA_OLD_VER): Undefine and redefine.
6647         (lgammal): Do not define here.
6648         (gammal): Only define here if [GAMMA_ALIAS].
6649         * conform/linknamespace.pl (@whitelist): Remove signgam.
6650         * sysdeps/nacl/libm.abilist: Update.
6651         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6652         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6653         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6654         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6655         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6656         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6657         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6658         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6659         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6660         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6661         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6662         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6664         Likewise.
6665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6666         Likewise.
6667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6668         Likewise.
6669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6670         Likewise.
6671         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6672         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6673         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6674         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6675         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6676         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6677         Likewise.
6678         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6679         Likewise.
6680         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6681         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6682         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6683
6684 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6685
6686         [BZ #16364]
6687         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
6688         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
6689
6690 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6691
6692         * sysdeps/s390/fpu/bits/mathinline.h:
6693         Use __asm__ [__volatile__] instead of asm [volatile].
6694         * sysdeps/s390/abort-instr.h: Likewise.
6695         * sysdeps/s390/atomic-machine.h: Likewise.
6696         * sysdeps/s390/bits/string.h: Likewise.
6697         * sysdeps/s390/dl-tls.h: Likewise.
6698         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
6699         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
6700         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
6701         * sysdeps/s390/fpu/fesetround.c: Likewise.
6702         * sysdeps/s390/fpu/fpu_control.h: Likewise.
6703         * sysdeps/s390/fpu/s_fma.c: Likewise.
6704         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
6705         * sysdeps/s390/memusage.h: Likewise.
6706         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
6707         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
6708         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
6709         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
6710         * sysdeps/s390/nptl/tls.h: Likewise.
6711         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
6712         * sysdeps/s390/s390-32/backtrace.c: Likewise.
6713         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6714         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
6715         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6716         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
6717         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
6718         * sysdeps/s390/s390-64/backtrace.c: Likewise.
6719         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6720         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
6721         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
6722         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6723         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
6724         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
6725         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
6726         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
6727         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
6728         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
6729         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
6730         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6731         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
6732         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6733         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
6734
6735 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6736             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6737
6738         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
6739         Add lwarx hint, and use macro for acquire instruction.
6740         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
6741         Likewise.
6742         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
6743         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
6744         update to use new atomic macros.
6745
6746 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6747
6748         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
6749         (__lll_trylock_elision): Fix setting of adapt_count.
6750         * sysdeps/unix/sysv/linux/powerpc/htm.h
6751         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
6752         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
6753         (_ABORT_SYSCALL): Renumber, and clarify definition.
6754         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
6755
6756 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6757
6758         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
6759         after system headers to prevent MIN/MAX redefinition.  Define
6760         HAVE_ALLOCA to preserve builtin alloca usage.
6761
6762 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
6763
6764         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
6765         static and don't set or restore rounding.
6766         (__cos)[IN_SINCOS]: Likewise.
6767         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
6768         (__sincos): Set and restore rounding mode.  Remove check for infinite
6769         or NaN input.
6770
6771         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
6772
6773         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
6774         as used.
6775
6776 2015-11-16  Florian Weimer  <fweimer@redhat.com>
6777
6778         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
6779
6780 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
6781
6782         * config.make.in (have-glob-dat-reloc): New.
6783         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
6784         target supports GLOB_DAT relocaton. AC_SUBST.
6785         * configure: Regenerated.
6786         * elf/Makefile (tests): Add tst-prelink.
6787         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
6788         (tst-prelink-ENV): New.
6789         ($(objpfx)tst-prelink-conflict.out): Likewise.
6790         ($(objpfx)tst-prelink-cmp.out): Likewise.
6791         * sysdeps/x86/tst-prelink.c: Moved to ...
6792         * elf/tst-prelink.c: Here.
6793         * sysdeps/x86/tst-prelink.exp: Moved to ...
6794         * elf/tst-prelink.exp: Here.
6795         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
6796         (tst-prelink-ENV): Removed.
6797         ($(objpfx)tst-prelink-conflict.out): Likewise.
6798         ($(objpfx)tst-prelink-cmp.out): Likewise.
6799         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
6800
6801 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
6802
6803         [BZ #14551]
6804         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
6805         (__mpn_construct_long_double): If high part overflows to infinity,
6806         set errno and recompute overflowed result of the correct sign.
6807         * sysdeps/ieee754/ldbl-128ibm/Makefile
6808         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
6809         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
6810         $(libm).
6811         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
6812
6813 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
6814
6815         [BZ #15479]
6816         [BZ #19238]
6817         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
6818         floating-point state after first operation on input.  Restore full
6819         state rather than just rounding mode.
6820         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
6821         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
6822         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
6823
6824         [BZ #19235]
6825         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
6826         add 0.5 to integer arguments.
6827         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
6828         Likewise.
6829         (.LC2): New object.
6830
6831 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
6832
6833         * scripts/pylintrc (reports): Set to no.
6834
6835 2015-11-10  Roland McGrath  <roland@hack.frob.com>
6836
6837         * elf/dl-load.c (open_verify): Take new argument FD.
6838         Skip __open call if passed FD is not -1.
6839         (_dl_map_object, open_path): Update callers.
6840         * elf/dl-sysdep-open.h: New file.
6841         * elf/dl-load.c: Include it.
6842         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
6843         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
6844         * sysdeps/nacl/dl-sysdep-open.h: New file.
6845         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
6846         from libc to rtld.
6847
6848 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
6849
6850         [BZ #19228]
6851         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
6852         and restore full floating-point state.
6853         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
6854         Likewise.
6855         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
6856         Likewise.
6857         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
6858         Likewise.
6859         * math/test-nearbyint-except-2.c: New file.
6860         * math/Makefile (tests): Add test-nearbyint-except-2.
6861
6862 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
6863
6864         [BZ #19178]
6865         * sysdeps/x86/Makefile (tests): Add tst-prelink.
6866         (tst-prelink-ENV): New.
6867         ($(objpfx)tst-prelink-conflict.out): Likewise.
6868         ($(objpfx)tst-prelink-cmp.out): Likewise.
6869         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
6870         * sysdeps/x86/tst-prelink.c: New file.
6871         * sysdeps/x86/tst-prelink.exp: Likewise.
6872
6873 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
6874
6875         * math/auto-libm-test-in: Add another test of pow.
6876         * math/auto-libm-test-out: Regenerated.
6877         * math/libm-test.inc (pow_test_data): Add another test.
6878
6879 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6880
6881         [BZ #19219]
6882         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
6883         weak_alias to nearbyintl.
6884
6885 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
6886
6887         * sysdeps/aarch64/bits/string.h: New file.
6888         (_STRING_ARCH_unaligned): Define.
6889
6890 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
6891
6892         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
6893         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
6894         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
6895         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
6896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
6897
6898 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
6899
6900         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
6901         for original name of the DSO.  Add it to the name list of the DSO
6902         if it is actually given.
6903         (_dl_map_object): Keep track of whether an audit module rewrote
6904         the file name.  If yes, pass the original name to
6905         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
6906         debugging is enabled, log the change of the file name.
6907         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
6908         _dl_map_object_from_fd.
6909         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
6910         * elf/tst-audit11.c: New file
6911         * elf/tst-auditmod11.c: New file.
6912         * elf/tst-audit11mod1.c: New file.
6913         * elf/tst-audit11mod2.c: New file.
6914         * elf/tst-audit11mod2.map: New file.
6915         * elf/tst-audit12.c: New file
6916         * elf/tst-auditmod12.c: New file.
6917         * elf/tst-audit12mod1.c: New file.
6918         * elf/tst-audit12mod2.c: New file.
6919         * elf/tst-audit12mod2.map: New file.
6920         * elf/tst-audit12mod3.c: New file.
6921
6922 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
6923
6924         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
6925         Don't create weak aliases,
6926         because versioned symbols are created later.
6927         * sysdeps/s390/s390-32/setjmp.S
6928         (setjmp, _setjmp): Remove weak and rename to an unique name
6929         in SHARED case due to existing versioned symbols.
6930         * sysdeps/s390/s390-64/setjmp.S: Likewise.
6931         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
6932         (getcontext): Create weak alias only in non SHARED case.
6933         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
6934
6935 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
6936
6937         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
6938         (__ASSUME_*_SYSCALL) Define new macros.
6939         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
6940         Remove socketcall syscalls.
6941         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
6942         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
6943         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
6944         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
6945         * sysdeps/unix/sysv/linux/send.c (__libc_send):
6946         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
6947
6948 2015-11-09  Florian Weimer  <fweimer@redhat.com>
6949
6950         [BZ #12926]
6951         Terminate process on invalid netlink response.
6952         * sysdeps/unix/sysv/linux/netlinkaccess.h
6953         (__netlink_assert_response): Declare.
6954         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
6955         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
6956         (sysdep_routines): Add netlink_assert_response.
6957         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
6958         __netlink_assert_response.
6959         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
6960         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
6961         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
6962         __netlink_assert_response.
6963
6964 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6965
6966         [BZ #19178]
6967         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
6968         (RTYPE_CLASS_PLT): Likewise.
6969         (RTYPE_CLASS_COPY): Likewise.
6970         (RTYPE_CLASS_TLS): Likewise.
6971         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
6972         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
6973         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
6974         DL_DEBUG_PRELINK.
6975
6976 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
6977
6978         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
6979         calls with argument -0.5.
6980         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
6981
6982         * configure.ac (libc_cv_z_nodelete): Remove configure test.
6983         (libc_cv_z_nodlopen): Likewise.
6984         (libc_cv_z_initfirst): Likewise.
6985         * configure: Regenerated.
6986
6987 2015-11-06  Florian Weimer  <fweimer@redhat.com>
6988
6989         Simplify abilist format to be line-based.
6990         * scripts/abilist.awk: Collect descriptors in the descs variable.
6991         (emit): Write descs variable and sort it
6992         externally, with sort.
6993         * sysdeps/**/*.abilist: Convert to new format.
6994
6995 2015-11-06  Mark Wielaard  <mjw@redhat.com>
6996
6997         [BZ #11460]
6998         * io/Makefile (routines): Add fts64.
6999         (tests): Add tst-fts and tst-fts-lfs.
7000         (CFLAGS-fts64.c): New.
7001         * io/Versions (GLIBC_2.23): New.
7002         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
7003         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
7004         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
7005         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
7006         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
7007         (FTSENT64): Likewise.
7008         (fts64_children): Likewise.
7009         (fts64_close): Likewise.
7010         (fts64_open): Likewise.
7011         (fts64_read): Likewise.
7012         (fts64_set): Likewise.
7013         * io/fts64.c: New file.
7014         * io/tst-fts.c: New test.
7015         * io/tst-fts-lfs.c: Likewise.
7016         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
7017         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
7018         fts64_set.
7019         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7020         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7021         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7022         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7023         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7024         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7025         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7026         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7027         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7028         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7029         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7030         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7031         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7033         Likewise.
7034         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7035         Likewise.
7036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7038         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7039         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7040         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7041         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7042         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7043         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7044         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7045         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7046         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7047         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7048         * sysdeps/wordsize-64/fts.c: New file.
7049         * sysdeps/wordsize-64/fts64.c: Likewise.
7050         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
7051         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
7052         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
7053         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
7054
7055 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7056
7057         * math/libm-test.inc (NON_FINITE): New macro.
7058         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
7059         * math/gen-libm-test.pl (show_exceptions): Add argument
7060         $non_finite.
7061         (parse_args): Update call to show_exceptions.
7062         * math/test-math-finite.h: New file.
7063         * math/test-math-no-finite.h: Likewise.
7064         * math/test-double-finite.c: Likewise.
7065         * math/test-float-finite.c: Likewise.
7066         * math/test-ldouble-finite.c: Likewise.
7067         * math/test-double.c: Include "test-math-no-finite.h".
7068         * math/test-float.c: Include "test-math-no-finite.h".
7069         * math/test-ldouble.c: Include "test-math-no-finite.h".
7070         * math/test-math-inline.h (TEST_FINITE): New macro.
7071         * math/test-math-vector.h (TEST_FINITE): Likewise.
7072         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
7073         (libm-tests): Add test-float-finite and test-double-finite.
7074         ($(objpfx)test-float-finite.o): New dependency on
7075         $(objpfx)libm-test.stmp.
7076         ($(objpfx)test-double-finite.o): Likewise.
7077         ($(objpfx)test-ldouble-finite.o): Likewise.
7078         (libm-test-no-inline-cflags): New variable.
7079         (libm-test-finite-cflags): Likewise.
7080         (CFLAGS-test-float-finite.c): Likewise.
7081         (CFLAGS-test-double-finite.c): Likewise.
7082         (CFLAGS-test-ldouble-finite.c): Likewise.
7083         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
7084         (CFLAGS-test-double.c): Likewise.
7085         (CFLAGS-test-ldouble.c): Likewise.
7086
7087 2015-11-05  Roland McGrath  <roland@hack.frob.com>
7088
7089         * io/fcntl.c (__fcntl): Add ... to prototype.
7090         * misc/ioctl.c (__ioctl): Likewise.
7091         * misc/syscall.c (syscall): Likewise.
7092
7093 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7094
7095         * scripts/list-fixed-bugs.py: New file.
7096
7097         [BZ #19213]
7098         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
7099         returned for argument 1.
7100         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
7101         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
7102         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
7103         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
7104         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
7105         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
7106
7107         [BZ #19211]
7108         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
7109         __USE_XOPEN], not if [!__USE_ISOC99].
7110         (lgammaf): Likewise.
7111         (lgammal): Likewise.
7112         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
7113         (gammaf): Likewise.
7114         (gammal): Likewise.
7115         * math/test-signgam-finite-c11.c: New file.
7116         * math/test-signgam-finite-c99.c: Likewise.
7117         * math/test-signgam-finite.c: Likewise.
7118         * math/Makefile (tests): Add test-signgam-finite,
7119         test-signgam-finite-c99 and test-signgam-finite-c11.
7120         (CFLAGS-test-signgam-finite.c): New variable.
7121         (CFLAGS-test-signgam-finite-c99.c): Likewise.
7122         (CFLAGS-test-signgam-finite-c11.c): Likewise.
7123
7124         [BZ #19212]
7125         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
7126         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
7127         500].
7128         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
7129         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
7130         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
7131         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
7132         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
7133         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
7134         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
7135         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
7136         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
7137         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
7138
7139         [BZ #19209]
7140         * math/bits/math-finite.h (ldexp): Remove declaration.
7141         (ldexpf): Likewise.
7142         (ldexpl): Likewise.
7143
7144         [BZ #19205]
7145         * math/bits/math-finite.h (acosf): Condition declaration on
7146         [__USE_ISOC99].
7147         (acosl): Likewise.
7148         (acoshf): Likewise.
7149         (acoshl): Likewise.
7150         (asinf): Likewise.
7151         (asinl): Likewise.
7152         (atan2f): Likewise.
7153         (atan2l): Likewise.
7154         (atanhf): Likewise.
7155         (atanhl): Likewise.
7156         (coshf): Likewise.
7157         (coshl): Likewise.
7158         (expf): Likewise.
7159         (expl): Likewise.
7160         (fmodf): Likewise.
7161         (fmodl): Likewise.
7162         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
7163         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
7164         (j0l): Likewise.
7165         (y0f): Likewise.
7166         (y0l): Likewise.
7167         (j1f): Likewise.
7168         (j1l): Likewise.
7169         (y1f): Likewise.
7170         (y1l): Likewise.
7171         (jnf): Likewise.
7172         (jnl): Likewise.
7173         (ynf): Likewise.
7174         (ynl): Likewise.
7175         (lgammaf_r): Condition declaration on [__USE_ISOC99].
7176         (lgammal_r): Likewise.
7177         (__lgamma_r_finite): New declaration.
7178         (__lgammaf_r_finite): Likewise.
7179         (__lgammal_r_finite): Likewise.
7180         (lgamma): Use __lgamma_r_finite.
7181         (lgammaf): Condition definition on [__USE_ISOC99].  Use
7182         __lgammaf_r_finite.
7183         (lgammal): Condition definition on [__USE_ISOC99].  Use
7184         __lgammal_r_finite.
7185         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
7186         __lgamma_r_finite.
7187         (gammaf): Condition definition on [__USE_ISOC99].  Use
7188         __lgammaf_r_finite.
7189         (gammal): Condition definition on [__USE_ISOC99].  Use
7190         __lgammal_r_finite.
7191         (logf): Condition declaration on [__USE_ISOC99].
7192         (logl): Likewise.
7193         (log10f): Likewise.
7194         (log10l): Likewise.
7195         (ldexpf): Likewise.
7196         (ldexpl): Likewise.
7197         (powf): Likewise.
7198         (powl): Likewise.
7199         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
7200         __USE_ISOC99].
7201         (remainderf): Condition declaration on [__USE_ISOC99].
7202         (remainderl): Likewise.
7203         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
7204         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
7205         (scalbl): Likewise.
7206         (sinhf): Condition declaration on [__USE_ISOC99].
7207         (sinhl): Likewise.
7208         (sqrtf): Likewise.
7209         (sqrtl): Likewise.
7210
7211 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7212
7213         * sysdeps/arm/atomic-machine.h
7214         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7215         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7216         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
7217         Remove conditional code.
7218         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7219         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7220         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
7221         Change conditional to [__ASSEMBLER__].
7222         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7223         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
7224         [!__ASSEMBLER__].
7225         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
7226         code.
7227         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
7228         conditional macro definitions.
7229         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
7230         (__arch_compare_and_exchange_val_16_acq): Likewise.
7231         (__arch_compare_and_exchange_val_32_acq): Likewise.
7232         (atomic_exchange_and_add): Likewise.
7233         (atomic_add): Likewise.
7234         (atomic_add_negative): Likewise.
7235         (atomic_add_zero): Likewise.
7236         (atomic_bit_set): Likewise.
7237         (atomic_bit_test_set): Likewise.
7238         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
7239         code unconditional.
7240         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7241
7242         * math/test-math-errno.h: New file.
7243         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
7244         empty.
7245         (TEST_ERRNO): New macro.
7246         (TEST_EXCEPTIONS): Likewise.
7247         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
7248         (TEST_EXCEPTIONS): Likewise.
7249         * math/test-math-vector.h (TEST_ERRNO): Likewise.
7250         * math/test-double.c: Include "test-math-errno.h".
7251         * math/test-float.c: Likewise.
7252         * math/test-ldouble.c: Likewise.
7253         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
7254         code unconditional.
7255         (test_exceptions): Only run code if TEST_EXCEPTIONS.
7256         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
7257         unconditional.
7258         (test_errno): Only run code if TEST_ERRNO.
7259         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
7260
7261 2015-11-04  Florian Weimer  <fweimer@redhat.com>
7262
7263         * nptl/tst-once5.cc: Remove attribution.
7264
7265 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7266
7267         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
7268         sqrt, tan, tanh, y0, y1 and yn.
7269         * math/auto-libm-test-out: Regenerated.
7270         * math/libm-test.inc (scalb_test_data): Add more tests.
7271         (scalbn_test_data): Likewise.
7272         (scalbln_test_data): Likewise.
7273         (signbit_test_data): Likewise.
7274         (sin_test_data): Likewise.
7275         (sincos_test_data): Likewise.
7276         (sinh_test_data): Likewise.
7277         (sqrt_test_data): Likewise.
7278         (tan_test_data): Likewise.
7279         (tanh_test_data): Likewise.
7280         (tgamma_test_data): Likewise.
7281         (y0_test_data): Likewise.
7282         (y1_test_data): Likewise.
7283         (yn_test_data): Likewise.
7284         (significand_test_data): Likewise.
7285         * sysdeps/i386/fpu/libm-test-ulps: Update.
7286
7287 2015-11-03  David Kastrup  <dak@gnu.org>
7288
7289         [BZ #18604]
7290         * assert/assert.h (assert): Don't macro-expand failed assertion
7291         expression in error message.
7292         * malloc/malloc.c (assert): Likewise.
7293
7294 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
7295
7296         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
7297         test.
7298         * configure: Regenerated.
7299
7300 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
7301
7302         * math/libm-test.inc (modf_test_data): Add more tests.
7303         (nearbyint_test_data): Likewise.
7304         (nextafter_test_data): Likewise.
7305         (nexttoward_test_data): Likewise.
7306         (pow_test_data): Likewise.
7307         (remainder_test_data): Likewise.
7308         (remquo_test_data): Likewise.
7309         (rint_test_data): Likewise.
7310
7311         [BZ #19201]
7312         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7313         Check for zero remainder in case of large exponents and ensure
7314         correct sign of result in that case.
7315         * math/libm-test.inc (remainder_test_data): Add more tests.
7316
7317         [BZ #6799]
7318         * math/s_nextafter.c: Include <errno.h>.
7319         (__nextafter): Set errno on overflow and underflow.
7320         * math/s_nexttowardf.c: Include <errno.h>.
7321         (__nexttowardf): Set errno on overflow and underflow.
7322         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
7323         (__nextafterl): Set errno on overflow and underflow.
7324         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
7325         (__nexttoward): Set errno on overflow and underflow.
7326         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
7327         (__nexttowardf): Set errno on overflow and underflow.
7328         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
7329         (__nextafterf): Set errno on overflow and underflow.
7330         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
7331         (__nextafterl): Set errno on overflow and underflow.
7332         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
7333         (__nexttoward): Set errno on overflow and underflow.
7334         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
7335         (__nexttowardf): Set errno on overflow and underflow.
7336         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
7337         (__nextafterl): Set errno on overflow and underflow.
7338         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
7339         (__nexttoward): Set errno on overflow and underflow.
7340         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
7341         (__nexttowardf): Set errno on overflow and underflow.
7342         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
7343         (__nexttoward): Set errno on overflow and underflow.
7344         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
7345         (__nexttowardf): Set errno on overflow and underflow.
7346         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
7347         (__nldbl_nexttowardf): Set errno on overflow and underflow.
7348         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
7349         (__nextafterl): Set errno on overflow and underflow.
7350         * math/libm-test.inc (nextafter_test_data): Do not allow errno
7351         setting to be missing on overflow.  Add more tests.
7352         (nexttoward_test_data): Likewise.
7353
7354         * configure.ac (libc_cv_initfini_array): Remove configure test.
7355         * configure: Regenerated.
7356
7357 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
7358
7359         [BZ #19189]
7360         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
7361         non-finite argument handle arguments with negative sign.
7362
7363         * math/libm-test.inc (j0_test_data): Do not test sign of zero
7364         result from infinite argument.
7365         (j1_test_data): Likewise.
7366         (jn_test_data): Likewise.
7367         (y0_test_data): Likewise.
7368         (y1_test_data): Likewise.
7369         (yn_test_data): Likewise.
7370
7371         [BZ #16171]
7372         * math/w_remainder.c (drem): Define as weak alias of __remainder.
7373         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
7374         * math/w_remainderf.c (dremf): Define as weak alias of
7375         __remainderf.
7376         * math/w_remainderl.c (dreml): Define as weak alias of
7377         __remainderl.
7378         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
7379         __remainder.
7380         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
7381         __remainderf.
7382         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
7383         __remainderl.
7384         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
7385         weak alias of remainderl.
7386         * sysdeps/ieee754/ldbl-opt/w_remainder.c
7387         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
7388         alias of __remainder.
7389         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
7390         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
7391         strong alias of __remainderl.
7392         (dreml): Use long_double_symbol.
7393         * math/Makefile (libm-calls): Remove w_drem.
7394         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
7395         (CFLAGS-nldbl-drem.c): Remove variable.
7396         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
7397         * math/w_drem.c: Remove file.
7398         * math/w_dremf.c: Likewise.
7399         * math/w_dreml.c: Likewise.
7400         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
7401         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
7402         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
7403
7404         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
7405         * sysdeps/i386/configure: Regenerated.
7406         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
7407         * sysdeps/x86_64/configure: Regenerated.
7408
7409         * configure.ac (libc_cv_asm_protected_directive): Remove configure
7410         test.
7411         (libc_cv_visibility_attribute): Likewise.
7412         (libc_cv_protected_data): Test unconditionally.
7413         (libc_cv_broken_visibility_attribute): Remove configure test.
7414         (libc_cv_have_sdata_section): Test unconditionally.
7415         * configure: Regenerated.
7416
7417         * include/libc-internal.h (libc_max_align_t): Remove typedef.
7418         * include/scratch_buffer.h: Include <stddef.h> instead of
7419         <libc-internal.h>.
7420         (struct scratch_buffer): Use max_align_t instead of
7421         libc_max_align_t.
7422
7423 2015-10-29  Florian Weimer  <fweimer@redhat.com>
7424
7425         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
7426         instead of extend_alloca.  Change control flow to avoid a goto.
7427         Remove assert which is trivially always true.
7428
7429 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7430
7431         [BZ #16068]
7432         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
7433         (FE_ALL_EXCEPT_X86): New macro.
7434         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7435         FE_ALL_EXCEPT.  Ensure precision control is included in
7436         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7437         handle "denormal operand exception" and clear FZ and DAZ bits.
7438         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
7439         (FE_ALL_EXCEPT_X86): New macro.
7440         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7441         FE_ALL_EXCEPT.  Ensure precision control is included in
7442         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7443         handle "denormal operand exception" and clear FZ and DAZ bits.
7444         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
7445         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
7446         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7447         test-fenv-x87 and test-fenv-sse-2.
7448         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
7449
7450         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
7451         * math/test-double.h (BUILD_COMPLEX): New macro.
7452         * math/test-float.h (BUILD_COMPLEX): Likewise.
7453         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
7454
7455         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
7456         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
7457         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
7458         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
7459         instead of DBL_DENORM_MIN in comment.
7460         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
7461         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7462         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
7463         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
7464         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
7465         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7466
7467 2015-10-28  Florian Weimer  <fweimer@redhat.com>
7468
7469         [BZ# 19048]
7470         * malloc/malloc.c (struct malloc_state): Update comment.  Add
7471         attached_threads member.
7472         (main_arena): Initialize attached_threads.
7473         * malloc/arena.c (list_lock): Update comment.
7474         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
7475         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
7476         (deattach_arena): New function.
7477         (_int_new_arena): Initialize arena reference count and deattach
7478         replaced arena.
7479         (get_free_list, reused_arena): Update reference count and deattach
7480         replaced arena.
7481         (arena_thread_freeres): Update arena reference count and only put
7482         unreferenced arenas on the free list.
7483
7484 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7485
7486         [BZ #19181]
7487         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
7488         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
7489         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
7490         * math/test-fenv-clear-main.c: New file.
7491         * math/test-fenv-clear.c: Likewise.
7492         * math/Makefile (tests): Add test-fenv-clear.
7493         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
7494         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7495         test-fenv-clear-sse.
7496         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
7497
7498         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
7499         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
7500         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
7501
7502 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7503
7504         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
7505         static libc.
7506
7507 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7508
7509         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
7510         test.
7511         * sysdeps/i386/configure: Regenerated.
7512         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
7513         test.
7514         * sysdeps/x86_64/configure: Regenerated.
7515         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
7516         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7517         memset-avx2 unconditionally instead of conditionally on
7518         [$(config-cflags-avx2) = yes].
7519         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7520         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
7521         unconditional.
7522         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
7523         * sysdeps/x86_64/multiarch/memset_chk.S
7524         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
7525         to [IS_IN (libc) && SHARED].
7526
7527 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7528
7529         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
7530         configure test.
7531         * sysdeps/arm/configure: Regenerated.
7532         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
7533         Define variable if not already defined.
7534
7535         [BZ #17404]
7536         * sysdeps/mips/atomic-machine.h
7537         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
7538         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
7539         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7540
7541         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
7542         unconditional.
7543         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
7544         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7545         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
7546         unconditional.
7547         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7548         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
7549         unconditional.
7550         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7551         * stdlib/setenv.c
7552         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
7553         code unconditional.
7554         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
7555         Remove conditional code.
7556         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
7557         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
7558         unconditional.
7559         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7560         code.
7561         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
7562         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
7563         unconditional.
7564         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7565         code.
7566         * sysdeps/ieee754/ldbl-128/k_tanl.c
7567         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7568         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7569         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
7570         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7571         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7572         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
7573         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
7574         unconditional.
7575         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7576         code.
7577         * sysdeps/ieee754/ldbl-96/k_tanl.c
7578         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7579         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7580
7581         * nptl/tst-initializers1-c11.c: New file.
7582         * nptl/tst-initializers1-gnu11.c: Likewise.
7583         * nptl/Makefile (tests): Add these new tests.
7584         (CFLAGS-tst-initializers1-c11.c): New variable.
7585         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
7586
7587         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
7588         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
7589         instead of -std=gnu99.
7590         * configure.ac (systemtap): Test with -std=gnu11 instead of
7591         -std=gnu99.
7592         * configure: Regenerated.
7593         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
7594         in compilation command in comment.
7595
7596         * sysdeps/nptl/configure.ac: Remove file.
7597         * sysdeps/nptl/configure: Remove generated file.
7598         * configure.ac (libc_cv_forced_unwind): Do not substitute.
7599         * configure: Regenerated.
7600         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
7601         * config.make.in (have-forced-unwind): Remove variable.
7602         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7603         unconditional.
7604         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
7605         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
7606         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
7607         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
7608         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7609         unconditional.
7610
7611 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7612
7613         [BZ #19174]
7614         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
7615         .skip_lock_out_of_tbegin_retries.
7616         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
7617         (__lll_lock_elision): Likewise, and respect a value of
7618         try_tbegin <= 0.
7619
7620 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7621
7622         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
7623         statement.
7624
7625 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7626
7627         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
7628         variable.
7629         (test-xfail-ISO11/stdalign.h/conform): Likewise.
7630         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
7631
7632         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
7633         of -std=c1x -D_ISOC11_SOURCE.
7634
7635         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
7636         * configure: Regenerated.
7637         * manual/install.texi (Tools for Compilation): Document
7638         requirement for GCC 4.7 or later.
7639         * INSTALL: Regenerated.
7640
7641 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
7642
7643         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
7644         on CNT to a conditional jump to 'puntdata'.
7645
7646 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7647
7648         * configure.ac (libc_cv_gcc___thread): Remove configure test.
7649         (libc_cv_gcc_tls_model_attr): Likewise.
7650         * configure: Regenerated.
7651
7652         * configure.ac (libc_cv_need_minus_P): Remove configure test.
7653         * configure: Regenerated.
7654         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
7655
7656 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
7657
7658         * configure.ac (old_glibc_headers): Remove configure test.
7659         * configure: Regenerated.
7660         * config.make.in (old-glibc-headers): Remove variable.
7661         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
7662         (install): Remove dependency on remove-old-headers.
7663         (headers2_0): Remove variable.
7664         (remove-old-headers): Remove rule.
7665
7666         * configure.ac (libc_cv_dot_text): Remove configure test.
7667         (libc_cv_asm_set_directive): Use .text instead of
7668         ${libc_cv_dot_text} in configure test.
7669         * configure: Regenerated.
7670
7671 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7672
7673         [BZ #19168]
7674         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7675
7676 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7677
7678         * configure.ac (CXX): Clear the variable if the C++ toolchain does
7679         not support static linking.
7680         * configure: Regenerate.
7681
7682 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
7683
7684         * math/libm-test.inc (check_float_internal): Do not special-case
7685         errors up to 0.5 ulp.
7686
7687         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
7688         log2.
7689         * math/auto-libm-test-out: Regenerated.
7690         * math/libm-test.inc (MAX_EXP): New macro.
7691         (ilogb_test_data): Add more tests.
7692         (isfinite_test_data): Likewise.
7693         (isgreater_test_data): Likewise.
7694         (isgreaterequal_test_data): Likewise.
7695         (isinf_test_data): Likewise.
7696         (isless_test_data): Likewise.
7697         (islessequal_test_data): Likewise.
7698         (islessgreater_test_data): Likewise.
7699         (isnan_test_data): Likewise.
7700         (isnormal_test_data): Likewise.
7701         (issignaling_test_data): Likewise.
7702         (isunordered_test_data): Likewise.
7703         (j0_test_data): Likewise.
7704         (j1_test_data): Likewise.
7705         (jn_test_data): Likewise.
7706         (lgamma_test_data): Likewise.
7707         (log_test_data): Likewise.
7708         (log10_test_data): Likewise.
7709         (log1p_test_data): Likewise.
7710         (log2_test_data): Likewise.
7711         (logb_test_data): Likewise.
7712         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7713
7714         [BZ #18611]
7715         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
7716         avoid excess range and precision on underflow.
7717         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7718         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
7719         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
7720         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
7721         underflow.
7722         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7723         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7724         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
7725         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7726         * math/auto-libm-test-in: Do not allow missing errno setting for
7727         tests of j1 and jn.
7728         * math/auto-libm-test-out: Regenerated.
7729
7730 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
7731
7732         [BZ #15491]
7733         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
7734         floating-point environment instead of clearing all exceptions.
7735         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
7736         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
7737         merging in "invalid" exceptions from frndint.
7738         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
7739         * math/test-nearbyint-except.c: New file.
7740         * math/Makefile (tests): Add test-nearbyint-except.
7741
7742 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
7743
7744         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
7745
7746         * sysdeps/tile/libm-test-ulps: Regenerated.
7747
7748 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7749
7750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
7751         (__NR_sync_file_range2): Assume it is always defined.
7752         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
7753         (__NR_sync_file_range): Assume it is always defined.
7754
7755 2015-10-22  Andreas Schwab  <schwab@suse.de>
7756
7757         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
7758         INTERNAL_SYSCALL_ERRNO.
7759         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
7760         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
7761         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
7762         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
7763         Likewise.
7764         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
7765
7766 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7767
7768         * io/tst-fcntl.c (fd): New static variable.
7769         (do_prepare): Open temporary file here....
7770         (do_test): ...not here.
7771
7772         * io/ftwtest-sh: Also trap on exit to remove temporary files.
7773
7774 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7775
7776         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
7777         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
7778         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
7779         Moved before "#ifdef __ASSEMBLER__".
7780
7781 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7782
7783         [BZ #19156]
7784         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
7785         arguments very close to 0.
7786
7787 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
7788
7789         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
7790         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
7791
7792 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7793
7794         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
7795         New.  Defined for GCC 5 and above when not compiling for
7796         profiling.
7797         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
7798
7799         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
7800         Renamed to ...
7801         (CFLAGS-epoll_pwait.o): This.
7802         (CFLAGS-mmap.c): Renamed to ...
7803         (CFLAGS-mmap.o): This.
7804         (CFLAGS-mmap64.c): Renamed to ...
7805         (CFLAGS-mmap64.o): This.
7806         (CFLAGS-epoll_pwait.os): New.
7807         (CFLAGS-mmap.os): Likewise.
7808         (CFLAGS-mmap64.os): Likewise.
7809         (CFLAGS-semtimedop.os): Likewise.
7810         (CFLAGS-semtimedop.c): Renamed to ...
7811         (CFLAGS-semtimedop.o): This.
7812
7813 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7814
7815         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
7816         warning message.
7817
7818 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7819
7820         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
7821         * Makefile ($(objpfx)c++-types-check.out): Filter out
7822         $(+gccwarn-c) instead of -Wstrict-prototypes.
7823
7824         * io/fts.c (fts_open): Convert to prototype-style function
7825         definition.
7826         * malloc/mcheck.c (mcheck): Likewise.
7827         (mcheck_pedantic): Likewise.
7828         * posix/regexec.c (re_search_2_stub): Likewise.  Use
7829         internal_function.
7830         (re_search_internal): Likewise.
7831         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
7832         prototype-style function definition.
7833         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
7834         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
7835         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
7836         (xdr_utmpptr): Likewise.
7837         (xdr_utmparr): Likewise.
7838         (xdr_utmpidle): Likewise.
7839         (xdr_utmpidleptr): Likewise.
7840         (xdr_utmpidlearr): Likewise.
7841
7842         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
7843         log, log10 and log2.
7844         * math/auto-libm-test-out: Regenerated.
7845         * math/libm-test.inc (fmod_test_data): Add more tests.
7846         (fpclassify_test_data): Likewise.
7847         (frexp_test_data): Likewise.
7848         (hypot_test_data): Likewise.
7849         (ilogb_test_data): Likewise.
7850
7851 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
7852
7853         * debug/fortify_fail.c (__fortify_fail): Convert to
7854         prototype-style function definition.  Use internal_function.
7855         * libio/genops.c (save_for_backup): Convert to prototype-style
7856         function definition.
7857         * libio/wgenops.c (save_for_wbackup): Likewise.
7858         * login/grantpt.c (grantpt): Likewise.
7859         * login/ptsname.c (ptsname): Likewise.
7860         (__ptsname_r): Likewise.
7861         * login/unlockpt.c (unlockpt): Likewise.
7862         * mach/msgserver.c (__mach_msg_server): Likewise.
7863         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
7864         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
7865         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
7866         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
7867         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
7868         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
7869         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
7870         Likewise.
7871         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
7872         internal_function.
7873         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
7874         prototype-style function definition.
7875         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
7876         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
7877         (__pthread_create_2_0): Likewise.
7878         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
7879         * nptl/register-atfork.c (__register_atfork): Likewise.
7880         * posix/glob.c (glob): Likewise.
7881         * posix/regcomp.c (re_comp): Likewise.
7882         * posix/regexec.c (re_exec): Likewise.
7883         * stdlib/add_n.c [__STDC__]: Make code unconditional.
7884         [!__STDC__]: Remove conditional code.
7885         * stdlib/cmp.c [__STDC__]: Make code unconditional.
7886         [!__STDC__]: Remove conditional code.
7887         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
7888         [!__STDC__]: Remove conditional code.
7889         * stdlib/divrem.c [__STDC__]: Make code unconditional.
7890         [!__STDC__]: Remove conditional code.
7891         * stdlib/lshift.c [__STDC__]: Make code unconditional.
7892         [!__STDC__]: Remove conditional code.
7893         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
7894         [!__STDC__]: Remove conditional code.
7895         * stdlib/mul.c [__STDC__]: Make code unconditional.
7896         [!__STDC__]: Remove conditional code.
7897         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
7898         [!__STDC__]: Remove conditional code.
7899         * stdlib/rshift.c [__STDC__]: Make code unconditional.
7900         [!__STDC__]: Remove conditional code.
7901         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
7902         function definition.
7903         (STRTOF): Likewise.
7904         * stdlib/strtod_l.c (__STRTOF): Likewise.
7905         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
7906         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
7907         (__strtol_l): Likewise.
7908         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
7909         [!__STDC__]: Remove conditional code.
7910         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
7911         definition.
7912         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
7913         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7914         type.
7915         (__strcasecmp): Convert to prototype-style function definition.
7916         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
7917         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7918         type.
7919         (__strncasecmp): Convert to prototype-style function definition.
7920         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
7921         * sunrpc/xdr.c (xdr_union): Likewise.
7922         * sunrpc/xdr_array.c (xdr_array): Likewise.
7923         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
7924         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
7925         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
7926         Likewise.
7927         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
7928         Likewise.
7929         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
7930         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
7931         Likewise.
7932         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
7933         (LOCALE_PARAM_PROTO): Likewise.
7934         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
7935         argument type.
7936         (ut_argument_spec): Remove macro.
7937         (ut_argument_spec_iso): Rename to ut_argument_spec.
7938         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
7939         prototype-style function definition.
7940         (memcpy_uppcase): Likewise.
7941         (__strftime_internal): Likewise.
7942         (my_strftime): Likewise.
7943         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
7944         (LOCALE_PARAM_DECL): Likewise.
7945         [_LIBC] (LOCALE_PARAM): Include argument type.
7946         (__strptime_internal): Convert to prototype-style function
7947         definition.
7948         (strptime): Likewise.
7949         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
7950         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7951         type.
7952         (__wcscasecmp): Convert to prototype-style function definition.
7953         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
7954         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7955         type.
7956         (__wcsncasecmp): Convert to prototype-style function definition.
7957
7958         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
7959         function definition.
7960         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
7961         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
7962         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
7963         * elf/dl-minimal.c (_itoa): Likewise.
7964         * hurd/hurdmalloc.c (malloc): Likewise.
7965         (free): Likewise.
7966         (realloc): Likewise.
7967         * inet/inet6_option.c (inet6_option_space): Likewise.
7968         (inet6_option_init): Likewise.
7969         (inet6_option_append): Likewise.
7970         (inet6_option_alloc): Likewise.
7971         (inet6_option_next): Likewise.
7972         (inet6_option_find): Likewise.
7973         * io/ftw.c (FTW_NAME): Likewise.
7974         (NFTW_NAME): Likewise.
7975         (NFTW_NEW_NAME): Likewise.
7976         (NFTW_OLD_NAME): Likewise.
7977         * libio/iofwide.c (_IO_fwide): Likewise.
7978         * libio/strops.c (_IO_str_init_static_internal): Likewise.
7979         (_IO_str_init_static): Likewise.
7980         (_IO_str_init_readonly): Likewise.
7981         (_IO_str_overflow): Likewise.
7982         (_IO_str_underflow): Likewise.
7983         (_IO_str_count): Likewise.
7984         (_IO_str_seekoff): Likewise.
7985         (_IO_str_pbackfail): Likewise.
7986         (_IO_str_finish): Likewise.
7987         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
7988         (_IO_wstr_overflow): Likewise.
7989         (_IO_wstr_underflow): Likewise.
7990         (_IO_wstr_count): Likewise.
7991         (_IO_wstr_seekoff): Likewise.
7992         (_IO_wstr_pbackfail): Likewise.
7993         (_IO_wstr_finish): Likewise.
7994         * locale/programs/localedef.c (normalize_codeset): Likewise.
7995         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
7996         (add_locales_to_archive): Likewise.
7997         (delete_locales_from_archive): Likewise.
7998         * malloc/malloc.c (__libc_mallinfo): Likewise.
7999         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
8000         * misc/tsearch.c (__tfind): Likewise.
8001         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
8002         * nptl/pthread_attr_getdetachstate.c
8003         (__pthread_attr_getdetachstate): Likewise.
8004         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
8005         Likewise.
8006         * nptl/pthread_attr_getinheritsched.c
8007         (__pthread_attr_getinheritsched): Likewise.
8008         * nptl/pthread_attr_getschedparam.c
8009         (__pthread_attr_getschedparam): Likewise.
8010         * nptl/pthread_attr_getschedpolicy.c
8011         (__pthread_attr_getschedpolicy): Likewise.
8012         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
8013         Likewise.
8014         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
8015         Likewise.
8016         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
8017         Likewise.
8018         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
8019         Likewise.
8020         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
8021         (__pthread_attr_init_2_0): Likewise.
8022         * nptl/pthread_attr_setdetachstate.c
8023         (__pthread_attr_setdetachstate): Likewise.
8024         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
8025         Likewise.
8026         * nptl/pthread_attr_setinheritsched.c
8027         (__pthread_attr_setinheritsched): Likewise.
8028         * nptl/pthread_attr_setschedparam.c
8029         (__pthread_attr_setschedparam): Likewise.
8030         * nptl/pthread_attr_setschedpolicy.c
8031         (__pthread_attr_setschedpolicy): Likewise.
8032         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
8033         Likewise.
8034         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
8035         Likewise.
8036         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
8037         Likewise.
8038         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
8039         Likewise.
8040         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
8041         Likewise.
8042         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
8043         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
8044         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
8045         use internal_function.
8046         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
8047         prototype-style function definition.
8048         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
8049         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
8050         internal_function.
8051         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
8052         Convert to prototype-style function definition.
8053         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
8054         Likewise.
8055         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
8056         Likewise.
8057         (__pthread_mutex_unlock): Likewise.
8058         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
8059         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
8060         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
8061         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
8062         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
8063         * nss/makedb.c (process_input): Likewise.
8064         * posix/fnmatch.c (__strchrnul): Likewise.
8065         (__wcschrnul): Likewise.
8066         (fnmatch): Likewise.
8067         * posix/fnmatch_loop.c (FCT): Likewise.
8068         * posix/glob.c (globfree): Likewise.
8069         (__glob_pattern_type): Likewise.
8070         (__glob_pattern_p): Likewise.
8071         * posix/regcomp.c (re_compile_pattern): Likewise.
8072         (re_set_syntax): Likewise.
8073         (re_compile_fastmap): Likewise.
8074         (regcomp): Likewise.
8075         (regerror): Likewise.
8076         (regfree): Likewise.
8077         * posix/regexec.c (regexec): Likewise.
8078         (re_match): Likewise.
8079         (re_search): Likewise.
8080         (re_match_2): Likewise.
8081         (re_search_2): Likewise.
8082         (re_search_stub): Likewise.  Use internal_function
8083         (re_copy_regs): Likewise.
8084         (re_set_registers): Convert to prototype-style function
8085         definition.
8086         (prune_impossible_nodes): Likewise.  Use internal_function.
8087         * resolv/inet_net_pton.c (inet_net_pton): Convert to
8088         prototype-style function definition.
8089         (inet_net_pton_ipv4): Likewise.
8090         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8091         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
8092         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
8093         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
8094         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
8095         Make variadic.
8096         * time/strptime_l.c (localtime_r): Convert to prototype-style
8097         function definition.
8098         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
8099         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
8100         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
8101         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
8102
8103         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
8104         definition.
8105         (_ufc_doit_r): Likewise.
8106         * crypt/crypt_util.c (_ufc_copymem): Likewise.
8107         (_ufc_output_conversion_r): Likewise.
8108         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
8109         * inet/rcmd.c (rcmd_af): Likewise.
8110         (rcmd): Likewise.
8111         (ruserok_af): Likewise.
8112         (ruserok): Likewise.
8113         (ruserok2_sa): Likewise.
8114         (ruserok_sa): Likewise.
8115         (iruserok_af): Likewise.
8116         (iruserok): Likewise.
8117         (__ivaliduser): Likewise.
8118         (__validuser2_sa): Likewise.
8119         * inet/rexec.c (rexec_af): Likewise.
8120         (rexec): Likewise.
8121         * inet/ruserpass.c (ruserpass): Likewise.
8122         * locale/programs/xmalloc.c (xcalloc): Likewise.
8123         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
8124         * math/w_drem.c (__drem): Likewise.
8125         * math/w_dremf.c (__dremf): Likewise.
8126         * math/w_dreml.c (__dreml): Likewise.
8127         * misc/daemon.c (daemon): Likewise.
8128         * resolv/res_debug.c (p_fqnname): Likewise.
8129         * stdlib/div.c (div): Likewise.
8130         * string/memcmp.c (memcmp_bytes): Likewise.
8131         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
8132         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
8133
8134         * crypt/cert.c (main): Convert to prototype-style function
8135         definition.
8136         * io/pipe.c (__pipe): Likewise.
8137         * io/pipe2.c (__pipe2): Likewise.
8138         * misc/futimesat.c (futimesat): Likewise.
8139         * misc/utimes.c (__utimes): Likewise.
8140         * posix/execve.c (__execve): Likewise.
8141         * posix/execvp.c (execvp): Likewise.
8142         * posix/execvpe.c (__execvpe): Likewise.
8143         * posix/fexecve.c (fexecve): Likewise.
8144         * socket/socketpair.c (socketpair): Likewise.
8145         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8146         * stdlib/erand48.c (erand48): Likewise.
8147         * stdlib/erand48_r.c (__erand48_r): Likewise.
8148         * stdlib/jrand48.c (jrand48): Likewise.
8149         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
8150         * stdlib/lcong48.c (lcong48): Likewise.
8151         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
8152         * stdlib/nrand48.c (nrand48): Likewise.
8153         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
8154         * stdlib/seed48.c (seed48): Likewise.
8155         * stdlib/seed48_r.c (__seed48_r): Likewise.
8156         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
8157         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
8158         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
8159
8160 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8161
8162         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
8163         * configure: Regenerated.
8164         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
8165         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
8166         unconditional.
8167         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8168         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8169         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8170         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
8171         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
8172         unconditional.
8173         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8174
8175         * posix/Makefile (CFLAGS-regex.c): Remove variable.
8176         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
8177
8178         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
8179         function definition.
8180         * crypt/crypt_util.c (__encrypt_r): Likewise.
8181         * libio/genops.c (_IO_no_init): Likewise.
8182         * libio/iofopncook.c (_IO_fopencookie): Likewise.
8183         (_IO_old_fopencookie): Likewise.
8184         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
8185         * libio/iogetline.c (_IO_getline): Likewise.
8186         (_IO_getline_info): Likewise.
8187         * libio/iogetwline.c (_IO_getwline): Likewise.
8188         (_IO_getwline_info): Likewise.
8189         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
8190         * libio/vswprintf.c (_IO_vswprintf): Likewise.
8191         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
8192         (find_entry): Likewise.
8193         (iterate_table): Likewise.
8194         (lookup): Likewise.
8195         * login/forkpty.c (forkpty): Likewise.
8196         * misc/hsearch_r.c (__hsearch_r): Likewise.
8197         * misc/select.c (__select): Likewise.
8198         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
8199         Likewise.
8200         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
8201         Likewise.
8202         * nptl/old_pthread_cond_timedwait.c
8203         (__pthread_cond_timedwait_2_0): Likewise.
8204         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
8205         * nptl/pthread_barrierattr_getpshared.c
8206         (pthread_barrierattr_getpshared): Likewise.
8207         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
8208         Likewise.
8209         * nptl/pthread_mutex_setprioceiling.c
8210         (pthread_mutex_setprioceiling): Likewise.
8211         * nptl/pthread_mutexattr_getprioceiling.c
8212         (pthread_mutexattr_getprioceiling): Likewise.
8213         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
8214         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
8215         Likewise.
8216         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
8217         Likewise.
8218         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
8219         Likewise.
8220         * socket/recvfrom.c (__recvfrom): Likewise.
8221         * socket/sendto.c (__sendto): Likewise.
8222         * socket/setsockopt.c (__setsockopt): Likewise.
8223         * stdio-common/_itoa.c (_itoa): Likewise.
8224         * stdio-common/_itowa.c (_itowa): Likewise.
8225         * stdio-common/reg-printf.c (__register_printf_specifier):
8226         Likewise.
8227         (__register_printf_function): Likewise.
8228         * stdio-common/tempname.c (__path_search): Likewise.
8229         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
8230         * stdlib/mul_1.c (mpn_mul_1): Likewise.
8231         * stdlib/random_r.c (__initstate_r): Likewise.
8232         * stdlib/setenv.c (__add_to_environ): Likewise.
8233         * stdlib/submul_1.c (mpn_submul_1): Likewise.
8234         * streams/getpmsg.c (getpmsg): Likewise.
8235         * streams/putmsg.c (putmsg): Likewise.
8236         * streams/putpmsg.c (putpmsg): Likewise.
8237         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
8238         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8239         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
8240         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8241         * sunrpc/pm_getport.c (pmap_getport): Likewise.
8242         * sunrpc/svc_udp.c (cache_get): Likewise.
8243         * sunrpc/xdr_array.c (xdr_vector): Likewise.
8244         * sysdeps/mach/hurd/getcwd.c
8245         (__canonicalize_directory_name_internal): Likewise.
8246         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
8247         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
8248         * sysdeps/mach/hurd/select.c (__select): Likewise.
8249         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
8250         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
8251         * sysdeps/sparc/nptl/pthread_barrier_init.c
8252         (__pthread_barrier_init): Likewise.
8253         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
8254         (__pthread_cond_timedwait): Likewise.
8255         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
8256         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
8257         Likewise.
8258         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
8259         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
8260         Likewise.
8261         * sysvipc/semtimedop.c (semtimedop): Likewise.
8262         * time/setitimer.c (__setitimer): Likewise.
8263         * time/strftime_l.c (emacs_strftime): Likewise.
8264
8265 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8266
8267         * config.make.in (have-ssp): Delete.
8268         (stack-protector): New variable.
8269         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
8270         cache test for -fstack-protector-strong.  Export stack_protector to
8271         the best ssp flag.
8272         * configure: Regenerated.
8273         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
8274         * nscd/Makefile (CFLAGS-nscd): Likewise.
8275         * resolv/Makefile (CFLAGS-libresolv): Likewise.
8276
8277 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8278
8279         [BZ #19122]
8280         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
8281         attribute_hidden.
8282
8283 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8284
8285         [BZ #18743]
8286         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
8287         code to...
8288         (ELIDE_LOCK): ...here.
8289         (__get_new_count): New function with part of the code from
8290         __elide_lock that updates the value of adapt_count after a
8291         transaction abort.
8292         (__elided_trylock): Moved this code to...
8293         (ELIDE_TRYLOCK): ...here.
8294
8295 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8296
8297         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
8298         * configure: Regenerate.
8299         * INSTALL: Regenerate.
8300         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
8301         and tweak grammar.
8302
8303 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
8304
8305         * login/programs/pt_chown.c: Include signal.h
8306         (main): Clear any signal mask from the parent process.
8307
8308 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8309
8310         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
8311         * configure: Regenerated.
8312         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
8313         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
8314         $(gnu89-inline-CFLAGS).
8315
8316         * configure.ac (libc_cv_asm_weak_directive): Remove configure
8317         test.
8318         (libc_cv_asm_weakext_directive): Likewise.
8319         * configure: Regenerated.
8320         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
8321         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
8322         * include/libc-symbols.h
8323         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
8324         #error.
8325         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
8326         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
8327
8328         * sysdeps/arm/backtrace.c (__backtrace): Convert to
8329         prototype-style function definition.
8330         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
8331         * sysdeps/i386/ffs.c (__ffs): Likewise.
8332         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
8333         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
8334         Likewise.
8335         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8336         Likewise.
8337         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
8338         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
8339         Likewise.
8340         * sysdeps/m68k/ffs.c (__ffs): Likewise.
8341         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
8342         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
8343         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
8344         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
8345         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
8346         * sysdeps/mach/hurd/access.c (__access): Likewise.
8347         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
8348         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
8349         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
8350         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
8351         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
8352         (cthread_getspecific): Likewise.
8353         (cthread_setspecific): Likewise.
8354         (__libc_getspecific): Likewise.
8355         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
8356         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
8357         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
8358         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
8359         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
8360         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
8361         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
8362         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
8363         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
8364         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
8365         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
8366         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
8367         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
8368         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
8369         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
8370         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
8371         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
8372         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
8373         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
8374         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
8375         * sysdeps/mach/hurd/link.c (__link): Likewise.
8376         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
8377         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
8378         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
8379         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
8380         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
8381         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
8382         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
8383         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
8384         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
8385         * sysdeps/mach/hurd/rename.c (rename): Likewise.
8386         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
8387         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
8388         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
8389         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
8390         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
8391         * sysdeps/mach/hurd/send.c (__send): Likewise.
8392         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
8393         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
8394         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
8395         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
8396         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
8397         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
8398         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
8399         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
8400         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
8401         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
8402         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
8403         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
8404         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
8405         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
8406         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
8407         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
8408         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
8409         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
8410         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
8411         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
8412         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
8413         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
8414         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
8415         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
8416         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
8417         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
8418         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
8419         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
8420         * sysdeps/posix/alarm.c (alarm): Likewise.
8421         * sysdeps/posix/cuserid.c (cuserid): Likewise.
8422         * sysdeps/posix/dirfd.c (dirfd): Likewise.
8423         * sysdeps/posix/dup.c (__dup): Likewise.
8424         * sysdeps/posix/dup2.c (__dup2): Likewise.
8425         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
8426         (main): Likewise.
8427         * sysdeps/posix/flock.c (__flock): Likewise.
8428         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
8429         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8430         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
8431         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
8432         * sysdeps/posix/isatty.c (__isatty): Likewise.
8433         * sysdeps/posix/killpg.c (killpg): Likewise.
8434         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
8435         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
8436         * sysdeps/posix/raise.c (raise): Likewise.
8437         * sysdeps/posix/remove.c (remove): Likewise.
8438         * sysdeps/posix/rename.c (rename): Likewise.
8439         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
8440         * sysdeps/posix/seekdir.c (seekdir): Likewise.
8441         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
8442         * sysdeps/posix/sigignore.c (sigignore): Likewise.
8443         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
8444         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
8445         * sysdeps/posix/sigset.c (sigset): Likewise.
8446         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
8447         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
8448         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
8449         * sysdeps/posix/time.c (time): Likewise.
8450         * sysdeps/posix/ttyname.c (getttyname): Likewise.
8451         (ttyname): Likewise.
8452         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
8453         * sysdeps/posix/utime.c (utime): Likewise.
8454         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
8455         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
8456         Likewise.
8457         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
8458         (pthread_spin_trylock): Likewise.
8459         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
8460         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
8461         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
8462         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
8463         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
8464         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
8465         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
8466         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
8467         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
8468         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
8469         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
8470         * sysdeps/s390/ffs.c (__ffs): Likewise.
8471         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
8472         Likewise.
8473         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8474         Likewise.
8475         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
8476         Likewise.
8477         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
8478         (pthread_barrier_destroy): Likewise.
8479         * sysdeps/sparc/nptl/pthread_barrier_wait.c
8480         (__pthread_barrier_wait): Likewise.
8481         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
8482         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
8483         (__pthread_barrier_wait): Likewise.
8484         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
8485         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
8486         (memcmp_not_common_alignment): Likewise.
8487         (MEMCMP): Likewise.
8488         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
8489         (_wordcopy_fwd_dest_aligned): Likewise.
8490         (_wordcopy_bwd_aligned): Likewise.
8491         (_wordcopy_bwd_dest_aligned): Likewise.
8492         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
8493         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
8494         * sysdeps/unix/bsd/stty.c (stty): Likewise.
8495         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
8496         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
8497         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
8498         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
8499         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
8500         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
8501         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
8502         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
8503         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
8504         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
8505         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
8506         * sysdeps/unix/stime.c (stime): Likewise.
8507         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
8508         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
8509         Likewise.  Use internal_function.
8510         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
8511         Convert to prototype-style function definition.
8512         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
8513         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
8514         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
8515         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
8516         Likewise.  Use internal_function.
8517         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
8518         prototype-style function definition
8519         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8520         Likewise.
8521         (__getlogin_r): Likewise.
8522         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
8523         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
8524         (__pthread_cond_broadcast): Likewise.
8525         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
8526         (__pthread_cond_destroy): Likewise.
8527         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
8528         (__pthread_cond_init): Likewise.
8529         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
8530         (__pthread_cond_signal): Likewise.
8531         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
8532         (__pthread_cond_wait): Likewise.
8533         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
8534         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
8535         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
8536         Likewise.
8537         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
8538         Likewise.
8539         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
8540         Likewise.
8541         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
8542         Likewise.
8543         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
8544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
8545         (__ftruncate64): Likewise.
8546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
8547         (truncate64): Likewise.
8548         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
8549         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
8550         (pthread_getcpuclockid): Likewise.
8551         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8552         Likewise.
8553         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8554         Likewise.
8555         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
8556         Likewise.
8557         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
8558         Likewise.
8559         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
8560         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
8561         (__libc_sigaction): Likewise.
8562         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
8563         Likewise.
8564         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
8565         (__sigprocmask): Likewise.
8566         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
8567         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
8568         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
8569         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
8570         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
8571         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
8572         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
8573         Likewise.
8574         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
8575         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
8576         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
8577         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
8578         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
8579         Likewise.
8580         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
8581         (__sigprocmask): Likewise.
8582         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
8583         (cfgetispeed): Likewise.
8584         (cfsetospeed): Likewise.
8585         (cfsetispeed): Likewise.
8586         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
8587         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
8588         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
8589         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
8590         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
8591         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
8592         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
8593         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
8594         Likewise.
8595         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
8596         Likewise.
8597         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
8598         Likewise.
8599         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
8600         Likewise.
8601         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
8602
8603 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8604
8605         sunrpc: Rewrite with explicit TLS access using __thread.
8606         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
8607         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
8608         directly.
8609         (__rpc_thread_variables): Access thread_rpc_vars directly.
8610         Eliminate redundant assignment of the tvp variable.
8611
8612 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8613
8614         malloc: Rewrite with explicit TLS access using __thread.
8615         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
8616         (tsd_setspecific, tsd_getspecific): Remove.
8617         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
8618         (tsd_setspecific, tsd_getspecific): Likewise.
8619         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
8620         (tsd_setspecific, tsd_getspecific): Likewise.
8621         * malloc/arena.c (thread_arena): New TLS variable.
8622         (arena_key): Remove variable.
8623         (arena_get): Use thread_arena.
8624         (arena_lookup): Remove macro.
8625         (malloc_atfork, free_atfork, ptmalloc_lock_all)
8626         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
8627         (_int_new_arena, get_free_list, reused_arena)
8628         (arena_thread_freeres): Use thread_arena.
8629         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
8630         tsd_getspecific, tsd_setspecific from safety annotations.
8631         (Allocating Cleared Space): Remove arena_lookup from safety
8632         annotations.
8633
8634 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8635
8636         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
8637         struct scratch_buffer instead of extend_alloca.
8638
8639 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8640
8641         * sysdeps/unix/sysv/linux/kernel-features.h
8642         (__ASSUME_SOCK_CLOEXEC): Remove.
8643         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
8644         (__have_paccept): Remove unused macro.
8645         * include/unistd.h (__have_sock_cloexec): Remove declaration.
8646         * misc/syslog.c (openlog_internal): Remove fallback code for
8647         !__ASSUME_SOCK_CLOEXEC.
8648         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
8649         missing SOCK_CLOEXEC.
8650         * nscd/connections.c (have_sock_cloexec): Remove definition.
8651         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8652         * nscd/nscd_helper.c (open_socket): Remove fallback code for
8653         !__ASSUME_SOCK_CLOEXEC.
8654         * resolv/res_send.c (__have_o_nonblock): Remove definition.
8655         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8656         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
8657         definition.
8658         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
8659         code for !__ASSUME_SOCK_CLOEXEC.
8660
8661 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8662
8663         [BZ #18982]
8664         * manual/stdio.texi (Variable Arguments Output): Add portability
8665         note, explaining that vfprintf clobbers the va_list pointer.
8666
8667 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8668
8669         * math/libm-test.inc (fabs_test_data): Add more tests.
8670         (fdim_test_data): Likewise.
8671         (fma_test_data): Likewise.
8672         (fmax_test_data): Likewise.
8673         (fmin_test_data): Likewise.
8674         (fmod_test_data): Likewise.
8675
8676 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
8677
8678         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
8679         data.
8680
8681 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8682
8683         * math/libm-test.inc (ceil_test_data): Add more tests and more
8684         expectations for "inexact".
8685         (floor_test_data): Add more tests.
8686         (round_test_data): Likewise.
8687         (trunc_test_data): Likewise.
8688
8689         * crypt/cert.c (good_bye): Convert to prototype-style function
8690         definition.
8691         (get8): Likewise.
8692         (put8): Likewise.
8693         * crypt/crypt-entry.c (crypt): Likewise.
8694         (__fcrypt): Likewise.
8695         * crypt/crypt_util.c (_ufc_prbits): Likewise.
8696         (_ufc_set_bits): Likewise.
8697         (_ufc_clearmem): Likewise.
8698         (__init_des_r): Likewise.
8699         (shuffle_sb): Likewise.
8700         (shuffle_sb): Likewise.
8701         (_ufc_setup_salt_r): Likewise.
8702         (_ufc_mk_keytab_r): Likewise.
8703         (_ufc_dofinalperm_r): Likewise.
8704         (encrypt): Likewise.
8705         (__setkey_r): Likewise.
8706         (setkey): Likewise.
8707         * crypt/md5.c (md5_init_ctx): Likewise.
8708         (md5_read_ctx): Likewise.
8709         (md5_finish_ctx): Likewise.
8710         (md5_stream): Likewise.
8711         (md5_buffer): Likewise.
8712         (md5_process_bytes): Likewise.
8713         * crypt/sha256.c (__sha256_init_ctx): Likewise.
8714         (__sha256_finish_ctx): Likewise.
8715         (__sha256_process_bytes): Likewise.
8716         * crypt/sha512.c (__sha512_init_ctx): Likewise.
8717         (__sha512_finish_ctx): Likewise.
8718         (__sha512_process_bytes): Likewise.
8719         * ctype/isctype.c (__isctype): Likewise.
8720         * debug/backtrace.c (__backtrace): Likewise.
8721         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
8722         * debug/fgets_chk.c (__fgets_chk): Likewise.
8723         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
8724         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
8725         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
8726         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
8727         * debug/memset_chk.c (__memset_chk): Likewise.
8728         * debug/strcat_chk.c (__strcat_chk): Likewise.
8729         * debug/strncat_chk.c (__strncat_chk): Likewise.
8730         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
8731         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
8732         * dirent/dirfd.c (dirfd): Likewise.
8733         * dirent/getdents.c (__getdirentries): Likewise.
8734         * dirent/getdents64.c (getdirentries64): Likewise.
8735         * dirent/rewinddir.c (__rewinddir): Likewise.
8736         * dirent/seekdir.c (seekdir): Likewise.
8737         * dirent/telldir.c (telldir): Likewise.
8738         * elf/sln.c (makesymlinks): Likewise.
8739         (makesymlink): Likewise.
8740         * gmon/gmon.c (__moncontrol): Likewise.
8741         (__monstartup): Likewise.
8742         (write_hist): Likewise.
8743         (write_call_graph): Likewise.
8744         (write_bb_counts): Likewise.
8745         * grp/setgroups.c (setgroups): Likewise.
8746         * inet/inet_lnaof.c (inet_lnaof): Likewise.
8747         * inet/inet_net.c (inet_network): Likewise.
8748         * inet/inet_netof.c (inet_netof): Likewise.
8749         * inet/rcmd.c (rresvport_af): Likewise.
8750         (rresvport): Likewise.
8751         * io/access.c (__access): Likewise.
8752         * io/chdir.c (__chdir): Likewise.
8753         * io/chmod.c (__chmod): Likewise.
8754         * io/chown.c (__chown): Likewise.
8755         * io/close.c (__close): Likewise.
8756         * io/creat.c (creat): Likewise.
8757         * io/creat64.c (creat64): Likewise.
8758         * io/dup.c (__dup): Likewise.
8759         * io/dup2.c (__dup2): Likewise.
8760         * io/dup3.c (__dup3): Likewise.
8761         * io/euidaccess.c (__euidaccess): Likewise.
8762         * io/faccessat.c (faccessat): Likewise.
8763         * io/fchmod.c (__fchmod): Likewise.
8764         * io/fchmodat.c (fchmodat): Likewise.
8765         * io/fchown.c (__fchown): Likewise.
8766         * io/fchownat.c (fchownat): Likewise.
8767         * io/fcntl.c (__fcntl): Likewise.
8768         * io/flock.c (__flock): Likewise.
8769         * io/fts.c (fts_load): Likewise.
8770         (fts_close): Likewise.
8771         (fts_read): Likewise.
8772         (fts_set): Likewise.
8773         (fts_children): Likewise.
8774         (fts_build): Likewise.
8775         (fts_stat): Likewise.
8776         (fts_sort): Likewise.
8777         (fts_alloc): Likewise.
8778         (fts_lfree): Likewise.
8779         (fts_palloc): Likewise.
8780         (fts_padjust): Likewise.
8781         (fts_maxarglen): Likewise.
8782         (fts_safe_changedir): Likewise.
8783         * io/getwd.c (getwd): Likewise.
8784         * io/isatty.c (__isatty): Likewise.
8785         * io/lchown.c (__lchown): Likewise.
8786         * io/link.c (__link): Likewise.
8787         * io/linkat.c (linkat): Likewise.
8788         * io/lseek.c (__libc_lseek): Likewise.
8789         * io/mkdir.c (__mkdir): Likewise.
8790         * io/mkdirat.c (mkdirat): Likewise.
8791         * io/mkfifo.c (mkfifo): Likewise.
8792         * io/mkfifoat.c (mkfifoat): Likewise.
8793         * io/open.c (__libc_open): Likewise.
8794         * io/open64.c (__libc_open64): Likewise.
8795         * io/readlink.c (__readlink): Likewise.
8796         * io/readlinkat.c (readlinkat): Likewise.
8797         * io/rmdir.c (__rmdir): Likewise.
8798         * io/symlink.c (__symlink): Likewise.
8799         * io/symlinkat.c (symlinkat): Likewise.
8800         * io/ttyname.c (ttyname): Likewise.
8801         * io/ttyname_r.c (__ttyname_r): Likewise.
8802         * io/umask.c (__umask): Likewise.
8803         * io/unlink.c (__unlink): Likewise.
8804         * io/unlinkat.c (unlinkat): Likewise.
8805         * io/utime.c (utime): Likewise.
8806         * libio/clearerr.c (clearerr): Likewise.
8807         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
8808         * libio/feof.c (_IO_feof): Likewise.
8809         * libio/feof_u.c (feof_unlocked): Likewise.
8810         * libio/ferror.c (_IO_ferror): Likewise.
8811         * libio/ferror_u.c (ferror_unlocked): Likewise.
8812         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
8813         * libio/fileno.c (__fileno): Likewise.
8814         * libio/fputc.c (fputc): Likewise.
8815         * libio/fputc_u.c (fputc_unlocked): Likewise.
8816         * libio/fputwc.c (fputwc): Likewise.
8817         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
8818         * libio/freopen.c (freopen): Likewise.
8819         * libio/freopen64.c (freopen64): Likewise.
8820         * libio/fseek.c (fseek): Likewise.
8821         * libio/fseeko.c (fseeko): Likewise.
8822         * libio/fseeko64.c (fseeko64): Likewise.
8823         * libio/ftello.c (__ftello): Likewise.
8824         * libio/ftello64.c (ftello64): Likewise.
8825         * libio/fwide.c (fwide): Likewise.
8826         * libio/genops.c (_IO_un_link): Likewise.
8827         (_IO_link_in): Likewise.
8828         (_IO_least_marker): Likewise.
8829         (_IO_switch_to_main_get_area): Likewise.
8830         (_IO_switch_to_backup_area): Likewise.
8831         (_IO_switch_to_get_mode): Likewise.
8832         (_IO_free_backup_area): Likewise.
8833         (_IO_switch_to_put_mode): Likewise.
8834         (__overflow): Likewise.
8835         (__underflow): Likewise.
8836         (__uflow): Likewise.
8837         (_IO_setb): Likewise.
8838         (_IO_doallocbuf): Likewise.
8839         (_IO_default_underflow): Likewise.
8840         (_IO_default_uflow): Likewise.
8841         (_IO_default_xsputn): Likewise.
8842         (_IO_sgetn): Likewise.
8843         (_IO_default_xsgetn): Likewise.
8844         (_IO_sync): Likewise.
8845         (_IO_default_setbuf): Likewise.
8846         (_IO_default_seekpos): Likewise.
8847         (_IO_default_doallocate): Likewise.
8848         (_IO_init): Likewise.
8849         (_IO_old_init): Likewise.
8850         (_IO_default_sync): Likewise.
8851         (_IO_default_finish): Likewise.
8852         (_IO_default_seekoff): Likewise.
8853         (_IO_sputbackc): Likewise.
8854         (_IO_sungetc): Likewise.
8855         (_IO_set_column): Likewise.
8856         (_IO_set_column): Likewise.
8857         (_IO_adjust_column): Likewise.
8858         (_IO_get_column): Likewise.
8859         (_IO_init_marker): Likewise.
8860         (_IO_remove_marker): Likewise.
8861         (_IO_marker_difference): Likewise.
8862         (_IO_marker_delta): Likewise.
8863         (_IO_seekmark): Likewise.
8864         (_IO_unsave_markers): Likewise.
8865         (_IO_nobackup_pbackfail): Likewise.
8866         (_IO_default_pbackfail): Likewise.
8867         (_IO_default_seek): Likewise.
8868         (_IO_default_stat): Likewise.
8869         (_IO_default_read): Likewise.
8870         (_IO_default_write): Likewise.
8871         (_IO_default_showmanyc): Likewise.
8872         (_IO_default_imbue): Likewise.
8873         (_IO_iter_next): Likewise.
8874         (_IO_iter_file): Likewise.
8875         * libio/getc.c (_IO_getc): Likewise.
8876         * libio/getwc.c (_IO_getwc): Likewise.
8877         * libio/iofclose.c (_IO_new_fclose): Likewise.
8878         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
8879         * libio/iofflush.c (_IO_fflush): Likewise.
8880         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
8881         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
8882         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
8883         * libio/iofgets.c (_IO_fgets): Likewise.
8884         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
8885         * libio/iofgetws.c (fgetws): Likewise.
8886         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
8887         * libio/iofopen64.c (_IO_fopen64): Likewise.
8888         * libio/iofopncook.c (_IO_cookie_read): Likewise.
8889         (_IO_cookie_write): Likewise.
8890         (_IO_cookie_seek): Likewise.
8891         (_IO_cookie_close): Likewise.
8892         (_IO_cookie_seekoff): Likewise.
8893         (_IO_old_cookie_seek): Likewise.
8894         * libio/iofputs.c (_IO_fputs): Likewise.
8895         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
8896         * libio/iofputws.c (fputws): Likewise.
8897         * libio/iofputws_u.c (fputws_unlocked): Likewise.
8898         * libio/iofread.c (_IO_fread): Likewise.
8899         * libio/iofread_u.c (__fread_unlocked): Likewise.
8900         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
8901         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
8902         * libio/ioftell.c (_IO_ftell): Likewise.
8903         * libio/iofwrite.c (_IO_fwrite): Likewise.
8904         * libio/iogetdelim.c (_IO_getdelim): Likewise.
8905         * libio/iogets.c (_IO_gets): Likewise.
8906         * libio/iopadn.c (_IO_padn): Likewise.
8907         * libio/iopopen.c (_IO_new_proc_open): Likewise.
8908         (_IO_new_popen): Likewise.
8909         (_IO_new_proc_close): Likewise.
8910         * libio/ioputs.c (_IO_puts): Likewise.
8911         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
8912         (_IO_seekoff): Likewise.
8913         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
8914         (_IO_seekpos): Likewise.
8915         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
8916         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
8917         * libio/ioungetc.c (_IO_ungetc): Likewise.
8918         * libio/ioungetwc.c (ungetwc): Likewise.
8919         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
8920         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
8921         * libio/iowpadn.c (_IO_wpadn): Likewise.
8922         * libio/libc_fatal.c (__libc_fatal): Likewise.
8923         * libio/memstream.c (__open_memstream): Likewise.
8924         (_IO_mem_sync): Likewise.
8925         (_IO_mem_finish): Likewise.
8926         * libio/oldfileops.c (_IO_old_file_init): Likewise.
8927         (_IO_old_file_close_it): Likewise.
8928         (_IO_old_file_finish): Likewise.
8929         (_IO_old_file_fopen): Likewise.
8930         (_IO_old_file_attach): Likewise.
8931         (_IO_old_file_setbuf): Likewise.
8932         (_IO_old_do_write): Likewise.
8933         (old_do_write): Likewise.
8934         (_IO_old_file_underflow): Likewise.
8935         (_IO_old_file_overflow): Likewise.
8936         (_IO_old_file_sync): Likewise.
8937         (_IO_old_file_seekoff): Likewise.
8938         (_IO_old_file_write): Likewise.
8939         (_IO_old_file_xsputn): Likewise.
8940         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
8941         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
8942         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
8943         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
8944         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
8945         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
8946         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
8947         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
8948         (_IO_old_popen): Likewise.
8949         (_IO_old_proc_close): Likewise.
8950         * libio/oldpclose.c (__old_pclose): Likewise.
8951         * libio/pclose.c (__new_pclose): Likewise.
8952         * libio/peekc.c (_IO_peekc_locked): Likewise.
8953         * libio/putc.c (_IO_putc): Likewise.
8954         * libio/putc_u.c (putc_unlocked): Likewise.
8955         * libio/putchar.c (putchar): Likewise.
8956         * libio/putchar_u.c (putchar_unlocked): Likewise.
8957         * libio/putwc.c (putwc): Likewise.
8958         * libio/putwc_u.c (putwc_unlocked): Likewise.
8959         * libio/putwchar.c (putwchar): Likewise.
8960         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
8961         * libio/rewind.c (rewind): Likewise.
8962         * libio/setbuf.c (setbuf): Likewise.
8963         * libio/setlinebuf.c (setlinebuf): Likewise.
8964         * libio/vasprintf.c (_IO_vasprintf): Likewise.
8965         * libio/vscanf.c (_IO_vscanf): Likewise.
8966         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
8967         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
8968         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
8969         * libio/wgenops.c (_IO_least_wmarker): Likewise.
8970         (_IO_switch_to_main_wget_area): Likewise.
8971         (_IO_switch_to_wbackup_area): Likewise.
8972         (_IO_wsetb): Likewise.
8973         (_IO_wdefault_pbackfail): Likewise.
8974         (_IO_wdefault_finish): Likewise.
8975         (_IO_wdefault_uflow): Likewise.
8976         (__woverflow): Likewise.
8977         (__wuflow): Likewise.
8978         (__wunderflow): Likewise.
8979         (_IO_wdefault_xsputn): Likewise.
8980         (_IO_wdefault_xsgetn): Likewise.
8981         (_IO_wdoallocbuf): Likewise.
8982         (_IO_wdefault_doallocate): Likewise.
8983         (_IO_switch_to_wget_mode): Likewise.
8984         (_IO_free_wbackup_area): Likewise.
8985         (_IO_switch_to_wput_mode): Likewise.
8986         (_IO_sputbackwc): Likewise.
8987         (_IO_sungetwc): Likewise.
8988         (_IO_adjust_wcolumn): Likewise.
8989         (_IO_init_wmarker): Likewise.
8990         (_IO_wmarker_delta): Likewise.
8991         (_IO_seekwmark): Likewise.
8992         (_IO_unsave_wmarkers): Likewise.
8993         * libio/wmemstream.c (open_wmemstream): Likewise.
8994         (_IO_wmem_sync): Likewise.
8995         (_IO_wmem_finish): Likewise.
8996         * locale/nl_langinfo.c (nl_langinfo): Likewise.
8997         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
8998         * locale/programs/simple-hash.c (init_hash): Likewise.
8999         (delete_hash): Likewise.
9000         (insert_entry): Likewise.
9001         (set_entry): Likewise.
9002         (next_prime): Likewise.
9003         (is_prime): Likewise.
9004         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
9005         (xmalloc): Likewise.
9006         (xrealloc): Likewise.
9007         * locale/programs/xstrdup.c (xstrdup): Likewise.
9008         * localedata/collate-test.c (xstrcoll): Likewise.
9009         * localedata/xfrm-test.c (xstrcmp): Likewise.
9010         * login/getlogin_r.c (__getlogin_r): Likewise.
9011         * login/getpt.c (__posix_openpt): Likewise.
9012         * login/login_tty.c (login_tty): Likewise.
9013         * login/setlogin.c (setlogin): Likewise.
9014         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
9015         (mach_msg_destroy_port): Likewise.
9016         (mach_msg_destroy_memory): Likewise.
9017         * malloc/mcheck.c (flood): Likewise.
9018         * misc/acct.c (acct): Likewise.
9019         * misc/brk.c (__brk): Likewise.
9020         * misc/chflags.c (chflags): Likewise.
9021         * misc/chroot.c (chroot): Likewise.
9022         * misc/fchflags.c (fchflags): Likewise.
9023         * misc/fstab.c (getfsspec): Likewise.
9024         (getfsfile): Likewise.
9025         * misc/fsync.c (fsync): Likewise.
9026         * misc/ftruncate.c (__ftruncate): Likewise.
9027         * misc/ftruncate64.c (__ftruncate64): Likewise.
9028         * misc/getdomain.c (getdomainname): Likewise.
9029         (getdomainname): Likewise.
9030         * misc/gethostname.c (__gethostname): Likewise.
9031         * misc/getpass.c (getpass): Likewise.
9032         * misc/getttyent.c (skip): Likewise.
9033         (value): Likewise.
9034         * misc/gtty.c (gtty): Likewise.
9035         * misc/hsearch.c (hsearch): Likewise.
9036         (hcreate): Likewise.
9037         * misc/hsearch_r.c (__hcreate_r): Likewise.
9038         (__hdestroy_r): Likewise.
9039         * misc/ioctl.c (__ioctl): Likewise.
9040         * misc/mkdtemp.c (mkdtemp): Likewise.
9041         * misc/mkostemp.c (mkostemp): Likewise.
9042         * misc/mkostemp64.c (mkostemp64): Likewise.
9043         * misc/mkostemps.c (mkostemps): Likewise.
9044         * misc/mkostemps64.c (mkostemps64): Likewise.
9045         * misc/mkstemp.c (mkstemp): Likewise.
9046         * misc/mkstemp64.c (mkstemp64): Likewise.
9047         * misc/mkstemps.c (mkstemps): Likewise.
9048         * misc/mkstemps64.c (mkstemps64): Likewise.
9049         * misc/mktemp.c (__mktemp): Likewise.
9050         * misc/preadv.c (preadv): Likewise.
9051         * misc/preadv64.c (preadv64): Likewise.
9052         * misc/pwritev.c (pwritev): Likewise.
9053         * misc/pwritev64.c (pwritev64): Likewise.
9054         * misc/readv.c (__readv): Likewise.
9055         * misc/revoke.c (revoke): Likewise.
9056         * misc/setdomain.c (setdomainname): Likewise.
9057         * misc/setegid.c (setegid): Likewise.
9058         * misc/seteuid.c (seteuid): Likewise.
9059         * misc/sethostid.c (sethostid): Likewise.
9060         * misc/sethostname.c (sethostname): Likewise.
9061         * misc/setregid.c (__setregid): Likewise.
9062         * misc/setreuid.c (__setreuid): Likewise.
9063         * misc/sstk.c (sstk): Likewise.
9064         * misc/stty.c (stty): Likewise.
9065         * misc/syscall.c (syscall): Likewise.
9066         * misc/syslog.c (setlogmask): Likewise.
9067         * misc/truncate.c (__truncate): Likewise.
9068         * misc/truncate64.c (truncate64): Likewise.
9069         * misc/ualarm.c (ualarm): Likewise.
9070         * misc/usleep.c (usleep): Likewise.
9071         * misc/ustat.c (ustat): Likewise.
9072         * misc/writev.c (__writev): Likewise.
9073         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
9074         * nptl/old_pthread_cond_broadcast.c
9075         (__pthread_cond_broadcast_2_0): Likewise.
9076         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
9077         Likewise.
9078         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
9079         Likewise.
9080         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
9081         Likewise.
9082         * nptl/pt-raise.c (raise): Likewise.
9083         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
9084         Likewise.
9085         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
9086         * nptl/pthread_barrierattr_destroy.c
9087         (pthread_barrierattr_destroy): Likewise.
9088         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
9089         Likewise.
9090         * nptl/pthread_barrierattr_setpshared.c
9091         (pthread_barrierattr_setpshared): Likewise.
9092         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
9093         Likewise.
9094         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
9095         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
9096         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
9097         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
9098         Likewise.
9099         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
9100         Likewise.
9101         * nptl/pthread_condattr_getpshared.c
9102         (pthread_condattr_getpshared): Likewise.
9103         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
9104         Likewise.
9105         * nptl/pthread_condattr_setpshared.c
9106         (pthread_condattr_setpshared): Likewise.
9107         * nptl/pthread_detach.c (pthread_detach): Likewise.
9108         * nptl/pthread_equal.c (__pthread_equal): Likewise.
9109         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
9110         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
9111         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
9112         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
9113         Likewise.
9114         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
9115         Likewise.
9116         * nptl/pthread_mutex_getprioceiling.c
9117         (pthread_mutex_getprioceiling): Likewise.
9118         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
9119         Likewise.
9120         * nptl/pthread_mutexattr_getprotocol.c
9121         (pthread_mutexattr_getprotocol): Likewise.
9122         * nptl/pthread_mutexattr_getpshared.c
9123         (pthread_mutexattr_getpshared): Likewise.
9124         * nptl/pthread_mutexattr_getrobust.c
9125         (pthread_mutexattr_getrobust): Likewise.
9126         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
9127         Likewise.
9128         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
9129         Likewise.
9130         * nptl/pthread_mutexattr_setprioceiling.c
9131         (pthread_mutexattr_setprioceiling): Likewise.
9132         * nptl/pthread_mutexattr_setprotocol.c
9133         (pthread_mutexattr_setprotocol): Likewise.
9134         * nptl/pthread_mutexattr_setpshared.c
9135         (pthread_mutexattr_setpshared): Likewise.
9136         * nptl/pthread_mutexattr_setrobust.c
9137         (pthread_mutexattr_setrobust): Likewise.
9138         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
9139         Likewise.
9140         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
9141         Likewise.
9142         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
9143         Likewise.
9144         * nptl/pthread_rwlockattr_getkind_np.c
9145         (pthread_rwlockattr_getkind_np): Likewise.
9146         * nptl/pthread_rwlockattr_getpshared.c
9147         (pthread_rwlockattr_getpshared): Likewise.
9148         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
9149         Likewise.
9150         * nptl/pthread_rwlockattr_setkind_np.c
9151         (pthread_rwlockattr_setkind_np): Likewise.
9152         * nptl/pthread_rwlockattr_setpshared.c
9153         (pthread_rwlockattr_setpshared): Likewise.
9154         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
9155         Likewise.
9156         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
9157         Likewise.
9158         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
9159         Likewise.
9160         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
9161         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
9162         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
9163         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
9164         * nptl/sem_close.c (sem_close): Likewise.
9165         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
9166         * nptl/sem_init.c (__old_sem_init): Likewise.
9167         * nptl/sigaction.c (__sigaction): Likewise.
9168         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
9169         * posix/_exit.c (_exit): Likewise.
9170         * posix/alarm.c (alarm): Likewise.
9171         * posix/confstr.c (confstr): Likewise.
9172         * posix/fpathconf.c (__fpathconf): Likewise.
9173         * posix/getgroups.c (__getgroups): Likewise.
9174         * posix/getpgid.c (__getpgid): Likewise.
9175         * posix/group_member.c (__group_member): Likewise.
9176         * posix/pathconf.c (__pathconf): Likewise.
9177         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
9178         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
9179         * posix/setgid.c (__setgid): Likewise.
9180         * posix/setpgid.c (__setpgid): Likewise.
9181         * posix/setuid.c (__setuid): Likewise.
9182         * posix/sleep.c (__sleep): Likewise.
9183         * posix/sysconf.c (__sysconf): Likewise.
9184         * posix/times.c (__times): Likewise.
9185         * posix/uname.c (__uname): Likewise.
9186         * posix/waitid.c (__waitid): Likewise.
9187         * pwd/getpw.c (__getpw): Likewise.
9188         * resolv/base64.c (b64_pton): Likewise.
9189         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
9190         * resolv/gethnamaddr.c (Dprintf): Likewise.
9191         (gethostbyname): Likewise.
9192         (gethostbyname2): Likewise.
9193         (gethostbyaddr): Likewise.
9194         (_sethtent): Likewise.
9195         (_gethtbyname): Likewise.
9196         (_gethtbyname2): Likewise.
9197         (_gethtbyaddr): Likewise.
9198         (map_v4v6_address): Likewise.
9199         (map_v4v6_hostent): Likewise.
9200         (addrsort): Likewise.
9201         (ht_sethostent): Likewise.
9202         (ht_gethostbyname): Likewise.
9203         (ht_gethostbyaddr): Likewise.
9204         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
9205         (inet_net_ntop_ipv4): Likewise.
9206         * resolv/inet_neta.c (inet_neta): Likewise.
9207         * resolv/inet_ntop.c (inet_ntop): Likewise.
9208         (inet_ntop4): Likewise.
9209         (inet_ntop6): Likewise.
9210         * resolv/inet_pton.c (__inet_pton): Likewise.
9211         (inet_pton4): Likewise.
9212         (inet_pton6): Likewise.
9213         * resolv/res_debug.c (loc_aton): Likewise.
9214         (loc_ntoa): Likewise.
9215         * resource/getpriority.c (__getpriority): Likewise.
9216         * resource/getrusage.c (__getrusage): Likewise.
9217         * resource/nice.c (nice): Likewise.
9218         * resource/setpriority.c (__setpriority): Likewise.
9219         * resource/setrlimit64.c (setrlimit64): Likewise.
9220         * resource/vlimit.c (vlimit): Likewise.
9221         * resource/vtimes.c (vtimes): Likewise.
9222         * rt/aio_error.c (aio_error): Likewise.
9223         * rt/aio_return.c (aio_return): Likewise.
9224         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
9225         * signal/kill.c (__kill): Likewise.
9226         * signal/killpg.c (killpg): Likewise.
9227         * signal/raise.c (raise): Likewise.
9228         * signal/sigaction.c (__sigaction): Likewise.
9229         * signal/sigaddset.c (sigaddset): Likewise.
9230         * signal/sigaltstack.c (sigaltstack): Likewise.
9231         * signal/sigandset.c (sigandset): Likewise.
9232         * signal/sigblock.c (__sigblock): Likewise.
9233         * signal/sigdelset.c (sigdelset): Likewise.
9234         * signal/sigempty.c (sigemptyset): Likewise.
9235         * signal/sigfillset.c (sigfillset): Likewise.
9236         * signal/sighold.c (sighold): Likewise.
9237         * signal/sigignore.c (sigignore): Likewise.
9238         * signal/sigintr.c (siginterrupt): Likewise.
9239         * signal/sigisempty.c (sigisemptyset): Likewise.
9240         * signal/sigismem.c (sigismember): Likewise.
9241         * signal/signal.c (signal): Likewise.
9242         * signal/sigorset.c (sigorset): Likewise.
9243         * signal/sigpause.c (__sigpause): Likewise.
9244         * signal/sigpending.c (sigpending): Likewise.
9245         * signal/sigprocmask.c (__sigprocmask): Likewise.
9246         * signal/sigrelse.c (sigrelse): Likewise.
9247         * signal/sigreturn.c (__sigreturn): Likewise.
9248         * signal/sigset.c (sigset): Likewise.
9249         * signal/sigsetmask.c (__sigsetmask): Likewise.
9250         * signal/sigstack.c (sigstack): Likewise.
9251         * signal/sigsuspend.c (__sigsuspend): Likewise.
9252         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
9253         * signal/sysv_signal.c (__sysv_signal): Likewise.
9254         * socket/accept.c (accept): Likewise.
9255         * socket/accept4.c (__libc_accept4): Likewise.
9256         * socket/bind.c (__bind): Likewise.
9257         * socket/connect.c (__connect): Likewise.
9258         * socket/getpeername.c (getpeername): Likewise.
9259         * socket/getsockname.c (__getsockname): Likewise.
9260         * socket/getsockopt.c (getsockopt): Likewise.
9261         * socket/listen.c (__listen): Likewise.
9262         * socket/recv.c (__recv): Likewise.
9263         * socket/recvmsg.c (__recvmsg): Likewise.
9264         * socket/send.c (__send): Likewise.
9265         * socket/sendmsg.c (__sendmsg): Likewise.
9266         * socket/shutdown.c (shutdown): Likewise.
9267         * socket/sockatmark.c (sockatmark): Likewise.
9268         * socket/socket.c (__socket): Likewise.
9269         * stdio-common/ctermid.c (ctermid): Likewise.
9270         * stdio-common/cuserid.c (cuserid): Likewise.
9271         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
9272         * stdio-common/remove.c (remove): Likewise.
9273         * stdio-common/rename.c (rename): Likewise.
9274         * stdio-common/renameat.c (renameat): Likewise.
9275         * stdio-common/tempname.c (__gen_tempname): Likewise.
9276         * stdio-common/xbug.c (InitBuffer): Likewise.
9277         (AppendToBuffer): Likewise.
9278         (ReadFile): Likewise.
9279         * stdlib/a64l.c (a64l): Likewise.
9280         * stdlib/drand48_r.c (drand48_r): Likewise.
9281         * stdlib/getcontext.c (getcontext): Likewise.
9282         * stdlib/getenv.c (getenv): Likewise.
9283         * stdlib/l64a.c (l64a): Likewise.
9284         * stdlib/llabs.c (llabs): Likewise.
9285         * stdlib/lldiv.c (lldiv): Likewise.
9286         * stdlib/lrand48_r.c (lrand48_r): Likewise.
9287         * stdlib/mrand48_r.c (mrand48_r): Likewise.
9288         * stdlib/putenv.c (putenv): Likewise.
9289         * stdlib/random.c (__srandom): Likewise.
9290         (__initstate): Likewise.
9291         (__setstate): Likewise.
9292         * stdlib/random_r.c (__srandom_r): Likewise.
9293         (__setstate_r): Likewise.
9294         (__random_r): Likewise.
9295         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
9296         * stdlib/setcontext.c (setcontext): Likewise.
9297         * stdlib/setenv.c (setenv): Likewise.
9298         (unsetenv): Likewise.
9299         * stdlib/srand48.c (srand48): Likewise.
9300         * stdlib/srand48_r.c (__srand48_r): Likewise.
9301         * stdlib/swapcontext.c (swapcontext): Likewise.
9302         * stdlib/system.c (__libc_system): Likewise.
9303         * stdlib/tst-strtod.c (expand): Likewise.
9304         * stdlib/tst-strtol.c (expand): Likewise.
9305         * stdlib/tst-strtoll.c (expand): Likewise.
9306         * streams/fattach.c (fattach): Likewise.
9307         * streams/fdetach.c (fdetach): Likewise.
9308         * streams/getmsg.c (getmsg): Likewise.
9309         * streams/isastream.c (isastream): Likewise.
9310         * string/ffs.c (__ffs): Likewise.
9311         * string/ffsll.c (ffsll): Likewise.
9312         * string/memcmp.c (memcmp_common_alignment): Likewise.
9313         (memcmp_not_common_alignment): Likewise.
9314         (MEMCMP): Likewise.
9315         * string/memcpy.c (memcpy): Likewise.
9316         * string/memmove.c (MEMMOVE): Likewise.
9317         * string/memset.c (memset): Likewise.
9318         * string/rawmemchr.c (RAWMEMCHR): Likewise.
9319         * string/strchrnul.c (STRCHRNUL): Likewise.
9320         * string/strerror.c (strerror): Likewise.
9321         * string/strndup.c (__strndup): Likewise.
9322         * string/strverscmp.c (__strverscmp): Likewise.
9323         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
9324         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
9325         (clnttcp_freeres): Likewise.
9326         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
9327         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
9328         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
9329         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
9330         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
9331         (xdr_callhdr): Likewise.
9332         * sunrpc/rpcinfo.c (udpping): Likewise.
9333         (tcpping): Likewise.
9334         (pstatus): Likewise.
9335         (pmapdump): Likewise.
9336         (brdcst): Likewise.
9337         (deletereg): Likewise.
9338         (getprognum): Likewise.
9339         (getvers): Likewise.
9340         (get_inet_address): Likewise.
9341         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
9342         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9343         (svcudp_stat): Likewise.
9344         (svcudp_recv): Likewise.
9345         (svcudp_reply): Likewise.
9346         (svcudp_getargs): Likewise.
9347         (svcudp_freeargs): Likewise.
9348         (svcudp_destroy): Likewise.
9349         * sunrpc/xdr.c (xdr_bytes): Likewise.
9350         (xdr_netobj): Likewise.
9351         (xdr_string): Likewise.
9352         (xdr_wrapstring): Likewise.
9353         * sunrpc/xdr_float.c (xdr_float): Likewise.
9354         (xdr_double): Likewise.
9355         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
9356         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
9357         * sysvipc/ftok.c (ftok): Likewise.
9358         * sysvipc/msgctl.c (msgctl): Likewise.
9359         * sysvipc/msgget.c (msgget): Likewise.
9360         * sysvipc/msgrcv.c (msgrcv): Likewise.
9361         * sysvipc/msgsnd.c (msgsnd): Likewise.
9362         * sysvipc/semget.c (semget): Likewise.
9363         * sysvipc/semop.c (semop): Likewise.
9364         * sysvipc/shmat.c (shmat): Likewise.
9365         * sysvipc/shmctl.c (shmctl): Likewise.
9366         * sysvipc/shmdt.c (shmdt): Likewise.
9367         * sysvipc/shmget.c (shmget): Likewise.
9368         * termios/cfmakeraw.c (cfmakeraw): Likewise.
9369         * termios/speed.c (cfgetospeed): Likewise.
9370         (cfgetispeed): Likewise.
9371         (cfsetospeed): Likewise.
9372         (cfsetispeed): Likewise.
9373         * termios/tcflow.c (tcflow): Likewise.
9374         * termios/tcflush.c (tcflush): Likewise.
9375         * termios/tcgetattr.c (__tcgetattr): Likewise.
9376         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
9377         * termios/tcgetsid.c (tcgetsid): Likewise.
9378         * termios/tcsendbrk.c (tcsendbreak): Likewise.
9379         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
9380         * time/adjtime.c (__adjtime): Likewise.
9381         * time/dysize.c (dysize): Likewise.
9382         * time/ftime.c (ftime): Likewise.
9383         * time/getitimer.c (__getitimer): Likewise.
9384         * time/gettimeofday.c (__gettimeofday): Likewise.
9385         * time/gmtime.c (__gmtime_r): Likewise.
9386         (gmtime): Likewise.
9387         * time/localtime.c (__localtime_r): Likewise.
9388         (localtime): Likewise.
9389         * time/offtime.c (__offtime): Likewise.
9390         * time/settimeofday.c (__settimeofday): Likewise.
9391         * time/stime.c (stime): Likewise.
9392         * time/strftime_l.c (tm_diff): Likewise.
9393         (iso_week_days): Likewise.
9394         * time/strptime.c (strptime): Likewise.
9395         * time/time.c (time): Likewise.
9396         * time/timespec_get.c (timespec_get): Likewise.
9397         * time/tzset.c (tzset_internal): Likewise.
9398         (compute_change): Likewise.
9399         (__tz_compute): Likewise.
9400         * wcsmbs/btowc.c (__btowc): Likewise.
9401         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
9402         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
9403         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
9404         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
9405         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
9406         * wcsmbs/wcscat.c (__wcscat): Likewise.
9407         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
9408         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
9409         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
9410         * wcsmbs/wcscspn.c (wcscspn): Likewise.
9411         * wcsmbs/wcsdup.c (wcsdup): Likewise.
9412         * wcsmbs/wcslen.c (__wcslen): Likewise.
9413         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
9414         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
9415         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
9416         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
9417         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
9418         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
9419         * wcsmbs/wcsspn.c (wcsspn): Likewise.
9420         * wcsmbs/wcsstr.c (wcsstr): Likewise.
9421         * wcsmbs/wcstok.c (wcstok): Likewise.
9422         * wcsmbs/wctob.c (wctob): Likewise.
9423         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
9424         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
9425         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
9426         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
9427         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
9428         * wcsmbs/wmemset.c (__wmemset): Likewise.
9429         * wctype/wcfuncs.c (__towlower): Likewise.
9430         (__towupper): Likewise.
9431
9432         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
9433         (lll_unlock_elision): Add adapt_count parameter.
9434
9435 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9436
9437         * sysdeps/nptl/configure.ac: Do not give errors based on the
9438         results of top-level configure tests.
9439         * sysdeps/nptl/configure: Regenerated.
9440
9441         * configure.ac (libc_cv_Bgroup): Remove configure test.
9442         * configure: Regenerated.
9443         * config.make.in (have-Bgroup): Remove variable.
9444
9445         * configure.ac (sizeof_long_double): Remove configure test.
9446         * configure: Regenerated.
9447         * config.make.in (sizeof-long-double): Remove variable.
9448
9449         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
9450         * configure: Regenerated.
9451         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
9452         variable.
9453         (exceptions): Likewise.
9454         * sysdeps/arm/configure: Regenerated.
9455         * config.make.in (exceptions): Remove variable.
9456         * Makeconfig (uses-callbacks): Use -fexceptions instead of
9457         $(exceptions).
9458         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
9459         (CFLAGS-vdprintf_chk.c): Likewise.
9460         (CFLAGS-printf_chk.c): Likewise.
9461         (CFLAGS-fprintf_chk.c): Likewise.
9462         (CFLAGS-vprintf_chk.c): Likewise.
9463         (CFLAGS-vfprintf_chk.c): Likewise.
9464         (CFLAGS-gets_chk.c): Likewise.
9465         (CFLAGS-fgets_chk.c): Likewise.
9466         (CFLAGS-fgets_u_chk.c): Likewise.
9467         (CFLAGS-fread_chk.c): Likewise.
9468         (CFLAGS-fread_u_chk.c): Likewise.
9469         (CFLAGS-wprintf_chk.c): Likewise.
9470         (CFLAGS-fwprintf_chk.c): Likewise.
9471         (CFLAGS-vwprintf_chk.c): Likewise.
9472         (CFLAGS-vfwprintf_chk.c): Likewise.
9473         (CFLAGS-fgetws_chk.c): Likewise.
9474         (CFLAGS-fgetws_u_chk.c): Likewise.
9475         * libio/Makefile (CFLAGS-fileops.c): Likewise.
9476         (CFLAGS-fputc.c): Likewise.
9477         (CFLAGS-fputwc.c): Likewise.
9478         (CFLAGS-freopen64.c): Likewise.
9479         (CFLAGS-freopen.c): Likewise.
9480         (CFLAGS-fseek.c): Likewise.
9481         (CFLAGS-fseeko64.c): Likewise.
9482         (CFLAGS-fseeko.c): Likewise.
9483         (CFLAGS-ftello64.c): Likewise.
9484         (CFLAGS-ftello.c): Likewise.
9485         (CFLAGS-fwide.c): Likewise.
9486         (CFLAGS-genops.c): Likewise.
9487         (CFLAGS-getc.c): Likewise.
9488         (CFLAGS-getchar.c): Likewise.
9489         (CFLAGS-getwc.c): Likewise.
9490         (CFLAGS-getwchar.c): Likewise.
9491         (CFLAGS-iofclose.c): Likewise.
9492         (CFLAGS-iofflush.c): Likewise.
9493         (CFLAGS-iofgetpos64.c): Likewise.
9494         (CFLAGS-iofgetpos.c): Likewise.
9495         (CFLAGS-iofgets.c): Likewise.
9496         (CFLAGS-iofgetws.c): Likewise.
9497         (CFLAGS-iofputs.c): Likewise.
9498         (CFLAGS-iofputws.c): Likewise.
9499         (CFLAGS-iofread.c): Likewise.
9500         (CFLAGS-iofsetpos64.c): Likewise.
9501         (CFLAGS-iofsetpos.c): Likewise.
9502         (CFLAGS-ioftell.c): Likewise.
9503         (CFLAGS-iofwrite.c): Likewise.
9504         (CFLAGS-iogetdelim.c): Likewise.
9505         (CFLAGS-iogetline.c): Likewise.
9506         (CFLAGS-iogets.c): Likewise.
9507         (CFLAGS-iogetwline.c): Likewise.
9508         (CFLAGS-ioputs.c): Likewise.
9509         (CFLAGS-ioseekoff.c): Likewise.
9510         (CFLAGS-ioseekpos.c): Likewise.
9511         (CFLAGS-iosetbuffer.c): Likewise.
9512         (CFLAGS-iosetvbuf.c): Likewise.
9513         (CFLAGS-ioungetc.c): Likewise.
9514         (CFLAGS-ioungetwc.c): Likewise.
9515         (CFLAGS-oldfileops.c): Likewise.
9516         (CFLAGS-oldiofclose.c): Likewise.
9517         (CFLAGS-oldiofgetpos64.c): Likewise.
9518         (CFLAGS-oldiofgetpos.c): Likewise.
9519         (CFLAGS-oldiofsetpos64.c): Likewise.
9520         (CFLAGS-oldiofsetpos.c): Likewise.
9521         (CFLAGS-peekc.c): Likewise.
9522         (CFLAGS-putc.c): Likewise.
9523         (CFLAGS-putchar.c): Likewise.
9524         (CFLAGS-putwc.c): Likewise.
9525         (CFLAGS-putwchar.c): Likewise.
9526         (CFLAGS-rewind.c): Likewise.
9527         (CFLAGS-wfileops.c): Likewise.
9528         (CFLAGS-wgenops.c): Likewise.
9529         (CFLAGS-oldiofopen.c): Likewise.
9530         (CFLAGS-iofopen.c): Likewise.
9531         (CFLAGS-iofopen64.c): Likewise.
9532         (CFLAGS-oldtmpfile.c): Likewise.
9533         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
9534         (CFLAGS-fprintf.c): Likewise.
9535         (CFLAGS-printf.c): Likewise.
9536         (CFLAGS-vfwprintf.c): Likewise.
9537         (CFLAGS-vfscanf.c): Likewise.
9538         (CFLAGS-vfwscanf.c): Likewise.
9539         (CFLAGS-fscanf.c): Likewise.
9540         (CFLAGS-scanf.c): Likewise.
9541         (CFLAGS-isoc99_vfscanf.c): Likewise.
9542         (CFLAGS-isoc99_vscanf.c): Likewise.
9543         (CFLAGS-isoc99_fscanf.c): Likewise.
9544         (CFLAGS-isoc99_scanf.c): Likewise.
9545         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
9546         (CFLAGS-isoc99_fwscanf.c): Likewise.
9547         (CFLAGS-isoc99_vwscanf.c): Likewise.
9548         (CFLAGS-isoc99_vfwscanf.c): Likewise.
9549
9550         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
9551         after mkstemp64.
9552         * login/tst-utmp.c (do_prepare): Likewise.
9553         * rt/tst-aio.c (do_prepare): Likewise.
9554         * rt/tst-aio64.c (do_prepare): Likewise.
9555
9556 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9557
9558         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
9559         (__lll_lock_elision): Remove adapt_count decrement...
9560         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
9561         (__lll_trylock_elision): Likewise.
9562         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
9563         (__lll_unlock_elision): ... to here. And utilize
9564         new adapt_count parameter.
9565         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9566         (__lll_unlock_elision): Update to include adapt_count
9567         parameter.
9568         (lll_unlock_elision): Pass pointer to adapt_count
9569         variable.
9570
9571 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9572
9573         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
9574         Add elision adapt_count parameter to list of arguments.
9575         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9576         (lll_unlock_elision): Update with new parameter list
9577         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
9578         (lll_unlock_elision): Likewise.
9579         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
9580         (lll_unlock_elision): Likewise.
9581
9582 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9583
9584         [BZ #19122]
9585         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
9586         attribute_hidden.
9587
9588         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
9589         attribute_hidden.
9590         [IS_IN (rtld)] (__strdup): Likewise.
9591         [IS_IN (rtld)] (__strerror_r): Likewise.
9592         [IS_IN (rtld)] (__strsep_g): Likewise.
9593         [IS_IN (rtld)] (memchr): Likewise.
9594         [IS_IN (rtld)] (memcmp): Likewise.
9595         [IS_IN (rtld)] (memcpy): Likewise.
9596         [IS_IN (rtld)] (memmove): Likewise.
9597         [IS_IN (rtld)] (memset): Likewise.
9598         [IS_IN (rtld)] (rawmemchr): Likewise.
9599         [IS_IN (rtld)] (stpcpy): Likewise.
9600         [IS_IN (rtld)] (strchr): Likewise.
9601         [IS_IN (rtld)] (strcmp): Likewise.
9602         [IS_IN (rtld)] (strlen): Likewise.
9603         [IS_IN (rtld)] (strnlen): Likewise.
9604         [IS_IN (rtld)] (strsep): Likewise.
9605
9606         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
9607         attribute_hidden.
9608         [IS_IN (rtld)] (__strtoul_internal): Likewise.
9609
9610         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
9611         attribute_hidden.
9612         [IS_IN (rtld)] (__libc_sigaction): Likewise.
9613
9614         * include/setjmp.h (__longjmp): Add attribute_hidden.
9615         [IS_IN (rtld)] (__sigsetjmp): Likewise.
9616
9617         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
9618         Add attribute_hidden.
9619
9620         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
9621         [IS_IN (rtld)] (__open): Likewise.
9622         [IS_IN (rtld)] (__fcntl): Likewise.
9623
9624         * include/dirent.h (__opendirat): Add attribute_hidden.
9625         (__getdents): Likewise.
9626         (__getdents64): Likewise.
9627         (__alloc_dir): Likewise.
9628         [IS_IN (rtld)] (__closedir): Likewise.
9629         [IS_IN (rtld)] (__fdopendir): Likewise.
9630         [IS_IN (rtld)] (__readdir): Likewise.
9631         [IS_IN (rtld)] (__readdir64): Likewise.
9632         [IS_IN (rtld)] (__rewinddir): Likewise.
9633
9634         * include/dlfcn.h (_dl_catch_error): Moved to ...
9635         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
9636         attribute_hidden.
9637
9638         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
9639         (_itoa_word): Likewise.
9640
9641         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
9642         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
9643         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
9644         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
9645         (_dl_higher_prime_number): Likewise.
9646         (_dl_debug_printf_c): Likewise.
9647         (_dl_signal_cerror): Likewise.
9648         (_dl_receive_error): Likewise.
9649         (_dl_reloc_bad_type): Likewise.
9650         (_dl_resolve_conflicts): Likewise.
9651         (_dl_check_all_versions): Likewise.
9652         (_dl_check_map_versions): Likewise.
9653         (_dl_sort_fini): Likewise.
9654         (_dl_debug_initialize): Likewise.
9655         (_dl_init_paths): Likewise.
9656         (_dl_show_auxv): Likewise.
9657         (_dl_next_ld_env_entry): Likewise.
9658         (_dl_important_hwcaps): Likewise.
9659         (_dl_load_cache_lookup): Likewise.
9660         (_dl_update_slotinfo): Likewise.
9661         (_dl_show_scope): Likewise.
9662
9663         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
9664         attribute_hidden.
9665         (_wordcopy_fwd_dest_aligned): Likewise.
9666         (_wordcopy_bwd_aligned): Likewise.
9667         (_wordcopy_bwd_dest_aligned): Likewise.
9668
9669         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
9670         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9671         Likewise.
9672         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9673         Likewise.
9674         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
9675
9676 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9677
9678         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
9679         GCC 5 requirement.
9680
9681 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9682
9683         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
9684         test.
9685         * sysdeps/i386/configure: Regenerated.
9686         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
9687         code unconditional.
9688
9689         * configure.ac (libc_cv_asm_previous_directive): Remove configure
9690         test.
9691         (libc_cv_asm_popsection_directive): Likewise.
9692         * configure: Regenerated.
9693         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
9694         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
9695         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
9696         (__make_section_unallocated): Make definition unconditional.
9697         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
9698         Remove conditional definition.
9699         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
9700         (__make_section_unallocated): Likewise.
9701
9702         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
9703         * configure: Regenerated.
9704         * config.make.in (static-libgcc): Remove variable.
9705         * Makerules (build-shlib-helper): Use -static-libgcc instead of
9706         $(static-libgcc).
9707         (build-module-helper): Likewise.
9708
9709         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
9710         * configure: Regenerated.
9711
9712 2015-10-15  Florian Weimer  <fweimer@redhat.com>
9713
9714         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
9715         (struct char_buffer): New type.
9716         (char_buffer_start, char_buffer_size, char_buffer_error)
9717         (char_buffer_rewind, char_buffer_add): New functions.
9718         (ADDW): Remove macro, replaced by the char_buffer_add function.
9719         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
9720         of extend_alloca.  Make control flow more explicit.
9721
9722 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9723
9724         [BZ #19137]
9725         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
9726         Add -fomit-frame-pointer.
9727         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
9728
9729 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9730
9731         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
9732         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
9733         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
9734         only if !__GNUC_PREREQ (5,0).
9735         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
9736         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
9737         (INTERNAL_SYSCALL_NCS): Likewise.
9738         (LOADREGS_0): New macro for GCC 5.
9739         (ASMARGS_0): Likewise.
9740         (LOADREGS_1): Likewise.
9741         (ASMARGS_1): Likewise.
9742         (LOADREGS_2): Likewise.
9743         (ASMARGS_2): Likewise.
9744         (LOADREGS_3): Likewise.
9745         (ASMARGS_3): Likewise.
9746         (LOADREGS_4): Likewise.
9747         (ASMARGS_4): Likewise.
9748         (LOADREGS_5): Likewise.
9749         (ASMARGS_5): Likewise.
9750         (LOADREGS_6): Likewise.
9751         (ASMARGS_6): Likewise.
9752
9753 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9754
9755         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
9756         -fomit-frame-pointer.
9757         (CFLAGS-mmap64.c): Likewise.
9758         (CFLAGS-semtimedop.c): Likewise.
9759         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
9760         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
9761         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
9762         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
9763
9764 2015-10-15  Florian Weimer  <fweimer@redhat.com>
9765
9766         [BZ #18928]
9767         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
9768         _dl_pointer_guard member.
9769         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
9770         initializer.
9771         (security_init): Always set up pointer guard.
9772         (process_envvars): Do not process LD_POINTER_GUARD.
9773
9774 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
9775
9776         [BZ #19134]
9777         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
9778         (.LC2): Likewise.
9779         (.LC3): Likewise.
9780         (__lround): Do not add 0.5 to integer or out-of-range arguments.
9781
9782 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9783
9784         [BZ #19129]
9785         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
9786         r0 and r1.
9787
9788 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
9789
9790         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
9791
9792 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
9793
9794         * include/stap-probe.h: Fix macro definition formatting.
9795
9796 2015-10-14  Florian Weimer  <fweimer@redhat.com>
9797
9798         [BZ #19074]
9799         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
9800         load and store num_ifs.
9801
9802 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9803
9804         [BZ #18822]
9805         * sysdeps/unix/sysv/linux/sched_getaffinity.c
9806         (__sched_getaffinity_new): Add libc_hidden_proto and
9807         libc_hidden_def.
9808
9809 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9810
9811         [BZ #19007]
9812         * scripts/localplt.awk: Also allow GOT references.
9813         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
9814         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
9815         with "+ REL R_386_GLOB_DAT".
9816         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
9817         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
9818
9819 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9820
9821         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
9822         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9823         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
9824         Likewise.
9825         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
9826         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
9827         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
9828         INTERNAL_SYSCALLINTERNAL_SYSCALL and
9829         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9830         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
9831         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
9832         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
9833         Likewise.
9834         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
9835
9836 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
9837
9838         [BZ #19125]
9839         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
9840         <math_private.h> and <stdint.h>.
9841         (__llround): Avoid conversions to and from long long int, and
9842         subtractions, where those might raise spurious exceptions.
9843         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
9844         <math_private.h> and <stdint.h>.
9845         (__llroundf): Avoid conversions to and from long long int, and
9846         subtractions, where those might raise spurious exceptions.
9847
9848 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9849
9850         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
9851         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9852         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
9853         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
9854         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
9855         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
9856         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
9857         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
9858         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
9859         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
9860         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
9861         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
9862         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
9863         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
9864         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
9865         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
9866         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
9867         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
9868         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
9869         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
9870         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
9871         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
9872         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
9873         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
9874         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
9875         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
9876         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
9877         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
9878         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
9879         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
9880         (__xstat64_conv): Likewise.
9881         (__xstat32_conv): Likewise.
9882
9883 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9884
9885         * sysdeps/unix/sysv/linux/sysdep.h: New file.
9886         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
9887         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
9888         <sysdeps/unix/sysv/linux/sysdep.h>.
9889         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
9890         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
9891         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
9892         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
9893         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
9894         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
9895         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
9896         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
9897         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
9898         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
9899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9900         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
9901         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9902         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
9903         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
9904         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9905         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
9906         (sysdep-dl-routines): Add sysdep.
9907         [$(subdir) == nptl] (libpthread-routines): Likewise.
9908         [$(subdir) == rt] (librt-routines): Likewise.
9909         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
9910         PIC when branching to SYSCALL_ERROR_LABEL.
9911         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
9912         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
9913         <sysdeps/unix/sysv/linux/sysdep.h>.
9914         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
9915         (SYSCALL_ERROR_ERRNO): Removed.
9916         (SYSCALL_ERROR_HANDLER): Changed to empty.
9917         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
9918         (__syscall_error): New prototype.
9919         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
9920         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
9921
9922 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9923
9924         [BZ #19124]
9925         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
9926         (_dl_runtime_resolve_avx512): Make it a hidden alias of
9927         _dl_runtime_resolve_avx.
9928         (_dl_runtime_profile_avx512): Make it a hidden alias of
9929         _dl_runtime_profile_avx.
9930
9931 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
9932
9933         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
9934         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
9935         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
9936         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
9937
9938         [BZ #16422]
9939         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
9940         New configure test.
9941         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
9942         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
9943         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
9944         <math_private.h> and <stdint.h>.
9945         (__llrint): Avoid conversions to long long int where those might
9946         raise spurious exceptions.
9947         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
9948         <math_private.h> and <stdint.h>.
9949         (__llrintf): Avoid conversions to long long int where those might
9950         raise spurious exceptions.
9951
9952 2015-10-12  Andreas Schwab  <schwab@suse.de>
9953
9954         [BZ #18969]
9955         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
9956         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
9957         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
9958         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
9959         $(gen-locales).
9960         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
9961         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
9962         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
9963         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
9964         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
9965         $(gen-locales).
9966         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
9967         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
9968         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
9969         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
9970         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
9971         ($(objpfx)tst-ftell-active-handler.out)
9972         ($(objpfx)tst-ftell-append.out)
9973         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
9974         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
9975         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
9976         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
9977         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
9978         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
9979         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
9980         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
9981         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
9982         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
9983         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
9984         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
9985         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
9986         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
9987         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
9988         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
9989         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
9990         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
9991         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
9992         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
9993         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
9994         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
9995         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
9996         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
9997         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
9998         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
9999         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
10000         $(gen-locales).
10001         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
10002         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
10003         $(gen-locales).
10004         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
10005         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
10006         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
10007         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
10008         $(gen-locales).
10009         * libio/tst_wprintf2.c (main): Use explicit locale.
10010         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
10011
10012 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10013
10014         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
10015         __msg_sig_post.
10016         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
10017
10018 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10019
10020         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
10021         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10022
10023         * sysdeps/arm/libm-test-ulps: Regenerated.
10024
10025         [BZ #15470]
10026         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
10027
10028         [BZ #16399]
10029         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
10030         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
10031         and <fix-fp-int-convert-overflow.h>.
10032         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10033         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10034         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
10035         and <fix-fp-int-convert-overflow.h>.
10036         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
10037         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10038         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
10039         <fix-fp-int-convert-overflow.h>.
10040         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10041         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10042         * sysdeps/ieee754/dbl-64/s_lround.c: Include
10043         <fix-fp-int-convert-overflow.h>.
10044         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
10045         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10046         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
10047         and <fix-fp-int-convert-overflow.h>.
10048         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10049         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10050         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
10051         <limits.h> and <fix-fp-int-convert-overflow.h>.
10052         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10053         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10054         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
10055         and <fix-fp-int-convert-overflow.h>.
10056         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10057         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10058         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
10059         and <fix-fp-int-convert-overflow.h>.
10060         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10061         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10062         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
10063
10064 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
10065
10066         [BZ #18589]
10067         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
10068         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
10069         $(gen-locales).
10070
10071 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10072             Phil Blundell <pb@pbcl.net>
10073
10074         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
10075         * nptl/tst-cancel26.c: New file.
10076         * nptl/tst-cancel27.c: Likewise.
10077
10078 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
10079
10080         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
10081         __ILP32__ isn't defined.
10082         (lrint): Likewise.
10083         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
10084         (lrintf): Likewise.
10085         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
10086         (lrintl): Likewise.
10087         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
10088         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
10089         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
10090
10091 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10092
10093         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
10094         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10095
10096         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
10097         file.
10098         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
10099         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10100
10101 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10102
10103         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
10104         configure test.
10105         * sysdeps/i386/configure: Regenerated.
10106         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
10107         configure test.
10108         * sysdeps/x86_64/configure: Regenerated.
10109         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
10110         Make code unconditional.
10111
10112         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
10113         test.
10114         * sysdeps/i386/configure: Regenerated.
10115         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
10116         test.
10117         * sysdeps/x86_64/configure: Regenerated.
10118         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
10119         Make code unconditional.
10120         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
10121         Likewise.
10122         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
10123         Likewise.
10124         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10125         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
10126         code unconditional.
10127         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10128         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
10129         code unconditional.
10130         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10131         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
10132         code unconditional.
10133         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
10134         code unconditional.
10135         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10136         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
10137         code unconditional.
10138         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10139         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
10140         code unconditional.
10141         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10142         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
10143         code unconditional.
10144         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10145         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
10146         code unconditional.
10147         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10148         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
10149
10150         [BZ #19095]
10151         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
10152         mantissa to long int before shifting left.
10153
10154 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10155
10156         [BZ #19094]
10157         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
10158         <limits.h>.
10159         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10160         when result overflows but exception would not result from cast.
10161         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
10162         <limits.h>.
10163         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10164         when result overflows but exception would not result from cast.
10165         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
10166         <limits.h>.
10167         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10168         when result overflows but exception would not result from cast.
10169         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
10170         <limits.h>.
10171         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10172         when result overflows but exception would not result from cast.
10173         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
10174         <limits.h>.
10175         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10176         when result overflows but exception would not result from cast.
10177         * math/libm-test.inc (lrint_test_data): Add more tests.
10178         (llrint_test_data): Likewise.
10179
10180 2015-10-08  Roland McGrath  <roland@hack.frob.com>
10181
10182         [BZ #18872]
10183         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
10184         Move out from under [$(run-built-tests) = yes] conditional.
10185         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
10186         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
10187
10188 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
10189
10190         [BZ #18589]
10191         * string/Makefile (tests): Add bug-strcoll2.
10192         (LOCALES): Add cs_CZ.UTF-8.
10193         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
10194
10195         [BZ #18589]
10196         * string/bug-strcoll2.c: New file.
10197         * locale/categories.def: Revert commit
10198         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
10199         * locale/langinfo.h: Likewise.
10200         * locale/localeinfo.h: Likewise.
10201         * locale/C-collate.c: Likewise.
10202         * locale/programs/ld-collate.c (collate_output): Likewise.
10203         * string/strcoll_l.c (STRDIFF): Likewise.
10204         (STRCOLL): Likewise.
10205         * wcsmbs/wcscoll_l.c: Likewise.
10206
10207 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10208
10209         * math/libm-test.inc (lround_test_data): Do not expect the absence
10210         of "inexact" for some tests with non-integer arguments.
10211         (llround_test_data): Likewise.
10212
10213         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
10214         test.
10215         (libc_cv_cc_sse2avx): Likewise.
10216         * sysdeps/i386/configure: Regenerated.
10217         * sysdeps/i386/i686/multiarch/Makefile
10218         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
10219         [$(subdir) = math].
10220         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
10221         code unconditional.
10222         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10223         Likewise.
10224         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
10225         Likewise.
10226         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10227         Likewise.
10228         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
10229         test.
10230         (libc_cv_cc_sse2avx): Likewise.
10231         * sysdeps/x86_64/configure: Regenerated.
10232         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
10233         unconditional.
10234         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
10235         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
10236         unconditional.
10237         (_dl_runtime_profile)
10238         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
10239         conditional code.
10240         * sysdeps/x86_64/fpu/multiarch/Makefile
10241         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
10242         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
10243         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10244         * sysdeps/x86_64/fpu/multiarch/e_exp.c
10245         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10246         * sysdeps/x86_64/fpu/multiarch/e_log.c
10247         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10248         * sysdeps/x86_64/fpu/multiarch/s_atan.c
10249         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10250         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10251         Likewise.
10252         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10253         Likewise.
10254         * sysdeps/x86_64/fpu/multiarch/s_sin.c
10255         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10256         * sysdeps/x86_64/fpu/multiarch/s_tan.c
10257         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10258         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
10259         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
10260         (HAVE_SSE2AVX_SUPPORT): Likewise.
10261
10262 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
10263
10264         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
10265         instead of #pragma optimize.
10266
10267 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10268
10269         [BZ #17195]
10270         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
10271         as is similarly done in systrim and _int_free already.
10272
10273 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10274
10275         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
10276
10277 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10278
10279         [BZ #19088]
10280         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
10281         <limits.h>.
10282         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10283         overflows but exception would not result from cast.
10284         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
10285         and <limits.h>.
10286         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10287         overflows but exception would not result from cast.
10288         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
10289         <limits.h>.
10290         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10291         overflows but exception would not result from cast.
10292         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
10293         <limits.h>.
10294         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10295         overflows but exception would not result from cast.
10296         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
10297         <limits.h>.
10298         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10299         overflows but exception would not result from cast.
10300         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
10301         <limits.h>.
10302         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10303         overflows but exception would not result from cast.
10304         * math/libm-test.inc (lround_test_data): Add more tests.
10305         (llround_test_data): Likewise.
10306
10307 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
10308
10309         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
10310         (CFLAGS-ialloc.c): Ditto.
10311         (CFLAGS-scheck.c): Ditto.
10312
10313 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10314
10315         [BZ #19086]
10316         * manual/filesys.texi (Storage Allocation): Fix argument order for
10317         posix_fallocate64.
10318
10319 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10320
10321         [BZ #19085]
10322         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
10323         exponent below 48 inside case for non-overflowing exponent.
10324         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10325
10326 2015-10-07  Florian Weimer  <fweimer@redhat.com>
10327
10328         * iconvdata/cp737.h (from_idx): Add const.
10329         * iconvdata/cp775.h (from_idx): Likewise.
10330
10331 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10332
10333         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
10334         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10335         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
10336
10337         [BZ #19079]
10338         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
10339         file, conditioned on [!_LP64].
10340         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
10341         [!_LP64] (__lround): Do not define as function or alias.
10342         [!_LP64] (lround): Likewise.
10343         [!_LP64] (__lroundl): Likewise.
10344         [!_LP64] (lroundl): Likewise.
10345         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
10346         macro.
10347         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
10348         Likewise.
10349
10350 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10351
10352         * math/libm-test.inc (lrint_test_data): Add more tests.
10353         (llrint_test_data): Likewise.
10354         (lround_test_data): Likewise.
10355         (llround_test_data): Likewise.
10356
10357         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
10358         (llrint_test_data): Add tests used for lrint.
10359
10360         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
10361         test.
10362         * sysdeps/i386/configure: Regenerated.
10363         * sysdeps/i386/i686/multiarch/Makefile
10364         [$(config-cflags-sse4) = yes]: Make code unconditional.
10365         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10366         Likewise.
10367         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
10368         Likewise.
10369         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
10370         test.
10371         * sysdeps/x86_64/configure: Regenerated.
10372         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
10373         Make code unconditional.
10374         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10375         Likewise.
10376         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
10377         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
10378
10379         * scripts/rpm2dynsym.sh: Remove file.
10380
10381 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10382
10383         * configure.ac (libc_cv_cxx_thread_local): Define.
10384         * configure: Regenerate.
10385         * config.make.in (have-cxx-thread_local): Define.
10386         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
10387         (LDLIBS-tst-thread_local1): Define.
10388         (tests): Add tst-thread_local1.
10389         [have-cxx-thread_local != yes] (tests-unsupported): Add
10390         tst-thread_local1.
10391         * nptl/tst-thread_local1.cc: New file.
10392
10393 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10394
10395         [BZ #19078]
10396         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
10397         (u_thres): Likewise.
10398         (__expl): Determine whether to call __kernel_standard_l based on
10399         value of result, not argument.
10400
10401         * math/libm-test.inc (scalb_test_data): Add more expectations for
10402         the "inexact" exception.
10403
10404         [BZ #19077]
10405         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
10406         0.0L for argument 1.0L.
10407
10408         [BZ #19076]
10409         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
10410         constant 0.0L when computing infinite result.
10411
10412 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10413
10414         [BZ #10432]
10415         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
10416         malloc_usable_size.
10417
10418 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10419
10420         [BZ #19018]
10421         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
10422         Mangle function pointer before storing it.
10423         (__call_tls_dtors): Demangle function pointer before calling it.
10424
10425 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10426
10427         [BZ #19012]
10428         * iconv/gconv_db.c (gen_steps): Check for additional errors.
10429         Clean up on failure.
10430
10431 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
10432
10433         [BZ #19071]
10434         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
10435         long int variable to store possibly incremented high part of
10436         mantissa.
10437         * math/libm-test.inc (lround_test_data): Add tests used for
10438         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
10439         for tests requiring 64-bit long.  Do not condition tests on
10440         [TEST_FLOAT] unnecessarily.
10441         (llround_test_data): Add tests used for lround.  Add another
10442         expectation for the "inexact" exception.  Do not condition tests
10443         on [TEST_FLOAT] unnecessarily.
10444
10445         [BZ #887]
10446         [BZ #19049]
10447         [BZ #19050]
10448         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
10449         * sysdeps/ieee754/dbl-64/e_log10.c: Include
10450         <fix-int-fp-convert-zero.h>.
10451         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10452         * sysdeps/ieee754/dbl-64/e_log2.c: Include
10453         <fix-int-fp-convert-zero.h>.
10454         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10455         * sysdeps/ieee754/dbl-64/s_erf.c: Include
10456         <fix-int-fp-convert-zero.h>.
10457         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10458         * sysdeps/ieee754/dbl-64/s_logb.c: Include
10459         <fix-int-fp-convert-zero.h>.
10460         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10461         * sysdeps/ieee754/flt-32/e_log10f.c: Include
10462         <fix-int-fp-convert-zero.h>.
10463         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10464         * sysdeps/ieee754/flt-32/e_log2f.c: Include
10465         <fix-int-fp-convert-zero.h>.
10466         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10467         * sysdeps/ieee754/flt-32/s_erff.c: Include
10468         <fix-int-fp-convert-zero.h>.
10469         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10470         * sysdeps/ieee754/flt-32/s_logbf.c: Include
10471         <fix-int-fp-convert-zero.h>.
10472         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10473         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
10474         <fix-int-fp-convert-zero.h>.
10475         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10476         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
10477         <fix-int-fp-convert-zero.h>.
10478         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10479         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
10480         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
10481         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
10482         file.
10483         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
10484
10485 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
10486
10487         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
10488
10489 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
10490
10491         [BZ #19059]
10492         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
10493         overflowing computation.
10494         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10495         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10496         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10497         Likewise.
10498         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10499         Likewise.
10500         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10501         Likewise.
10502         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10503         Likewise.
10504         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10505         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10506         Likewise.
10507         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10508         Likewise.
10509         * math/libm-test.inc (nexttoward_test_data): Add more tests.
10510
10511         * nss/rewrite_field.c (__nss_rewrite_field): Use
10512         internal_function.
10513         * nss/valid_field.c (__nss_valid_field): Likewise.
10514         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
10515
10516 2015-10-02  Florian Weimer  <fweimer@redhat.com>
10517
10518         [BZ #18724]
10519         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
10520         (__nss_invalid_field_characters, __nss_valid_field)
10521         (__nss_valid_list_field, __nss_rewrite_field): Declare.
10522         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
10523         tst-field.c: New file.
10524         * nss/Makefile (routines): Add valid_field, rewrite_field.
10525         (tests-static): Define unconditionally.
10526         (tests): Include tests-static.
10527         [build-static-nss] (tests-static): Use append.
10528         [build-static-nss] (tests): Remove modification.
10529         * nss/getent.c (print_group): Call putgrent.  Report error.
10530         (print_gshadow): Call putsgent.  Report error.
10531         (print_passwd): Call putpwent.  Report error.
10532         (print_shadow): Call putspent.  Report error.
10533         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
10534         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
10535         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
10536         name, password, directory, shell fields for valid syntax.  Rewrite
10537         GECOS field to match syntax.
10538         * pwd/Makefile (tests): Add tst-putpwent.
10539         * pwd/tst-putpwent.c: New file.
10540         * grp/putgrent.c (putgrent): Convert to ISO function definition.
10541         Check grName, grpasswd, gr_mem fields for valid syntax.
10542         Change loop variable i to size_t.
10543         * grp/Makefile (tests): Add tst-putgrent.
10544         * grp/tst-putgrent.c: New file.
10545         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
10546         valid syntax.
10547         * shadow/Makefile (tests): Add tst-putspent.
10548         * shadow/tst-putspent.c: New file.
10549         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
10550         sg_mem fields for valid syntax.
10551         * gshadow/Makefile (tests): Add tst-putsgent.
10552         * gshadow/tst-putsgent.c: New file.
10553
10554 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10555
10556         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
10557         assembly instructions.
10558
10559 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10560
10561         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
10562         prefix from operands.
10563
10564 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
10565
10566         [BZ #16347]
10567         [BZ #19046]
10568         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
10569         <libc-internal.h>.
10570         (MAXLGM): Do not use diagnostic control macros.
10571         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
10572         threshold for ldbl-128ibm.
10573         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
10574         instead of multiplying by log then subtracting.
10575         * math/auto-libm-test-in: Add more tests of lgamma.
10576         * math/auto-libm-test-out: Regenerated.
10577
10578         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
10579         (TYPE_HEX_DIG): Likewise.
10580         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
10581         precisions when printing floating-point numbers.
10582         (check_float_internal): Likewise.
10583
10584 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10585
10586         [BZ #16620]
10587         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
10588         of log (10) rounded downward to 48 bits.
10589         (log10_low): Use corresponding low part of log (10).
10590
10591         [BZ #19032]
10592         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
10593         compute result as (x - x) / (x - x) not as 0 / 0.
10594         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
10595         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
10596
10597         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
10598         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
10599         and expm1.
10600         * math/auto-libm-test-out: Regenerated.
10601         * math/libm-test.inc (acos_test_data): Add more tests.
10602         (asin_test_data): Likewise.
10603         (asinh_test_data): Likewise.
10604         (atan_test_data): Likewise.
10605         (atanh_test_data): Likewise.
10606         (atan2_test_data): Likewise.
10607         (cbrt_test_data): Likewise.
10608         (ceil_test_data): Likewise.
10609         (copysign_test_data): Likewise.
10610         (cos_test_data): Likewise.
10611         (cosh_test_data): Likewise.
10612         (erf_test_data): Likewise.
10613         (erfc_test_data): Likewise.
10614         (exp_test_data): Likewise.
10615         (exp10_test_data): Likewise.
10616         (exp2_test_data): Likewise.
10617         (expm1_test_data): Likewise.
10618         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10619
10620 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
10621
10622         [BZ #19006]
10623         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
10624         to ...
10625         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
10626         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
10627         to ...
10628         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
10629         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
10630         to ...
10631         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
10632         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
10633         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
10634         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
10635         to ...
10636         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
10637         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
10638         Moved to ...
10639         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
10640         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
10641         Moved to ...
10642         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
10643         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
10644         to ...
10645         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
10646         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
10647         Moved to ...
10648         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
10649         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
10650         to ...
10651         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
10652         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
10653         Removed.
10654         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
10655         Likewise.
10656         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
10657         Likewise.
10658         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
10659         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
10660         Likewise.
10661         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
10662         Likewise.
10663         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
10664         Likewise.
10665         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
10666         Likewise.
10667         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
10668         Likewise.
10669         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
10670         Likewise.
10671         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
10672         Likewise.
10673         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
10674         Likewise.
10675         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
10676         Likewise.
10677         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
10678         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
10679         Likewise.
10680         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
10681         Likewise.
10682         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
10683         Likewise.
10684         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
10685         Likewise.
10686         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
10687         Likewise.
10688         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
10689         Replace ../i486/pthread_cond_timedwait.S with
10690         ../pthread_cond_timedwait.S.
10691
10692 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10693
10694         * math/libm-test.inc (acos_test_data): Refine expectations for
10695         errno and "inexact" exceptions.
10696         (acosh_test_data): Likewise.
10697         (asin_test_data): Likewise.
10698         (asinh_test_data): Likewise.
10699         (atan_test_data): Likewise.
10700         (atanh_test_data): Likewise.
10701         (atan2_test_data): Likewise.
10702         (cbrt_test_data): Likewise.
10703         (ceil_test_data): Likewise.
10704         (copysign_test_data): Likewise.
10705         (cosh_test_data): Likewise.
10706         (erf_test_data): Likewise.
10707         (erfc_test_data): Likewise.
10708         (exp_test_data): Likewise.
10709         (exp10_test_data): Likewise.
10710         (exp2_test_data): Likewise.
10711         (expm1_test_data): Likewise.
10712         (fabs_test_data): Likewise.
10713         (floor_test_data): Likewise.
10714         (fma_test_data): Likewise.
10715         (fmax_test_data): Likewise.
10716         (fmin_test_data): Likewise.
10717         (fmod_test_data): Likewise.
10718         (fpclassify_test_data): Likewise.
10719         (frexp_test_data): Likewise.
10720         (hypot_test_data): Likewise.
10721         (ilogb_test_data): Likewise.
10722         (isgreater_test_data): Likewise.
10723         (isgreaterequal_test_data): Likewise.
10724         (isinf_test_data): Likewise.
10725         (isless_test_data): Likewise.
10726         (islessequal_test_data): Likewise.
10727         (islessgreater_test_data): Likewise.
10728         (isnan_test_data): Likewise.
10729         (isnormal_test_data): Likewise.
10730         (issignaling_test_data): Likewise.
10731         (isunordered_test_data): Likewise.
10732         (j0_test_data): Likewise.
10733         (j1_test_data): Likewise.
10734         (jn_test_data): Likewise.
10735         (lgamma_test_data): Likewise.
10736         (lrint_test_data): Likewise.
10737         (llrint_test_data): Likewise.
10738         (log_test_data): Likewise.
10739         (log10_test_data): Likewise.
10740         (log1p_test_data): Likewise.
10741         (log2_test_data): Likewise.
10742         (logb_test_data): Likewise.
10743         (lround_test_data): Likewise.
10744         (llround_test_data): Likewise.
10745         (modf_test_data): Likewise.
10746         (nearbyint_test_data): Likewise.
10747         (nextafter_test_data): Likewise.
10748         (nexttoward_test_data): Likewise.
10749         (pow_test_data): Likewise.
10750         (remainder_test_data): Likewise.
10751         (remquo_test_data): Likewise.
10752         (rint_test_data): Likewise.
10753         (round_test_data): Likewise.
10754         (signbit_test_data): Likewise.
10755         (sinh_test_data): Likewise.
10756         (sqrt_test_data): Likewise.
10757         (tanh_test_data): Likewise.
10758         (tgamma_test_data): Likewise.
10759         (trunc_test_data): Likewise.
10760         (y0_test_data): Likewise.
10761         (y1_test_data): Likewise.
10762         (yn_test_data): Likewise.
10763         (significand_test_data): Likewise.
10764
10765 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
10766
10767         * manual/filesys.texi (Storage Allocation): Document that
10768         posix_fallocate emulation fails when fd is open with O_WRONLY.
10769
10770 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
10771
10772         [BZ #19016]
10773         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
10774         allow more cases with X^2 + Y^2 >= 0.5.
10775         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
10776         normal element in sum instead of special-casing based on values of
10777         arguments.
10778         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
10779         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
10780         -1 as normal element in sum instead of special-casing based on
10781         values of arguments.
10782         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
10783         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
10784         (__x2y2m1): Update comment.
10785         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
10786         as normal element in sum instead of special-casing based on values
10787         of arguments.
10788         * math/s_clog.c (__clog): Handle more cases using log1p without
10789         hypot.
10790         * math/s_clog10.c (__clog10): Likewise.
10791         * math/s_clog10f.c (__clog10f): Likewise.
10792         * math/s_clog10l.c (__clog10l): Likewise.
10793         * math/s_clogf.c (__clogf): Likewise.
10794         * math/s_clogl.c (__clogl): Likewise.
10795         * math/auto-libm-test-in: Add more tests of clog and clog10.
10796         * math/auto-libm-test-out: Regenerated.
10797         * sysdeps/i386/fpu/libm-test-ulps: Update.
10798         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10799
10800 2015-09-28  Martin Sebor  <msebor@redhat.com>
10801
10802         [BZ #18969]
10803         * string/Makefile (LOCALES): Define.
10804         (gen-locales.mk): Include.
10805         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
10806         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
10807         * string/tst-strxfrm2.c (do_test): Print the name of the locale
10808         on setlocale failure.
10809
10810 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
10811
10812         [BZ #18985]
10813         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
10814         (__strftime_internal): Likewise.
10815         * time/tst-strftime.c (do_bz18985): New test.
10816         (do_test): Call it.
10817
10818 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
10819
10820         [BZ #18956]
10821         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
10822         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
10823         extracting high part.
10824         * math/auto-libm-test-in: Add another test of pow.
10825         * math/auto-libm-test-out: Regenerated.
10826         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10827
10828 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
10829
10830         [BZ #18825]
10831         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
10832         New macro.
10833         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
10834         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10835         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
10836         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
10837         DBL_NARROW_EVAL, reloading the PIC register as needed.
10838         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
10839         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
10840         FLT_NARROW_EVAL.  Use separate return path for case when first
10841         argument is NaN.
10842         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
10843         DEFINE_LDBL_MIN.
10844         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
10845         PIC register.
10846         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
10847         math_check_force_underflow_nonneg.
10848         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
10849         underflow for subnormal result.
10850         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10851         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
10852         math_check_force_underflow_nonneg.
10853         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
10854         math_check_force_underflow.
10855         * sysdeps/x86_64/fpu/x86_64-math-asm.h
10856         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
10857         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
10858         DEFINE_LDBL_MIN.
10859         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
10860         * math/auto-libm-test-in: Add more tests of pow.
10861         * math/auto-libm-test-out: Regenerated.
10862
10863 2015-09-25  Florian Weimer  <fweimer@redhat.com>
10864
10865         * nss/bug17079.c (init_test_items): Add diagnostic for
10866         inconsistent entries.
10867         (test_buffer_size): Skip inconsistent entries.
10868
10869 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
10870
10871         [BZ #13304]
10872         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
10873         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
10874         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
10875
10876         [BZ #13304]
10877         * sysdeps/microblaze/s_fma.c: New file.
10878         * sysdeps/microblaze/s_fmaf.c: Likewise.
10879         * sysdeps/microblaze/sfp-machine.h: Likewise.
10880
10881 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
10882
10883         [BZ #17250]
10884         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
10885         member.
10886
10887 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
10888
10889         [BZ #18803]
10890         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
10891         (MO): New macro.
10892         (__ieee754_hypot) [PIC]: Load PIC register.
10893         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
10894         DBL_NARROW_EVAL.
10895         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
10896         math_check_force_underflow_nonneg in case where result might be
10897         tiny.
10898         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
10899         Likewise.
10900         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
10901         Likewise.
10902         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
10903         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
10904         * math/auto-libm-test-in: Add more tests of hypot.
10905         * math/auto-libm-test-out: Regenerated.
10906
10907 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
10908
10909         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
10910
10911 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
10912
10913         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
10914         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
10915         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
10916         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
10917         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
10918         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
10919         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
10920
10921         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
10922         LOAD_PIC_REG.
10923
10924         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
10925         (FLT_CHECK_FORCE_UFLOW): Likewise.
10926         (DBL_CHECK_FORCE_UFLOW): Likewise.
10927         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
10928         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
10929         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
10930         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10931         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10932         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
10933         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
10934         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
10935         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
10936         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10937         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
10938         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
10939         (flt_min): Replace with use of DEFINE_FLT_MIN.
10940         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
10941         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
10942         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10943         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
10944         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
10945         (flt_min): Replace with use of DEFINE_FLT_MIN.
10946         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
10947         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
10948         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10949         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
10950         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
10951         (flt_min): Replace with use of DEFINE_FLT_MIN.
10952         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
10953         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
10954         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
10955         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
10956         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
10957         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
10958         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
10959         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
10960         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10961         (__atan): Use DBL_CHECK_FORCE_UFLOW.
10962         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
10963         (flt_min): Replace with use of DEFINE_FLT_MIN.
10964         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
10965         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
10966         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10967         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
10968         main computation.
10969         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
10970         (flt_min): Replace with use of DEFINE_FLT_MIN.
10971         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
10972         main computation.
10973         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
10974         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10975         (MO): New macro.
10976         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
10977         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
10978         (flt_min): Replace with use of DEFINE_FLT_MIN.
10979         (MO): New macro.
10980         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
10981         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
10982         (__log1pl): Use MO.
10983
10984         [BZ #19003]
10985         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
10986         $(config-cflags-nofma).
10987
10988 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10989
10990         * sysdeps/aarch64/libm-test-ulps: Regenerated.
10991
10992 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
10993
10994         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
10995         (TWO127): Likewise.
10996
10997         * sysdeps/generic/math_private.h (fabs_tg): New macro.
10998         (min_of_type): Likewise.
10999         (math_check_force_underflow): Likewise.
11000         (math_check_force_underflow_nonneg): Likewise.
11001         (math_check_force_underflow_complex): Likewise.
11002         * math/e_exp2l.c (__ieee754_exp2l): Use
11003         math_check_force_underflow_nonneg.
11004         * math/k_casinh.c (__kernel_casinh): Likewise.
11005         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11006         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11007         * math/s_catan.c (__catan): Use
11008         math_check_force_underflow_complex.
11009         * math/s_catanf.c (__catanf): Likewise.
11010         * math/s_catanh.c (__catanh): Likewise.
11011         * math/s_catanhf.c (__catanhf): Likewise.
11012         * math/s_catanhl.c (__catanhl): Likewise.
11013         * math/s_catanl.c (__catanl): Likewise.
11014         * math/s_ccosh.c (__ccosh): Likewise.
11015         * math/s_ccoshf.c (__ccoshf): Likewise.
11016         * math/s_ccoshl.c (__ccoshl): Likewise.
11017         * math/s_cexp.c (__cexp): Likewise.
11018         * math/s_cexpf.c (__cexpf): Likewise.
11019         * math/s_cexpl.c (__cexpl): Likewise.
11020         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
11021         * math/s_clog10.c (__clog10): Likewise.
11022         * math/s_clog10f.c (__clog10f): Likewise.
11023         * math/s_clog10l.c (__clog10l): Likewise.
11024         * math/s_clogf.c (__clogf): Likewise.
11025         * math/s_clogl.c (__clogl): Likewise.
11026         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
11027         * math/s_csinf.c (__csinf): Likewise.
11028         * math/s_csinh.c (__csinh): Likewise.
11029         * math/s_csinhf.c (__csinhf): Likewise.
11030         * math/s_csinhl.c (__csinhl): Likewise.
11031         * math/s_csinl.c (__csinl): Likewise.
11032         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
11033         * math/s_csqrtf.c (__csqrtf): Likewise.
11034         * math/s_csqrtl.c (__csqrtl): Likewise.
11035         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
11036         * math/s_ctanf.c (__ctanf): Likewise.
11037         * math/s_ctanh.c (__ctanh): Likewise.
11038         * math/s_ctanhf.c (__ctanhf): Likewise.
11039         * math/s_ctanhl.c (__ctanhl): Likewise.
11040         * math/s_ctanl.c (__ctanl): Likewise.
11041         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
11042         instead of volatile.
11043         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
11044         math_check_force_underflow.
11045         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
11046         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
11047         volatile when forcing underflow.
11048         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11049         math_check_force_underflow_nonneg.
11050         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11051         Likewise.
11052         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
11053         math_check_force_underflow.
11054         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11055         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11056         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
11057         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
11058         math_check_force_underflow_nonneg.
11059         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
11060         math_check_force_underflow.
11061         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
11062         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
11063         instead of volatile.
11064         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
11065         math_check_force_underflow.
11066         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11067         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11068         math_check_force_underflow_nonneg.
11069         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
11070         math_check_force_underflow.
11071         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
11072         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
11073         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
11074         math_check_force_underflow_nonneg.
11075         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11076         Likewise.
11077         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
11078         math_check_force_underflow.
11079         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11080         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11081         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
11082         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
11083         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11084         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
11085         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
11086         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
11087         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
11088         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
11089         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
11090         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
11091         Likewise.
11092         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
11093         math_check_force_underflow_nonneg.
11094         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11095         Likewise.
11096         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
11097         math_check_force_underflow.
11098         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11099         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
11100         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11101         Likewise.
11102         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
11103         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
11104         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
11105         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
11106         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
11107         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
11108         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
11109         instead of volatile.
11110         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
11111         math_check_force_underflow.
11112         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
11113         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
11114         math_check_force_underflow.
11115         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
11116         Likewise.
11117         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11118         Use math_check_force_underflow_nonneg.
11119         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
11120         math_check_force_underflow.
11121         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
11122         Likewise.
11123         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11124         Likewise.
11125         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11126         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
11127         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
11128         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
11129         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
11130         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
11131         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
11132         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
11133         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
11134         math_check_force_underflow_nonneg.
11135         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
11136         math_check_force_underflow.
11137         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11138         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
11139         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
11140         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
11141         math_check_force_underflow_nonneg.
11142         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
11143         math_check_force_underflow.
11144         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
11145         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
11146         instead of volatile.
11147         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
11148         math_check_force_underflow.
11149
11150         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
11151         * stdlib/strtod_l.c: Include <math_private.h>.
11152         (overflow_value): Use math_narrow_eval.
11153         (underflow_value): Likewise.
11154         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11155         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11156         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
11157         (__ieee754_gamma_r): Likewise.
11158         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
11159         Likewise.
11160         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
11161         Likewise.
11162         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
11163         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
11164         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
11165         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11166         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11167         (__ieee754_gammaf_r): Likewise.
11168         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11169         Likewise.
11170         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
11171         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
11172         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11173         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11174         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
11175         volatile.
11176         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11177         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
11178         math_narrow_eval.
11179         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11180         Likewise.
11181         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11182         Likewise.
11183         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
11184         Likewise.
11185         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
11186         volatile.
11187         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11188         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
11189         math_narrow_eval.
11190         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11191         Likewise.
11192         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11193         Likewise.
11194
11195 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
11196
11197         * nptl/Versions: Remove ignored symbols.
11198
11199 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11200
11201         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
11202         * nss/Makefile (tests): Update.
11203
11204 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11205
11206         * nss/bug18287.c: New file.
11207         * nss/Makefile (tests): Add bug18287.
11208
11209 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11210
11211         * mach/Versions (__mach_host_self_): Add symbol.
11212
11213 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11214
11215         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
11216         vm_page_size.
11217
11218 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11219
11220         Really fix sysdeps/i386/fpu/s_scalbn.S build
11221
11222         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
11223         (libc: GLIBC_2_22): Remove unused version set.
11224
11225 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11226
11227         * config.make.in (enable-timezone-tools): New variable.
11228         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
11229         (enable_timezone_tools): Export to generated files.
11230         * configure: Regenerate.
11231         * INSTALL: Regenerate.
11232         * manual/install.texi (--disable-timezone-tools): Document new flag.
11233         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
11234         ifeq ($(enable-timezone-tools),yes) check.
11235
11236 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11237
11238         * timezone/Makefile: Revert previous change.
11239
11240         [BZ #18980]
11241         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
11242         (DEFINE_DBL_MIN): Likewise.
11243         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11244         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11245         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11246         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11247         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
11248         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11249         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11250         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
11251         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
11252         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11253         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11254         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
11255         (flt_min): Replace with use of DEFINE_FLT_MIN.
11256         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11257         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
11258         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11259         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11260         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
11261         (flt_min): Replace with use of DEFINE_FLT_MIN.
11262         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11263         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
11264         (flt_min): Replace with use of DEFINE_FLT_MIN.
11265         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11266         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
11267         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
11268         (__ieee754_hypot): Use DBL_NARROW_EVAL.
11269         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
11270         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
11271         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
11272         (__ieee754_pow): Use DBL_NARROW_EVAL.
11273         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
11274         (__ieee754_powf): Use FLT_NARROW_EVAL.
11275         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
11276         (__ieee754_expf_sse2): Convert double-precision result to single
11277         precision.
11278         * sysdeps/i386/fpu/libm-test-ulps: Update.
11279
11280 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11281
11282         * timezone/Makefile: Ignore unused variable errors due to private.h
11283         (time_t_min) and (time_t_max).
11284         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
11285         Likewise.
11286
11287 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11288
11289         [BZ #18981]
11290         * sysdeps/i386/fpu/i386-math-asm.h: New file.
11291         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
11292         (__ieee754_scalb): Use DBL_NARROW_EVAL.
11293         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
11294         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
11295         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
11296         (__scalbn): Use DBL_NARROW_EVAL.
11297         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
11298         (__scalbnf): Use FLT_NARROW_EVAL.
11299
11300 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11301
11302         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
11303         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
11304         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
11305         * stdio-common/printf_fp.c (___printf_fp):
11306         Use signbit to get the sign. Use isinf macro to allow inlining.
11307         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
11308         * stdio-common/printf_size.c (__printf_size): Likewise.
11309
11310 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11311
11312         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
11313
11314 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11315
11316         [BZ #18980]
11317         * sysdeps/generic/math_private.h: Include <float.h>.
11318         (math_narrow_eval): New macro.
11319         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11320         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
11321         math_narrow_eval on overflowing return value.
11322         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
11323         Likewise.
11324         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11325         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
11326         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
11327         Likewise.
11328         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11329
11330 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11331
11332         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
11333         * math/Makefile: Remove isinf_ns.c.
11334         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
11335         * math/multc3.c (__multc3): Likewise.
11336         * math/s_casin.c (__casin): Likewise.
11337         * math/s_casinf.c (__casinf): Likewise.
11338         * math/s_casinl.c (__casinl): Likewise.
11339         * math/s_cproj.c (__cproj): Likewise.
11340         * math/s_cprojf.c (__cprojf): Likewise.
11341         * math/s_cprojl.c (__cprofl): Likewise.
11342         * math/s_ctan.c (__ctan): Likewise.
11343         * math/s_ctanf.c (__ctanf): Likewise.
11344         * math/s_ctanh.c (__ctanh): Likewise.
11345         * math/s_ctanhf.c (__ctanhf): Likewise.
11346         * math/s_ctanhl.c (__ctanhl): Likewise.
11347         * math/s_ctanl.c (__ctanl): Likewise.
11348         * math/w_fmod.c (__fmod): Likewise.
11349         * math/w_fmodf.c (__fmodf): Likewise.
11350         * math/w_fmodl.c (_fmodl): Likewise.
11351         * math/w_remainder.c (__remainder): Likewise.
11352         * math/w_remainderf.c (__remainderf): Likewise.
11353         * math/w_remainderl.c (__remainderl): Likewise.
11354         * math/w_scalb.c (__scalb): Likewise.
11355         * math/w_scalbf.c (__scalbf): Likewise.
11356         * math/w_scalbl.c (__scalbl): Likewise.
11357         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
11358         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
11359         with isinf.
11360         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
11361         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
11362         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
11363         __isinf_nsf with isinf.
11364         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
11365         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
11366         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
11367         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
11368         with isinf.
11369         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
11370         __isinf_nsl with isinf.
11371         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
11372         with isinf.
11373         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
11374         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
11375         __isinf_nsl with isinf.
11376         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
11377         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
11378         with isinf.
11379
11380 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11381
11382         * resolv/base64.c (rcsid): Remove unused static.
11383         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
11384         static.  (tqpi1): Likewise.
11385         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
11386         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
11387         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
11388         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
11389         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
11390         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
11391         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
11392         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
11393         Likewise.
11394
11395 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
11396
11397         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
11398         <nptl/pthreadP.h>.
11399         (_longjmp_unwind): Use __libc_ptf_call.
11400         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
11401
11402 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
11403
11404         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
11405         * sysdeps/arm/__longjmp.S: Likewise.
11406
11407 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11408
11409         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
11410         Use __builtin_signbit.
11411         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
11412         Use __builtin_signbitf.
11413         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
11414         Use __builtin_signbitl.
11415         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
11416         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
11417
11418 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11419
11420         [BZ #15367]
11421         [BZ #17441]
11422
11423         * math/Makefile: Build test-snan.c with -fsignaling-nans.
11424         * math/math.h (fpclassify): Use __builtin_fpclassify when
11425         available.  (signbit): Use __builtin_signbit(f/l).
11426         (isfinite): Use__builtin_isfinite.  (isnormal): Use
11427         __builtin_isnormal.  (isnan): Use __builtin_isnan.
11428         (isinf): Use __builtin_isinf_sign.
11429
11430 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11431
11432         * benchtests/Makefile: Add bench-math-inlines, link with libm.
11433         * benchtests/bench-math-inlines.c: New benchmark.
11434         * benchtests/bench-util.h: New file.
11435         * benchtests/bench-util.c: New file.
11436         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
11437
11438 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
11439
11440         * elf/tst-dlmopen1.c: Define TEST_SO.
11441         (do_test): Use TEST_SO.
11442
11443         * elf/dl-load.c: Include libc-internal.h.
11444         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
11445
11446 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11447
11448         [BZ #17887]
11449         * time/strptime_l.c (__strptime_internal): Make %z accept
11450         [+-]HH:MM time zones.
11451
11452 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11453
11454         [BZ #17886]
11455         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
11456         valid time zone.
11457
11458 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
11459
11460         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
11461         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
11462         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11463         (__ASSUME_FDATASYNC): Delete.
11464
11465 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11466
11467         * conform/linknamespace.pl: Require weak undefined symbols to be
11468         in the standard namespace.
11469         (%strong_syms): Rename to %seen_syms.
11470         (%strong_seen): Rename to %seen_where.
11471
11472 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11473
11474         [BZ #18970]
11475         * misc/error.c (error): Replace pthread_setcancelstate with
11476         __pthread_setcancelstate.
11477         (error_at_line): Likewise.
11478         * posix/wordexp.c (parse_comm): Likewise.
11479         * stdlib/fmtmsg.c (fmtmsg): Likewise.
11480         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
11481         (__pthread_setcancelstate): This.
11482         (pthread_setcancelstate): Add an alias.
11483         * nptl/nptl-init.c (pthread_functions): Replace
11484         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
11485         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
11486         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
11487         hidden_proto.
11488         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
11489         it with hidden_def.
11490         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
11491         (pthread_setcancelstate): Renamed to ...
11492         (__pthread_setcancelstate): This.
11493         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
11494         __libc_ptf_call with __pthread_setcancelstate.
11495
11496 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11497             Andreas Schwab  <schwab@suse.de>
11498
11499         [BZ #17118]
11500         * math/s_ctan.c (__ctan): Determine sign of zero real part of
11501         result when imaginary part of argument is infinite using sine and
11502         cosine.
11503         * math/s_ctanf.c (__ctanf): Likewise.
11504         * math/s_ctanl.c (__ctanl): Likewise.
11505         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
11506         of result when real part of argument is infinite using sine and
11507         cosine.
11508         * math/s_ctanhf.c (__ctanhf): Likewise.
11509         * math/s_ctanhl.c (__ctanhl): Likewise.
11510         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
11511         (ctanh_test_data): Add more tests of ctanh.
11512
11513 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11514
11515         [BZ #15384]
11516         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
11517         bit-mask as in subtraction.
11518         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
11519         Likewise.
11520         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
11521         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
11522         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
11523
11524         [BZ #18951]
11525         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
11526         underflow exception for small results.
11527         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11528         Likewise.
11529         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11530         Likewise.
11531         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11532         Likewise.
11533         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11534         Likewise.
11535         * math/auto-libm-test-in: Add more tests of tgamma.
11536         * math/auto-libm-test-out: Regenerated.
11537
11538 2015-09-17  Andreas Schwab  <schwab@suse.de>
11539
11540         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
11541
11542 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11543
11544         [BZ #18977]
11545         * math/bits/mathcalls.h
11546         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
11547         not declare.
11548         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
11549         Likewise.
11550         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
11551         Likewise.
11552         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
11553         Likewise.
11554         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
11555         Likewise.
11556         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
11557         Likewise.
11558         * conform/data/math.h-data
11559         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
11560         function.
11561         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
11562         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
11563         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
11564         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
11565         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
11566         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
11567         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
11568         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
11569         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
11570         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
11571         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
11572
11573         [BZ #6803]
11574         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
11575         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
11576         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
11577         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
11578         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
11579         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
11580         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
11581         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
11582         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11583         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
11584         Likewise.
11585         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11586         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
11587         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
11588         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
11589         long_double_symbol calls.
11590         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
11591         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
11592         strong alias of __ldexpl.
11593         (scalbnl): Define using long_double_symbol.
11594         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
11595         Remove alias.
11596         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
11597         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
11598         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
11599         (scalbln_test_data): Add more errno expectations.
11600
11601 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
11602
11603         Cache the host port like we cache the task port.  This way we do not
11604         need to call the kernel just to get the port.  Furthermore, we no
11605         longer increase the reference count on every invocation of
11606         `mach_host_self'.
11607
11608         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
11609         Protect declarations against the macro expansion.
11610         * mach/mach_init.c (__mach_host_self_): New variable.
11611         (mach_init): Initialize `__mach_host_self_'.
11612         * mach/mach_init.h (__mach_host_self_): New declaration.
11613         (__mach_host_self, mach_host_self): New macros.
11614         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
11615         Release reference.
11616
11617 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11618
11619         [BZ #4404]
11620         * po/de.po: Update from Translation Project.
11621
11622         [BZ #16415]
11623         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
11624         (__expm1l): Remove code to handle positive infinity and overflow.
11625         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
11626         variable.
11627         (__expm1l): Remove code to handle positive infinity and overflow.
11628
11629 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11630             Paul Pluzhnikov  <ppluzhnikov@google.com>
11631
11632         [BZ #18872]
11633         * stdio-common/Makefile (tst-printf-bz18872): New test.
11634         (tst-printf-bz18872-mem.out): Likewise.
11635         * stdio-common/tst-printf-bz18872.sh: Generate new test.
11636         * stdio-common/vfprintf.c: Fix memory leaks.
11637
11638 2015-09-16  Andreas Schwab  <schwab@suse.de>
11639
11640         [BZ #17244]
11641         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
11642         Remove extra va_start/va_end calls.
11643
11644         [BZ #17243]
11645         * posix/execl.c (execl): Add missing va_end.
11646         * posix/execle.c (execle): Likewise.
11647         * posix/execlp.c (execlp): Likewise.
11648
11649 2015-09-15  Roland McGrath  <roland@hack.frob.com>
11650
11651         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
11652         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
11653
11654 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
11655
11656         [BZ #18967]
11657         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
11658         undefine around includes of <bits/mathcalls.h>.
11659         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
11660         not declare function.
11661         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
11662         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
11663         (scalb): Likewise.
11664         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
11665         not define macro.
11666         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
11667         variable.
11668         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
11669         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
11670         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
11671
11672         [BZ #18857]
11673         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
11674         return non-finite argument without doing ordered comparisons on
11675         it.
11676
11677         [BZ #16296]
11678         * math/fenv.h (fegetround): Use __attribute_pure__.
11679         * include/fenv.h (__fegetround): Likewise.
11680
11681         [BZ #18595]
11682         * math/s_ctan.c (__ctan): Force underflow exception for results
11683         whose real or imaginary part has small absolute value.
11684         * math/s_ctanf.c (__ctanf): Likewise.
11685         * math/s_ctanh.c (__ctanh): Likewise.
11686         * math/s_ctanhf.c (__ctanhf): Likewise.
11687         * math/s_ctanhl.c (__ctanhl): Likewise.
11688         * math/s_ctanl.c (__ctanl): Likewise.
11689         * math/auto-libm-test-in: Do not allow missing underflow for ctan
11690         and ctanh.  Add more tests of ctan and ctanh.
11691
11692         [BZ #15918]
11693         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
11694         handling of cases where one argument is an infinity.
11695
11696         [BZ #18875]
11697         [BZ #18966]
11698         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
11699         (MO): New macro.
11700         (__ieee754_exp10): For small results, force underflow exception
11701         and remove excess range and precision from return value.
11702         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
11703         (MO): New macro.
11704         (__ieee754_exp10f): For small results, force underflow exception
11705         and remove excess range and precision from return value.
11706         * math/auto-libm-test-in: Add more tests of exp10.
11707         * math/auto-libm-test-out: Regenerated.
11708
11709 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
11710
11711         [BZ #18875]
11712         [BZ #18961]
11713         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
11714         (MO): New macro.
11715         (__ieee754_exp): For small results, force underflow exception and
11716         remove excess range and precision from return value.
11717         (__exp_finite): Likewise.
11718         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
11719         (MO): New macro.
11720         (__ieee754_expf): For small results, force underflow exception and
11721         remove excess range and precision from return value.
11722         (__expf_finite): Likewise.
11723         * math/auto-libm-test-in: Add more tests of exp.
11724         * math/auto-libm-test-out: Regenerated.
11725
11726         [BZ #16521]
11727         [BZ #18875]
11728         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
11729         small results.
11730         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
11731         (MO): New macro.
11732         (__ieee754_exp2): For small results, force underflow exception and
11733         remove excess range and precision from return value.
11734         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
11735         (MO): New macro.
11736         (__ieee754_exp2f): For small results, force underflow exception
11737         and remove excess range and precision from return value.
11738         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
11739         (MO): New macro.
11740         (__ieee754_exp2l): Force underflow exception for small results.
11741         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
11742         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
11743         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
11744         (MO): New macro.
11745         (__ieee754_exp2l): Force underflow exception for small results.
11746         * math/auto-libm-test-in: Add more tests or exp2.
11747         * math/auto-libm-test-out: Regenerated.
11748
11749 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
11750
11751         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
11752
11753         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
11754         /dev/null.
11755
11756 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11757
11758         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
11759         io fs process)): Drop spurious backslash.
11760
11761 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
11762
11763         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
11764         Use sysinfo system call instead of parsing /proc/meminfo.
11765         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
11766         Likewise.
11767
11768 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
11769
11770         [BZ #16985]
11771         * programs/localedef.c (main): Display argv[remaining] when
11772         output_path is NULL.
11773
11774 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
11775
11776         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
11777         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
11778         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
11779         tanh.
11780         * math/auto-libm-test-out: Regenerated.
11781         * sysdeps/i386/fpu/libm-test-ulps: Update.
11782         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
11783         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11784         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11785
11786 2015-09-11  Roland McGrath  <roland@hack.frob.com>
11787
11788         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
11789         Use 'override' keyword to freeze the value here, preventing
11790         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
11791
11792 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
11793
11794         [BZ #14912]
11795         * sysdeps/aarch64/bits/atomic.h: Move to ...
11796         * sysdeps/aarch64/atomic-machine.h: ...here.
11797         (_AARCH64_BITS_ATOMIC_H): Rename macro to
11798         _AARCH64_ATOMIC_MACHINE_H.
11799         * sysdeps/alpha/bits/atomic.h: Move to ...
11800         * sysdeps/alpha/atomic-machine.h: ...here.
11801         * sysdeps/arm/bits/atomic.h: Move to ...
11802         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
11803         * bits/atomic.h: Move to ...
11804         * sysdeps/generic/atomic-machine.h: ...here.
11805         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11806         * sysdeps/i386/bits/atomic.h: Move to ...
11807         * sysdeps/i386/atomic-machine.h: ...here.
11808         * sysdeps/ia64/bits/atomic.h: Move to ...
11809         * sysdeps/ia64/atomic-machine.h: ...here.
11810         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
11811         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
11812         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11813         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
11814         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
11815         * sysdeps/microblaze/bits/atomic.h: Move to ...
11816         * sysdeps/microblaze/atomic-machine.h: ...here.
11817         * sysdeps/mips/bits/atomic.h: Move to ...
11818         * sysdeps/mips/atomic-machine.h: ...here.
11819         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
11820         * sysdeps/powerpc/bits/atomic.h: Move to ...
11821         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
11822         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
11823         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
11824         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
11825         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
11826         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
11827         <atomic-machine.h> instead of <bits/atomic.h>.
11828         * sysdeps/s390/bits/atomic.h: Move to ...
11829         * sysdeps/s390/atomic-machine.h: ...here.
11830         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
11831         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
11832         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11833         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
11834         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
11835         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
11836         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
11837         * sysdeps/tile/bits/atomic.h: Move to ...
11838         * sysdeps/tile/atomic-machine.h: ...here.
11839         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
11840         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
11841         <sysdeps/tile/atomic-machine.h> instead of
11842         <sysdeps/tile/bits/atomic.h>.
11843         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11844         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
11845         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
11846         <sysdeps/tile/atomic-machine.h> instead of
11847         <sysdeps/tile/bits/atomic.h>.
11848         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11849         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
11850         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
11851         <sysdeps/arm/atomic-machine.h> instead of
11852         <sysdeps/arm/bits/atomic.h>.
11853         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
11854         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
11855         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11856         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
11857         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
11858         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11859         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
11860         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
11861         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
11862         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
11863         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
11864         * sysdeps/x86_64/bits/atomic.h: Move to ...
11865         * sysdeps/x86_64/atomic-machine.h: ...here.
11866         * include/atomic.h: Include <atomic-machine.h> instead of
11867         <bits/atomic.h>.
11868
11869         * sysdeps/mips/mips32/libm-test-ulps: Update.
11870         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11871
11872         [BZ #18952]
11873         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
11874         not convert non-integer negative arguments to int to determine the
11875         value of signgam.
11876         * math/auto-libm-test-in: Add more tests of lgamma.
11877         * math/auto-libm-test-out: Regenerated.
11878
11879         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
11880         cosh, csqrt, erfc, expm1 and lgamma.
11881         * math/auto-libm-test-out: Regenerated.
11882         * sysdeps/i386/fpu/libm-test-ulps: Update.
11883         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11884
11885 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
11886
11887         [BZ #2542]
11888         [BZ #2543]
11889         [BZ #2558]
11890         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
11891         __lgamma_neg for arguments from -28.0 to -2.0.
11892         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
11893         __lgamma_negf for arguments from -15.0 to -2.0.
11894         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
11895         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
11896         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
11897         Call __lgamma_negl for arguments from -33.0 to -2.0.
11898         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
11899         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
11900         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11901         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
11902         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
11903         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
11904         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
11905         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
11906         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
11907         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
11908         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
11909         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
11910         (__lgamma_neg): Likewise.
11911         (__lgamma_negl): Likewise.
11912         (__lgamma_product): Likewise.
11913         (__lgamma_productl): Likewise.
11914         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
11915         * math/auto-libm-test-in: Add more tests of lgamma.
11916         * math/auto-libm-test-out: Regenerated.
11917         * sysdeps/i386/fpu/libm-test-ulps: Update.
11918         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11919
11920 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
11921
11922         [BZ #18675]
11923         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
11924
11925 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
11926
11927         [BZ #14912]
11928         * bits/libc-lock.h: Move to ...
11929         * sysdeps/generic/libc-lock.h: ...here.
11930         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11931         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
11932         * sysdeps/mach/hurd/libc-lock.h: ...here.
11933         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11934         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
11935         * sysdeps/mach/bits/libc-lock.h: Move to ...
11936         * sysdeps/mach/libc-lock.h: ...here.
11937         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11938         * sysdeps/nptl/bits/libc-lock.h: Move to ...
11939         * sysdeps/nptl/libc-lock.h: ...here.
11940         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11941         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
11942         * sysdeps/nptl/libc-lockP.h: ...here.
11943         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
11944         * crypt/crypt_util.c: Include <libc-lock.h> instead of
11945         <bits/libc-lock.h>.
11946         * dirent/scandir-tail.c: Likewise.
11947         * dlfcn/dlerror.c: Likewise.
11948         * elf/dl-close.c: Likewise.
11949         * elf/dl-iteratephdr.c: Likewise.
11950         * elf/dl-lookup.c: Likewise.
11951         * elf/dl-open.c: Likewise.
11952         * elf/dl-support.c: Likewise.
11953         * elf/dl-writev.h: Likewise.
11954         * elf/rtld.c: Likewise.
11955         * grp/fgetgrent.c: Likewise.
11956         * gshadow/fgetsgent.c: Likewise.
11957         * gshadow/sgetsgent.c: Likewise.
11958         * iconv/gconv_conf.c: Likewise.
11959         * iconv/gconv_db.c: Likewise.
11960         * iconv/gconv_dl.c: Likewise.
11961         * iconv/gconv_int.h: Likewise.
11962         * iconv/gconv_trans.c: Likewise.
11963         * include/link.h: Likewise.
11964         * inet/getnameinfo.c: Likewise.
11965         * inet/getnetgrent.c: Likewise.
11966         * inet/getnetgrent_r.c: Likewise.
11967         * intl/bindtextdom.c: Likewise.
11968         * intl/dcigettext.c: Likewise.
11969         * intl/finddomain.c: Likewise.
11970         * intl/gettextP.h: Likewise.
11971         * intl/loadmsgcat.c: Likewise.
11972         * intl/localealias.c: Likewise.
11973         * intl/textdomain.c: Likewise.
11974         * libidn/idn-stub.c: Likewise.
11975         * libio/libioP.h: Likewise.
11976         * locale/duplocale.c: Likewise.
11977         * locale/freelocale.c: Likewise.
11978         * locale/newlocale.c: Likewise.
11979         * locale/setlocale.c: Likewise.
11980         * login/getutent_r.c: Likewise.
11981         * login/getutid_r.c: Likewise.
11982         * login/getutline_r.c: Likewise.
11983         * login/utmp-private.h: Likewise.
11984         * login/utmpname.c: Likewise.
11985         * malloc/mtrace.c: Likewise.
11986         * misc/efgcvt.c: Likewise.
11987         * misc/error.c: Likewise.
11988         * misc/fstab.c: Likewise.
11989         * misc/getpass.c: Likewise.
11990         * misc/mntent.c: Likewise.
11991         * misc/syslog.c: Likewise.
11992         * nis/nis_call.c: Likewise.
11993         * nis/nis_callback.c: Likewise.
11994         * nis/nss-default.c: Likewise.
11995         * nis/nss_compat/compat-grp.c: Likewise.
11996         * nis/nss_compat/compat-initgroups.c: Likewise.
11997         * nis/nss_compat/compat-pwd.c: Likewise.
11998         * nis/nss_compat/compat-spwd.c: Likewise.
11999         * nis/nss_nis/nis-alias.c: Likewise.
12000         * nis/nss_nis/nis-ethers.c: Likewise.
12001         * nis/nss_nis/nis-grp.c: Likewise.
12002         * nis/nss_nis/nis-hosts.c: Likewise.
12003         * nis/nss_nis/nis-network.c: Likewise.
12004         * nis/nss_nis/nis-proto.c: Likewise.
12005         * nis/nss_nis/nis-pwd.c: Likewise.
12006         * nis/nss_nis/nis-rpc.c: Likewise.
12007         * nis/nss_nis/nis-service.c: Likewise.
12008         * nis/nss_nis/nis-spwd.c: Likewise.
12009         * nis/nss_nisplus/nisplus-alias.c: Likewise.
12010         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
12011         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12012         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
12013         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
12014         * nis/nss_nisplus/nisplus-network.c: Likewise.
12015         * nis/nss_nisplus/nisplus-proto.c: Likewise.
12016         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
12017         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
12018         * nis/nss_nisplus/nisplus-service.c: Likewise.
12019         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
12020         * nis/ypclnt.c: Likewise.
12021         * nptl/libc_pthread_init.c: Likewise.
12022         * nss/getXXbyYY.c: Likewise.
12023         * nss/getXXent.c: Likewise.
12024         * nss/getXXent_r.c: Likewise.
12025         * nss/nss_db/db-XXX.c: Likewise.
12026         * nss/nss_db/db-netgrp.c: Likewise.
12027         * nss/nss_db/nss_db.h: Likewise.
12028         * nss/nss_files/files-XXX.c: Likewise.
12029         * nss/nss_files/files-alias.c: Likewise.
12030         * nss/nsswitch.c: Likewise.
12031         * posix/regex_internal.h: Likewise.
12032         * posix/wordexp.c: Likewise.
12033         * pwd/fgetpwent.c: Likewise.
12034         * resolv/res_hconf.c: Likewise.
12035         * resolv/res_libc.c: Likewise.
12036         * shadow/fgetspent.c: Likewise.
12037         * shadow/lckpwdf.c: Likewise.
12038         * shadow/sgetspent.c: Likewise.
12039         * socket/opensock.c: Likewise.
12040         * stdio-common/reg-modifier.c: Likewise.
12041         * stdio-common/reg-printf.c: Likewise.
12042         * stdio-common/reg-type.c: Likewise.
12043         * stdio-common/vfprintf.c: Likewise.
12044         * stdio-common/vfscanf.c: Likewise.
12045         * stdlib/abort.c: Likewise.
12046         * stdlib/cxa_atexit.c: Likewise.
12047         * stdlib/fmtmsg.c: Likewise.
12048         * stdlib/random.c: Likewise.
12049         * stdlib/setenv.c: Likewise.
12050         * string/strsignal.c: Likewise.
12051         * sunrpc/auth_none.c: Likewise.
12052         * sunrpc/bindrsvprt.c: Likewise.
12053         * sunrpc/create_xid.c: Likewise.
12054         * sunrpc/key_call.c: Likewise.
12055         * sunrpc/rpc_thread.c: Likewise.
12056         * sysdeps/arm/backtrace.c: Likewise.
12057         * sysdeps/generic/ldsodefs.h: Likewise.
12058         * sysdeps/generic/stdio-lock.h: Likewise.
12059         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
12060         * sysdeps/i386/backtrace.c: Likewise.
12061         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
12062         * sysdeps/m68k/backtrace.c: Likewise.
12063         * sysdeps/mach/hurd/cthreads.c: Likewise.
12064         * sysdeps/mach/hurd/dirstream.h: Likewise.
12065         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12066         * sysdeps/nptl/malloc-machine.h: Likewise.
12067         * sysdeps/nptl/stdio-lock.h: Likewise.
12068         * sysdeps/posix/dirstream.h: Likewise.
12069         * sysdeps/posix/getaddrinfo.c: Likewise.
12070         * sysdeps/posix/system.c: Likewise.
12071         * sysdeps/pthread/aio_suspend.c: Likewise.
12072         * sysdeps/s390/s390-32/backtrace.c: Likewise.
12073         * sysdeps/s390/s390-64/backtrace.c: Likewise.
12074         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
12075         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
12076         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
12077         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
12078         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
12079         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
12080         * sysdeps/unix/sysv/linux/system.c: Likewise.
12081         * sysdeps/x86_64/backtrace.c: Likewise.
12082         * time/alt_digit.c: Likewise.
12083         * time/era.c: Likewise.
12084         * time/tzset.c: Likewise.
12085         * wcsmbs/wcsmbsload.c: Likewise.
12086         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
12087         instead of <bits/libc-lock.h> in comment.
12088
12089 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
12090
12091         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
12092         Only use .set mips2 if the current ISA is below mips2.
12093         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
12094         Likewise.
12095         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
12096         mips32r2 if the current ISA is below mips32r2.
12097         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
12098         (TLS_IE): Updated to use the TLD_RDHWR macro.
12099         (TLS_LE): Likewise.
12100         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
12101         __ASSEMBLER__ condition.
12102
12103 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12104
12105         Fix parallel build of before-compile targets.
12106
12107         * sysdeps/mach/Makefile ($(patsubst
12108         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
12109         mach-before-compile target.
12110         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12111         io fs process)): Move rule to dedicated hurd-before-compile target.
12112
12113 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12114
12115         Fix rules generating headers in hurd/ and mach/ when initial make call
12116         has subdir= explicitly set.
12117
12118         * sysdeps/mach/Makefile ($(patsubst
12119         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
12120         calling $(MAKE).
12121         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12122         io fs process)): Force subdir to hurd when calling $(MAKE).
12123         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
12124         subdir to mach when calling $(MAKE).
12125
12126 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
12127
12128         Check sysheaders when looking for Mach and Hurd headers
12129
12130         * sysdeps/mach/configure.ac: Add sysheaders check.
12131         * sysdeps/mach/configure: Regenerate.
12132         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
12133         * sysdeps/mach/hurd/configure: Regenerate.
12134
12135 2015-09-04  Roland McGrath  <roland@hack.frob.com>
12136
12137         [BZ #18921]
12138         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
12139         Fix inverted sense of test of 'o_directory_works' value.
12140         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
12141         Bernhard Voelker <mail@bernhard-voelker.de>.
12142
12143 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12144
12145         [BZ #14912]
12146         * bits/linkmap.h: Move to ...
12147         * sysdeps/generic/linkmap.h: ...here.
12148         * sysdeps/aarch64/bits/linkmap.h: Move to ...
12149         * sysdeps/aarch64/linkmap.h: ...here.
12150         * sysdeps/arm/bits/linkmap.h: Move to ...
12151         * sysdeps/arm/linkmap.h: ...here.
12152         * sysdeps/hppa/bits/linkmap.h: Move to ...
12153         * sysdeps/hppa/linkmap.h: ...here.
12154         * sysdeps/ia64/bits/linkmap.h: Move to ...
12155         * sysdeps/ia64/linkmap.h: ...here.
12156         * sysdeps/mips/bits/linkmap.h: Move to ...
12157         * sysdeps/mips/linkmap.h: ...here.
12158         * sysdeps/s390/bits/linkmap.h: Move to ...
12159         * sysdeps/s390/linkmap.h: ...here.
12160         * sysdeps/sh/bits/linkmap.h: Move to ...
12161         * sysdeps/sh/linkmap.h: ...here.
12162         * sysdeps/x86/bits/linkmap.h: Move to ...
12163         * sysdeps/x86/linkmap.h: ...here.
12164         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
12165
12166 2015-09-04  Andreas Schwab  <schwab@suse.de>
12167
12168         [BZ #18635]
12169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12170         (__makecontext): Terminate FDE before return label.
12171         (__novec_makecontext): Likewise.
12172
12173 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12174
12175         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
12176         first member of struct sv in syscall macro.
12177
12178 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12179
12180         [BZ #14912]
12181         * bits/stdio-lock.h: Move to ...
12182         * sysdeps/generic/stdio-lock.h: ...here.
12183         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12184         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
12185         * sysdeps/nptl/stdio-lock.h: ...here.
12186         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12187         * include/libio.h: Include <stdio-lock.h> instead of
12188         <bits/stdio-lock.h>.
12189         * sysdeps/nptl/fork.c: Likewise.
12190         * sysdeps/pthread/flockfile.c: Likewise.
12191         * sysdeps/pthread/ftrylockfile.c: Likewise.
12192         * sysdeps/pthread/funlockfile.c: Likewise.
12193
12194         [BZ #14912]
12195         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
12196         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
12197         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
12198         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
12199         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
12200         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
12201         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
12202
12203 2015-09-03  Roland McGrath  <roland@hack.frob.com>
12204
12205         * elf/Makefile (test-xfail-tst-protected1a): New variable.
12206         (test-xfail-tst-protected1b): New variable.
12207
12208 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
12209
12210         [BZ #14912]
12211         * bits/libc-tsd.h: Move to ...
12212         * sysdeps/generic/libc-tsd.h: ...here.
12213         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
12214         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
12215         * sysdeps/mach/hurd/libc-tsd.h: ...here.
12216         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
12217         * include/ctype.h: Include <libc-tsd.h> instead of
12218         <bits/libc-tsd.h>.
12219         * include/rpc/rpc.h: Likewise.
12220         * locale/localeinfo.h: Likewise.
12221         * sunrpc/rpc_thread.c: Likewise.
12222         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12223         * sysdeps/nptl/malloc-machine.h: Likewise.
12224
12225         * Makefile (headers): Remove bits/libc-lock.h.
12226         * libio/Makefile (headers): Remove bits/stdio-lock.h.
12227
12228         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
12229         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
12230         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
12231         <bits/stdio-lock.h>.
12232         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
12233         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
12234
12235 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12236
12237         [BZ #18757]
12238         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
12239         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
12240         BZ #18757.
12241
12242 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12243
12244         * malloc/mtrace.pl: Filter out NULL entries.
12245
12246 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
12247
12248         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
12249         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
12250         macro.
12251
12252         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
12253         (TCP_CC_INFO): Likewise.
12254         (TCP_SAVE_SYN): Likewise.
12255         (TCP_SAVED_SYN): Likewise.
12256
12257 2015-08-31  Brett Neumeier <brett@neumeier.us>
12258
12259         [BZ #18870]
12260         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
12261
12262 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12263
12264         [BZ #18873]
12265         Fix broken overflow check in posix_fallocate
12266         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
12267         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
12268         Fix parenthesization typo.
12269
12270 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
12271
12272         [BZ #18887]
12273         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
12274         tst-mntent-blank-passno.
12275         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
12276         * misc/tst-mntent-blank-corrupt.c: New test.
12277         * misc/tst-mntent-blank-passno.c: New test ripped from ...
12278         * misc/tst-mntent.c (do_test): ... here.
12279
12280 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
12281
12282         [BZ #4404]
12283         * po/de.po: Fix SIGALRM typo.
12284
12285 2015-08-28  James Perkins  <james@loowit.net>
12286
12287         * time/tst-strptime2.c (tests): Replace short list of test
12288         strings for strptime %z specifier with code which exhaustively
12289         tests every combination of sign and 0 to 5 digits. Tests for
12290         rejection of invalid strings.
12291
12292 2015-08-28  James Perkins  <james@loowit.net>
12293
12294         [BZ #16141]
12295         * time/strptime_l.c (__strptime_internal): Fix %z minutes
12296         calculation, removing incorrect decimal time rounding, so that
12297         all minute values result in a valid seconds value.
12298         * time/strptime_l.c (__strptime_internal): Extend %z time zone
12299         offset range limits to UTC-99:59 through UTC+99:59 to parse
12300         current and historical use cases.
12301         * time/tst-strptime2.c (tests): Modify and add tests for the
12302         strptime %z input field descriptor, specifically conversion of
12303         minutes to seconds and validating an offset range of -9959 to
12304         +9959.
12305
12306 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12307             Dmitry V. Levin  <ldv@altlinux.org>
12308
12309         [BZ #18877]
12310         * posix/Makefile (tests): Add tst-mmap-offset.
12311         * posix/tst-mmap.c: New file.
12312         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
12313         offset calculation for negative values.
12314
12315 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12316
12317         * sysdeps/i386/init-arch.h: New file.
12318         * sysdeps/i386/i586/init-arch.h: Likewise.
12319         * sysdeps/i386/i686/init-arch.h: Likewise.
12320         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
12321         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
12322         * sysdeps/x86/cpu-features.h (bit_I586): New.
12323         (bit_I686): Likewise.
12324         (bit_CX8): Likewise.
12325         (bit_CMOV): Likewise.
12326         (index_CX8): Likewise.
12327         (index_CMOV): Likewise.
12328         (index_I586): Likewise.
12329         (index_I686): Likewise.
12330         (reg_CX8): Likewise.
12331         (reg_CMOV): Likewise.
12332         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
12333         available at compile-time.
12334         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
12335         available at compile-time.
12336         * sysdeps/x86/init-arch.h (USE_I586): New macro.
12337         (USE_I686): Likewise.
12338
12339 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12340
12341         * sysdeps/i386/bcopy.S: New file.
12342         * sysdeps/i386/bzero.S: Likewise.
12343         * sysdeps/i386/memcpy.S: Likewise.
12344         * sysdeps/i386/memmove.S: Likewise.
12345         * sysdeps/i386/mempcpy.S: Likewise.
12346         * sysdeps/i386/memset.S: Likewise.
12347         * sysdeps/i386/bzero.c: Removed.
12348         * sysdeps/i386/memset.c: Likewise.
12349         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
12350         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
12351         * sysdeps/i386/i586/memset_chk.S: Likewise.
12352         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
12353         * sysdeps/i386/memcpy_chk.S: Here.
12354         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
12355         * sysdeps/i386/memmove_chk.S: Here.
12356         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
12357         * sysdeps/i386/mempcpy_chk.S: Likewise.
12358         * sysdeps/i386/i686/memset_chk.S: Moved to ...
12359         * sysdeps/i386/memset_chk.S: Likewise.
12360
12361 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
12362
12363         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
12364         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
12365         file, move DIAG_POP_NEEDS_COMMENT to end of file.
12366         * soft-fp/fmadf4.c: Ditto.
12367         * soft-fp/fmatf4.c: Ditto.
12368
12369 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12370
12371         * sysdeps/i386/i586/Implies: Removed.
12372         * sysdeps/i386/i686/Implies: Likewise.
12373
12374 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12375
12376         * sysdeps/i386/i486/strlen.S: Moved to ...
12377         * sysdeps/i386/strlen.S: Here.
12378
12379 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12380
12381         * sysdeps/i386/i486/strcat.S: Moved to ...
12382         * sysdeps/i386/strcat.S: Here.
12383
12384 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12385
12386         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
12387         * sysdeps/i386/pthread_spin_trylock.S: Here.
12388         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
12389         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
12390
12391 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12392
12393         * sysdeps/i386/i486/string-inlines.c: Moved to ...
12394         * sysdeps/i386/string-inlines.c: Here.
12395
12396 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12397
12398         * sysdeps/i386/i486/htonl.S: Moved ...
12399         * sysdeps/i386/htonl.S: here.
12400
12401 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12402
12403         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
12404         * sysdeps/i386/bits/atomic.h: Here.
12405
12406 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12407
12408         * sysdeps/i386/i486/Versions: Removed.
12409
12410 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
12411
12412         [BZ #2898]
12413         * misc/mktemp.c: Add mkdtemp to the link_warning message.
12414         Based on patch by Aurelien Jarno.
12415
12416 2015-08-26  Stan Shebs  <stanshebs@google.com>
12417
12418         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
12419         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
12420
12421 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12422
12423         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
12424         * sysdeps/powerpc/dl-procinfo.c:
12425         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
12426         feature so it shows when LD_SHOW_AUXV=1.
12427
12428 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12429
12430         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
12431         (__arch_compare_and_exchange_val_32_acq): Remove and use common
12432         definition.  ISA 2.07B no longer requires full sync.
12433
12434 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
12435
12436         [BZ #18863]
12437         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
12438         (si_call_addr): Define.
12439         (si_syscall): Define.
12440         (si_arch): Define.
12441
12442 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12443
12444         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
12445         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
12446         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
12447         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12448         (__memset_zero_constant_len_parameter): New.
12449         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
12450         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12451         (__memset_zero_constant_len_parameter): Don't define if
12452         __memset_chk or USE_AS_BZERO are defined.
12453
12454         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
12455         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
12456         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
12457
12458         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
12459         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
12460         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
12461         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
12462         comments.
12463         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
12464         -mno-mmx for $(all-rtld-routines).
12465         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
12466         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
12467         i386.
12468
12469 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
12470
12471         * sysdeps/generic/unwind.h
12472         (_Unwind_Word): Use __mode__(__unwind_word__)
12473         instead of __mode__(__word__).
12474         (_Unwind_Sword): Likewise.
12475
12476         * sysdeps/s390/s390-64/utf8-utf16-z9.c
12477         (MAX_NEEDED_INPUT): New define.
12478         (MAX_NEEDED_OUTPUT): New define.
12479
12480         * NEWS: New item for IBM z13 string optimizations.
12481
12482         * sysdeps/s390/multiarch/memrchr-c.c: New File.
12483         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
12484         * sysdeps/s390/multiarch/memrchr.c: Likewise.
12485         * sysdeps/s390/multiarch/Makefile
12486         (sysdep_routines): Add memrchr functions.
12487         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12488         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
12489
12490         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
12491         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
12492         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
12493         * sysdeps/s390/multiarch/Makefile
12494         (sysdep_routines): Add wmemcmp functions.
12495         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12496         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
12497         * benchtests/bench-wmemcmp.c: New File.
12498         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
12499
12500         * sysdeps/s390/multiarch/wmemset-c.c: New File.
12501         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
12502         * sysdeps/s390/multiarch/wmemset.c: Likewise.
12503         * sysdeps/s390/multiarch/Makefile
12504         (sysdep_routines): Add wmemset functions.
12505         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12506         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
12507         * wcsmbs/wmemset.c: Use WMEMSET if defined.
12508         * string/test-memset.c: Add wmemset support.
12509         * wcsmbs/test-wmemset.c: New File.
12510         * wcsmbs/Makefile (strop-tests): Add wmemset.
12511         * benchtests/bench-memset.c: Add wmemset support.
12512         * benchtests/bench-wmemset.c: New File.
12513         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
12514
12515         * sysdeps/s390/multiarch/memccpy-c.c: New File.
12516         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
12517         * sysdeps/s390/multiarch/memccpy.c: Likewise.
12518         * sysdeps/s390/multiarch/Makefile
12519         (sysdep_routines): Add memccpy functions.
12520         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12521         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
12522         * string/memccpy.c: Use MEMCCPY if defined.
12523
12524         * sysdeps/s390/multiarch/memchr-vx.S: New File.
12525         * sysdeps/s390/multiarch/memchr.c: Likewise.
12526         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
12527         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
12528         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
12529         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
12530         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
12531         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
12532         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
12533         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
12534         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
12535         and rawmemchr functions.
12536         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12537         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
12538         and wmemchr.
12539         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
12540         * string/test-memchr.c: Add wmemchr support.
12541         * wcsmbs/test-wmemchr.c: New File.
12542         * wcsmbs/Makefile (strop-tests): Add wmemchr.
12543         * benchtests/bench-memchr.c: Add wmemchr support.
12544         * benchtests/bench-wmemchr.c: New File.
12545         * benchtests/Makefile (wcsmbs-bench): wmemchr.
12546
12547         * sysdeps/s390/multiarch/strcspn-c.c: New File.
12548         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
12549         * sysdeps/s390/multiarch/strcspn.c: Likewise.
12550         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
12551         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
12552         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
12553         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
12554         wcscspn functions.
12555         * sysdeps/s390/multiarch/ifunc-impl-list.c
12556         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
12557         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
12558         * string/test-strcspn.c: Add wcscspn support.
12559         * wcsmbs/test-wcscspn.c: New File.
12560         * wcsmbs/Makefile (strop-tests): Add wcscspn.
12561         * benchtests/bench-strcspn.c: Add wcscspn support.
12562         * benchtests/bench-wcscspn.c: New File.
12563         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
12564
12565         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
12566         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
12567         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
12568         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
12569         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
12570         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
12571         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
12572         wcspbrk functions.
12573         * sysdeps/s390/multiarch/ifunc-impl-list.c
12574         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
12575         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
12576         * string/test-strpbrk.c: Add wcspbrk support.
12577         * wcsmbs/test-wcspbrk.c: New File.
12578         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
12579         * benchtests/bench-strpbrk.c: Add wcspbrk support.
12580         * benchtests/bench-wcspbrk.c: New File.
12581         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
12582
12583         * sysdeps/s390/multiarch/strspn-c.c: New File.
12584         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
12585         * sysdeps/s390/multiarch/strspn.c: Likewise.
12586         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
12587         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
12588         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
12589         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
12590         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
12591         wcsspn functions.
12592         * sysdeps/s390/multiarch/ifunc-impl-list.c
12593         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
12594         * string/test-strspn.c: Add wcsspn support.
12595         * wcsmbs/test-wcsspn.c: New File.
12596         * wcsmbs/Makefile (strop-tests): Add wcsspn.
12597         * benchtests/bench-strspn.c: Add wcsspn support.
12598         * benchtests/bench-wcsspn.c: New File.
12599         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
12600
12601         * sysdeps/s390/multiarch/strrchr-c.c: New File.
12602         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
12603         * sysdeps/s390/multiarch/strrchr.c: Likewise.
12604         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
12605         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
12606         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
12607         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
12608         wcsrchr functions.
12609         * sysdeps/s390/multiarch/ifunc-impl-list.c
12610         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
12611         * benchtests/bench-wcsrchr.c: New File.
12612         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
12613
12614         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
12615         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
12616         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
12617         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
12618         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
12619         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
12620         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
12621         wcschrnul functions.
12622         * sysdeps/s390/multiarch/ifunc-impl-list.c
12623         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
12624         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
12625         * string/test-strchr.c: Add wcschrnul support.
12626         * wcsmbs/test-wcschrnul.c: New File.
12627         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
12628         * benchtests/bench-strchr.c: Add wcschrnul support.
12629         * benchtests/bench-wcschrnul.c: New File.
12630         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
12631
12632         * sysdeps/s390/multiarch/strchr-c.c: New File.
12633         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
12634         * sysdeps/s390/multiarch/strchr.c: Likewise.
12635         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
12636         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
12637         * sysdeps/s390/multiarch/wcschr.c: Likewise.
12638         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
12639         wcschr functions.
12640         * sysdeps/s390/multiarch/ifunc-impl-list.c
12641         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
12642         * string/strchr.c (STRCHR): Define and use macro.
12643         * benchtests/bench-wcschr.c: New File.
12644         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
12645
12646         * sysdeps/s390/multiarch/strncmp-c.c: New File.
12647         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
12648         * sysdeps/s390/multiarch/strncmp.c: Likewise.
12649         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
12650         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
12651         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
12652         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
12653         wcsncmp functions.
12654         * sysdeps/s390/multiarch/ifunc-impl-list.c
12655         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
12656         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
12657         * benchtests/bench-strncmp.c: Add wcsncmp support.
12658         * benchtests/bench-wcsncmp.c: New File.
12659         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
12660
12661         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
12662         * sysdeps/s390/multiarch/strcmp.c: Likewise.
12663         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
12664         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
12665         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
12666         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
12667         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
12668         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
12669         wcscmp functions.
12670         * sysdeps/s390/multiarch/ifunc-impl-list.c
12671         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
12672         * string/strcmp.c (STRCMP): Define and use macro.
12673         * benchtests/bench-wcscmp.c: New File.
12674         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
12675         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
12676         instead of _HAVE_STRING_ARCH_memchr.
12677
12678         * sysdeps/s390/multiarch/strncat-c.c: New File.
12679         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
12680         * sysdeps/s390/multiarch/strncat.c: Likewise.
12681         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
12682         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
12683         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
12684         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
12685         wcsncat functions.
12686         * sysdeps/s390/multiarch/ifunc-impl-list.c
12687         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
12688         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
12689         * string/test-strncat.c: Add wcsncat support.
12690         * wcsmbs/test-wcsncat.c: New File.
12691         * wcsmbs/Makefile (strop-tests): Add wcsncat.
12692         * benchtests/bench-strncat.c: Add wcsncat support.
12693         * benchtests/bench-wcsncat.c: New File.
12694         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
12695
12696         * sysdeps/s390/multiarch/strcat-c.c: New File.
12697         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
12698         * sysdeps/s390/multiarch/strcat.c: Likewise.
12699         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
12700         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
12701         * sysdeps/s390/multiarch/wcscat.c: Likewise.
12702         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
12703         wcscat functions.
12704         * sysdeps/s390/multiarch/ifunc-impl-list.c
12705         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
12706         * string/strcat.c (STRCAT): Define and use macro.
12707         * wcsmbs/wcscat.c: Use WCSCAT if defined.
12708         * string/test-strcat.c: Add wcscat support.
12709         * wcsmbs/test-wcscat.c: New File.
12710         * wcsmbs/Makefile (strop-tests): Add wcscat.
12711         * benchtests/bench-strcat.c: Add wcscat support.
12712         * benchtests/bench-wcscat.c: New File.
12713         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
12714
12715         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
12716         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
12717         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
12718         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
12719         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
12720         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
12721         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
12722         wcpncpy functions.
12723         * sysdeps/s390/multiarch/ifunc-impl-list.c
12724         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
12725         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
12726         * string/test-stpncpy.c: Add wcpncpy support.
12727         * wcsmbs/test-wcpncpy.c: New File.
12728         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
12729         * benchtests/bench-stpncpy.c: Add wcpncpy support.
12730         * benchtests/bench-wcpncpy.c: New File.
12731         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
12732
12733         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
12734         * sysdeps/s390/multiarch/strncpy.c: Likewise.
12735         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
12736         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
12737         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
12738         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
12739         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
12740         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
12741         wcsncpy functions.
12742         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
12743         * sysdeps/s390/multiarch/ifunc-impl-list.c
12744         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
12745         * string/test-strncpy.c: Add wcsncpy support.
12746         * wcsmbs/test-wcsncpy.c: New File.
12747         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
12748         * benchtests/bench-strncpy.c: Add wcsncpy support.
12749         * benchtests/bench-wcsncpy.c: New File.
12750         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
12751
12752         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
12753         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
12754         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
12755         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
12756         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
12757         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
12758         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
12759         wcpcpy functions.
12760         * string/stpcpy.c: Use STPCPY if defined.
12761         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
12762         * sysdeps/s390/multiarch/ifunc-impl-list.c
12763         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
12764         * string/test-stpcpy.c: Add wcpcpy support.
12765         * wcsmbs/test-wcpcpy.c: New File.
12766         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
12767         * benchtests/bench-stpcpy.c: Add wcpcpy support.
12768         * benchtests/bench-wcpcpy.c: New File.
12769         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
12770
12771         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
12772         * sysdeps/s390/multiarch/strcpy.c: Likewise.
12773         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
12774         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
12775         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
12776         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
12777         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
12778         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
12779         wcscpy functions.
12780         * sysdeps/s390/multiarch/ifunc-impl-list.c
12781         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
12782         * benchtests/bench-wcscpy.c: New File.
12783         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
12784
12785         * sysdeps/s390/multiarch/strnlen-c.c: New File.
12786         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
12787         * sysdeps/s390/multiarch/strnlen.c: Likewise.
12788         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
12789         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
12790         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
12791         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
12792         wcsnlen functions.
12793         * sysdeps/s390/multiarch/ifunc-impl-list.c
12794         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
12795         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
12796         * string/test-strnlen.c: Add wcsnlen support.
12797         * wcsmbs/test-wcsnlen.c: New File.
12798         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
12799         * benchtests/bench-strnlen.c: Add wcsnlen support.
12800         * benchtests/bench-wcsnlen.c: New File.
12801         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
12802
12803         * sysdeps/s390/multiarch/Makefile: New File.
12804         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
12805         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
12806         * sysdeps/s390/multiarch/strlen.c: Likewise.
12807         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
12808         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
12809         * sysdeps/s390/multiarch/wcslen.c: Likewise.
12810         * string/strlen.c (STRLEN): Define and use macro.
12811         * sysdeps/s390/multiarch/ifunc-impl-list.c
12812         (IFUNC_VX_IMPL): New macro function.
12813         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
12814         * benchtests/Makefile (wcsmbs-bench): New variable.
12815         (string-bench-all): Added wcsmbs-bench.
12816         * benchtests/bench-wcslen.c: New File.
12817
12818         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
12819         s390_vx_libc_ifunc2): New macro function.
12820
12821         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
12822         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
12823         assembler support.
12824         * sysdeps/s390/configure: Regenerated.
12825
12826         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
12827         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
12828
12829         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
12830         * sysdeps/s390/dl-procinfo.h: Add vector capability.
12831         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
12832
12833         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
12834         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
12835         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
12836         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
12837         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
12838         (memcmp, bcmp): Use __memcmp_default as alias source.
12839         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
12840         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
12841         Rename to __memcmp_default.
12842         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
12843         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
12844         (memcpy): Use __memcpy_default as alias source.
12845         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
12846         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
12847         Rename to __memcpy_default.
12848         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
12849         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
12850         (memset): Use __memset_default as alias source.
12851         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
12852         * sysdeps/s390/s390-32/memset.S (__memset_g5):
12853         Rename to __memset_default.
12854         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
12855         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
12856         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
12857         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
12858         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
12859         (memcmp, bcmp): Use __memcmp_default as alias source.
12860         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
12861         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
12862         Rename to __memcmp_default.
12863         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
12864         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
12865         (memcpy): Use __memcpy_default as alias source.
12866         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
12867         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
12868         Rename to __memcpy_default.
12869         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
12870         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
12871         (memset): Use __memset_default as alias source.
12872         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
12873         * sysdeps/s390/s390-64/memset.S (__memset_z900):
12874         Rename to __memset_default.
12875         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
12876         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
12877
12878         [BZ #18610]
12879         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
12880         __ieee_instruction_pointer to __unused.
12881         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
12882         __ieee_instruction_pointer.
12883         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
12884         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
12885         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
12886         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
12887         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
12888         Mark dxc-field as reserved.
12889
12890 2015-08-25  Roland McGrath  <roland@hack.frob.com>
12891
12892         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
12893         if the weak reference is not null.
12894
12895 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12896
12897         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
12898
12899         [BZ #11214]
12900         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
12901
12902 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12903
12904         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
12905         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
12906         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
12907         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
12908         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
12909         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
12910         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
12911         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
12912         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
12913         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
12914         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
12915         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
12916         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
12917         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
12918         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
12919         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
12920         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
12921         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
12922
12923 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12924
12925         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
12926         register other than r0 for tabort, it has special meaning.
12927         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
12928         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
12929         transaction before starting syscall.
12930
12931 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12932
12933         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
12934
12935 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12936
12937         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
12938
12939         * sysdeps/x86_64/rtld-memcmp.c: Removed.
12940         * sysdeps/x86_64/rtld-memset.S: Likewise.
12941         * sysdeps/x86_64/rtld-strchr.S: Likewise.
12942         * sysdeps/x86_64/rtld-strlen.S: Likewise.
12943         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
12944         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
12945
12946         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
12947
12948 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
12949
12950         * debug/strcpy_chk.c: Improve performance.
12951         * debug/stpcpy_chk.c: Likewise.
12952         * sysdeps/x86_64/strcpy_chk.S: Remove.
12953         * sysdeps/x86_64/stpcpy_chk.S: Remove.
12954
12955         [BZ #18240]
12956         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
12957
12958 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12959
12960         [BZ #15128]
12961         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
12962         ifuncmain8.
12963         (modules-names): Add ifuncmod8.
12964         ($(objpfx)ifuncmain8): New rule.
12965         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
12966         <cpuid.h>.
12967         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
12968         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
12969         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
12970         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
12971         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
12972         * sysdeps/x86_64/dl-trampoline.h: Likewise.
12973         * sysdeps/x86_64/ifuncmain8.c: New file.
12974         * sysdeps/x86_64/ifuncmod8.c: Likewise.
12975         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
12976         Removed.
12977         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
12978         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
12979         Change rtld_savespace_sse to __glibc_unused2.
12980         (RTLD_CHECK_FOREIGN_CALL): Removed.
12981         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
12982         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
12983         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
12984
12985 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
12986
12987         * sysdeps/aarch64/bzero.S (__bzero): Remove.
12988
12989 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
12990
12991         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
12992         Unconditionally set __fpcr to avoid uninialized warning.
12993         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
12994
12995 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
12996
12997         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
12998         is corrupt.
12999
13000         * malloc/arena.c (arena_get2): Drop unused argument.
13001         (arena_lock): Adjust.
13002         (arena_get_retry): Likewise.
13003
13004 2015-08-24  Andreas Schwab  <schwab@suse.de>
13005
13006         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
13007         Don't define.
13008         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
13009         (__ASSUME_IPC64): Don't undef.
13010         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
13011         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
13012         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
13013         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
13014         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
13015         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
13016         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
13017         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
13018         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
13019         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
13020         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
13021         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
13022         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
13023         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
13024         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
13025         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
13026         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
13027         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
13028         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
13029         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
13030         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
13031
13032 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
13033
13034         * manual/Makefile (install): Only build manual when perl is available.
13035
13036 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13037
13038         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
13039         '#undef memcpy' by '#undef memchr'.
13040
13041 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13042
13043         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
13044         memchr not point to the internal __GI_memchr implementation.
13045
13046 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13047
13048         * timezone/Makefile (CFLAGS-zdump.c): Remove
13049         -Wno-strict-prototypes.
13050         (CFLAGS-zic.c): Likewise.
13051         (CFLAGS-ialloc.c): Likewise.
13052         (CFLAGS-scheck.c): Likewise.
13053
13054         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
13055         -Wno-error=undef.
13056
13057 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13058
13059         * i386/i686/multiarch/strcasestr-c.c: Removed.
13060         * x86_64/multiarch/strcasestr.c: Likewise.
13061         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
13062         Remove strcasestr.
13063
13064 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13065
13066         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
13067
13068         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
13069         variables for high and low parts before possibly modifying them.
13070
13071 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13072
13073         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
13074         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
13075         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
13076         of "multiarch/init-arch.h".
13077         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
13078         * sysdeps/x86/init-arch.h: This.
13079
13080 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13081
13082         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
13083         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
13084
13085 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
13086
13087         [BZ #17787]
13088         * manual/macros.texi: Add twoexp macro.
13089         * manual/filesys.texi: Fix exponents.
13090         * manual/llio.texi: Likewise.
13091         * manual/stdio.texi: Likewise.
13092
13093 2015-08-20  Florian Weimer  <fweimer@redhat.com>
13094
13095         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
13096         incorrect use.
13097
13098 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13099
13100         [BZ #18370]
13101         * math/s_csqrt.c (__csqrt): Force underflow exception for results
13102         whose real or imaginary part has small absolute value.
13103         * math/s_csqrtf.c (__csqrtf): Likewise.
13104         * math/s_csqrtl.c (__csqrtl): Likewise.
13105         * math/auto-libm-test-in: Add more tests of csqrt.
13106         * math/auto-libm-test-out: Regenerated.
13107         * sysdeps/i386/fpu/libm-test-ulps: Update.
13108
13109 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13110
13111         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
13112         __ppc_set_ppr_very_low): New functions.
13113         * manual/platform.texi: Add documentation about
13114         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
13115
13116 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
13117
13118         * string/stpncpy.c (stpncpy): Improve performance using
13119         __strnlen/memcpy/memset.
13120
13121 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
13122
13123         [BZ #18796]
13124         * scripts/test-installation.pl: Don't add -lmvec to build options if
13125         libmvec wasn't built.
13126
13127 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
13128
13129         [BZ #14341]
13130         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
13131         case when there is a gap between DT_REL and DT_JMPREL sections.
13132         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
13133         (LDFLAGS-tst-split-dynreloc): New.
13134         (tst-split-dynreloc-ENV): Likewise.
13135         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
13136         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
13137
13138 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13139
13140         [BZ #18822]
13141         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
13142         attribute_hidden.
13143         (__xstat64_conv): Likewise.
13144         (__xstat32_conv): Likewise.
13145
13146 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13147
13148         [BZ #18822]
13149         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
13150         Don't load %ebx when calling __setcontext.  Call __setcontext
13151         with HIDDEN_JUMPTARGET.
13152         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
13153         libc_hidden_def.
13154
13155 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13156
13157         * sysdeps/i386/i686/Makefile
13158         [$(subdir) == string] (sysdep_routines): Moved to ...
13159         * sysdeps/i386/Makefile: Here.
13160         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
13161         * sysdeps/i386/cacheinfo.c: Here.
13162         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
13163         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
13164         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
13165         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
13166
13167 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13168
13169         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
13170         __i586__ is defined.
13171         (HAS_I686): Defined to 1 if __i686__ is defined.
13172
13173 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13174
13175         * elf/Makefile [$(have-z-execstack) = yes]
13176         (CPPFLAGS-tst-execstack.c): New variable.
13177
13178         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
13179         conditional to [defined UTMPX || _HAVE_UT_TYPE].
13180         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
13181         UTMPX || _HAVE_UT_TV].
13182         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
13183         UTMPX || _HAVE_UT_TV - 0].
13184
13185 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
13186
13187         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
13188         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
13189         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
13190
13191 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13192
13193         * sysdeps/powerpc/dl-procinfo.c:
13194         (_dl_powerpc_cap_flags): Added missing strings for some
13195         hwcap features.
13196         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
13197
13198 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13199
13200         Port the 0x7efe...feff pattern to GCC 6.
13201         See Steve Ellcey's bug report in:
13202         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
13203         * string/memrchr.c (MEMRCHR):
13204         * string/rawmemchr.c (RAWMEMCHR):
13205         * string/strchr.c (strchr):
13206         * string/strchrnul.c (STRCHRNUL):
13207         Rewrite code to avoid issues with signed shift overflow.
13208
13209 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13210
13211         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
13212         whether cpuid is available only if HAS_CPUID is 0.
13213         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
13214         (HAS_I586): Likewise.
13215         (HAS_I686): Likewise.
13216
13217 2015-08-18  Zack Weinberg  <zackw@panix.com>
13218
13219         * misc/Versions (libc): Add GLIBC_2.23.
13220
13221 2015-08-18  Alan Modra  <amodra@gmail.com>
13222
13223         [BZ #18421]
13224         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
13225         .Lp__global.
13226         (_start): Load %dp via .Lp__global.
13227         [!SHARED]: Use .section .rodata.
13228
13229 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13230
13231         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
13232         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
13233
13234 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13235
13236         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
13237         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
13238
13239 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13240
13241         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
13242         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
13243
13244 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13245
13246         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
13247         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
13248
13249 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13250
13251         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
13252         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
13253
13254 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13255
13256         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
13257         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
13258
13259 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13260
13261         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
13262
13263 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13264
13265         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
13266         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
13267         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13268         (__ASSUME_LWS_CAS): Delete.
13269
13270 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13271
13272         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
13273         * sysdeps/hppa/configure: Regenerated.
13274         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
13275         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
13276         * sysdeps/hppa/nptl/tls.h: Likewise.
13277
13278 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
13279
13280         [BZ #18823]
13281         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
13282         for scaling up small arguments.
13283         * math/s_csqrtf.c (__csqrtf): Likewise.
13284         * math/s_csqrtl.c (__csqrtl): Likewise.
13285         * math/auto-libm-test-in: Add more tests of csqrt.
13286         * math/auto-libm-test-out: Regenerated.
13287
13288 2015-08-17  Andreas Schwab  <schwab@suse.de>
13289
13290         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
13291         version set GLIBC_2.19.
13292
13293 2015-08-16  Zack Weinberg  <zackw@panix.com>
13294
13295         [BZ #18681]
13296         * misc/regexp.h: This interface is no longer supported.
13297         Remove all contents, leaving only an #error directive.
13298         * misc/regexp.c (loc1, loc2, locs, step, advance):
13299         Demote to compatibility symbols.
13300
13301 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
13302
13303         [BZ #18084]
13304         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
13305         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
13306         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
13307         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
13308         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
13309         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
13310         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
13311         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
13312         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
13313
13314 2015-08-15  Zack Weinberg  <zackw@panix.com>
13315
13316         [BZ #18795]
13317         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
13318         buffer length is known to be too large, not if it's known to be
13319         small enough.
13320         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
13321         overflow at runtime, involving a length parameter, twice: once
13322         with a compile-time constant length parameter, once without.
13323
13324 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
13325
13326         [BZ #18824]
13327         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
13328         scaling x * y up instead of down.
13329         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13330         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13331         * math/auto-libm-test-in: Add more tests of fma.
13332         * math/auto-libm-test-out: Regenerated.
13333
13334 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
13335
13336         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13337
13338 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13339
13340         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
13341         unnecessary movq.
13342         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
13343         Likewise.
13344
13345 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
13346
13347         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
13348         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
13349         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
13350         and tgamma.
13351         * math/auto-libm-test-out: Regenerated.
13352         * sysdeps/i386/fpu/libm-test-ulps: Update.
13353         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13354
13355         [BZ #16520]
13356         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
13357         (__tanh): Force underflow exception for arguments with small
13358         absolute value.
13359         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
13360         (__tanhf): Force underflow exception for arguments with small
13361         absolute value.
13362         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
13363         (__tanhl): Force underflow exception for arguments with small
13364         absolute value.
13365         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
13366         (__tanhl): Force underflow exception for arguments with small
13367         absolute value.
13368         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
13369         (__tanhl): Force underflow exception for arguments with small
13370         absolute value.
13371         * math/auto-libm-test-in: Add more tests of tanh.
13372         * math/auto-libm-test-out: Regenerated.
13373         * sysdeps/i386/fpu/libm-test-ulps: Update.
13374
13375 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13376
13377         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
13378         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
13379
13380 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13381
13382         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
13383         <cpuid.h>.
13384
13385 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13386
13387         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
13388         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
13389
13390 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13391
13392         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
13393         Remove $(objpfx)init-arch.o.
13394         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
13395         init-arch.
13396         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
13397         (INIT_ARCH_EXT): Defined as empty.
13398         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
13399         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
13400         __init_cpu_features call.  Replace HAS_XXX with
13401         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13402         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
13403         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
13404         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
13405         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
13406         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
13407         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
13408         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
13409         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
13410         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
13411         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
13412         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
13413         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
13414         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
13415         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
13416         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
13417         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
13418         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
13419         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
13420         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
13421         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
13422         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
13423         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
13424         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
13425         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
13426         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
13427         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
13428         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
13429         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
13430         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
13431         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
13432         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
13433         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
13434         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
13435         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
13436         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
13437
13438 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13439
13440         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
13441         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13442         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13443         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13444         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
13445         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
13446         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
13447         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
13448         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
13449         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
13450         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
13451         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
13452         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13453         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13454         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13455         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13456         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13457         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13458         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13459         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13460         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13461         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13462         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13463         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13464         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13465         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13466         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13467         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13468         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13469         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13470         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13471         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13472         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13473         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13474         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13475         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13476         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13477         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13478         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13479         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13480         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13481         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13482         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13483
13484 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13485
13486         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
13487         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13488         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13489         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13490         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13491         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
13492         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13493         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
13494         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13495         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13496         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13497         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
13498         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
13499         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
13500         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
13501         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
13502         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
13503         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
13504         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
13505         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
13506         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
13507         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
13508         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
13509         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
13510         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
13511         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
13512         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
13513         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
13514         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13515         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
13516         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
13517         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
13518         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
13519         * sysdeps/x86_64/multiarch/memset.S: Likewise.
13520         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13521         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
13522         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
13523         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
13524         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
13525         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
13526         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
13527         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
13528         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
13529
13530 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13531
13532         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
13533         (dl_platform_init): Call init_cpu_features.
13534         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
13535         * sysdeps/i386/i686/cacheinfo.c
13536         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
13537         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
13538         * sysdeps/i386/i686/multiarch/Versions: Removed.
13539         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
13540         Removed.
13541         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
13542         * sysdeps/unix/sysv/linux/x86/Makefile
13543         (libpthread-sysdep_routines): Remove init-arch.
13544         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
13545         <sysdeps/x86_64/dl-procinfo.c> instead of
13546         sysdeps/generic/dl-procinfo.c>.
13547         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
13548         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
13549         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
13550         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
13551         [$(subdir) == elf] (tests-static): Add
13552         tst-get-cpu-features-static.
13553         * sysdeps/x86/Versions: New file.
13554         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
13555         * sysdeps/x86/cpu-features.c: Likewise.
13556         * sysdeps/x86/cpu-features.h: Likewise.
13557         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
13558         * sysdeps/x86/libc-start.c: Likewise.
13559         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
13560         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
13561         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
13562         * sysdeps/x86_64/dl-procinfo.c: Likewise.
13563         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
13564         Assume USE_MULTIARCH is defined and don't check it.
13565         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
13566         (is_amd): Likewise.
13567         (max_cpuid): Likewise.
13568         (intel_check_word): Likewise.
13569         (__cache_sysconf): Don't call __init_cpu_features.
13570         (__x86_preferred_memory_instruction): Removed.
13571         (init_cacheinfo): Don't call __init_cpu_features. Replace
13572         __cpu_features with GLRO(dl_x86_cpu_features).
13573         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
13574         (dl_platform_init): Call init_cpu_features.
13575         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
13576         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
13577         * sysdeps/x86_64/multiarch/Versions: Removed.
13578         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
13579         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
13580         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
13581         Removed.
13582         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
13583
13584 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13585
13586         [BZ #18820]
13587         * libio/Makefile (test-fmemopen-mem): New test.
13588         * libio/test-fmemopen.c (do_bz18820): New test.
13589         * libio/fmemopen.c (__fmemopen): Fix memory leak.
13590         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
13591
13592 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13593
13594         [BZ #16734]
13595         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
13596         (FREE_BUF): Delete.
13597         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
13598         * libio/genops.c (_IO_setb): Use malloc and free directly.
13599         (_IO_default_doallocate, _IO_default_finish): Likewise.
13600         ( _IO_unbuffer_all): Likewise.
13601         ( libc_freeres_fn): Likewise.
13602         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
13603         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
13604         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
13605         (_IO_wdefault_doallocate): Likewise.
13606
13607 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
13608
13609         [BZ #18086]
13610         * sysdeps/posix/nice.c (nice): Restore old errno.
13611         * posix/tst-nice.c (do_test): Add test for BZ #18086.
13612
13613 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
13614
13615         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
13616
13617 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13618
13619         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
13620         __bcopy and add a weak_alias to bcopy.
13621         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
13622         for static build.
13623
13624         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
13625         cleanup macro usage.
13626         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
13627         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
13628         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
13629         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
13630         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
13631         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
13632         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
13633         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13634         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
13635         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
13636         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13637         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
13638         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13639         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
13640         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
13641         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
13642         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
13643         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
13644         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13645
13646         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
13647         libc_hidden_def.
13648         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
13649
13650         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
13651         (sysdep_routines): Add strstr-ppc64.
13652         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
13653
13654 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
13655
13656         [BZ #18778]
13657         * elf/Makefile (tests): Add Add tst-nodelete2.
13658         (modules-names): Add tst-nodelete2mod.
13659         (tst-nodelete2mod.so-no-z-defs): New.
13660         ($(objpfx)tst-nodelete2): Likewise.
13661         ($(objpfx)tst-nodelete2.out): Likewise.
13662         (LDFLAGS-tst-nodelete2): Likewise.
13663         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
13664         out of loop through all loaded libraries.
13665         * elf/tst-nodelete2.c: New file.
13666         * elf/tst-nodelete2mod.c: Likewise.
13667         * elf/tst-znodelete-zlib.cc: Delete.
13668
13669 2015-08-11  Andreas Schwab  <schwab@suse.de>
13670
13671         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
13672         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
13673         (__openat64_nocancel): Likewise.
13674
13675 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
13676
13677         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
13678         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
13679         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
13680         * math/auto-libm-test-out: Regenerated.
13681         * sysdeps/i386/fpu/libm-test-ulps: Update.
13682         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13683
13684 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13685
13686         [BZ #18790]
13687         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
13688         threshold for returning +/- 1.
13689         * math/auto-libm-test-in: Add more tests of tanh.
13690         * math/auto-libm-test-out: Regenerated.
13691         * sysdeps/i386/fpu/libm-test-ulps: Update.
13692
13693 2015-08-10  Andreas Schwab  <schwab@suse.de>
13694
13695         [BZ #18781]
13696         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
13697         MORE_OFLAGS to oflag.
13698         * io/test-lfs.c (do_test): Test openat64.
13699
13700 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13701
13702         [BZ #18789]
13703         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
13704         smaller threshold for returning the argument.
13705         * math/auto-libm-test-in: Add more tests of sinh.
13706         * math/auto-libm-test-out: Regenerated.
13707         * sysdeps/i386/fpu/libm-test-ulps: Update.
13708
13709 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
13710
13711         [BZ #18674]
13712         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
13713         break.
13714
13715 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
13716
13717         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
13718         (generated): Don't add $(addprefix z.,$(tzfiles)).
13719
13720 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13721
13722         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
13723         * scripts/sysd-rules.awk: Likewise.
13724
13725 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13726
13727         * iconvdata/tst-tables.sh: Change echo -n to printf.
13728         * nss/db-Makefile: Likewise.
13729         * posix/tst-getconf.sh: Likewise.
13730         * stdio-common/tst-unbputc.sh: Likewise.
13731
13732 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13733
13734         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
13735         MADV_*_PAGES defines behind this feature check.
13736
13737 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
13738
13739         [BZ #18480]
13740         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
13741         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
13742         Define.
13743         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
13744         LOAD_REGS_5, LOAD_REGS_6): Update.
13745         (INTERNAL_SYSCALL): Update using new LOAD defines.
13746         (INTERNAL_SYSCALL_NCS): Likewise.
13747         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
13748
13749 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13750
13751         [BZ #16734]
13752         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
13753
13754 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13755
13756         [BZ #17905]
13757         * catgets/Makefile (tst-catgets-mem): New test.
13758         * catgets/catgets.c (catopen): Don't use unbounded alloca.
13759         * catgets/open_catalog.c (__open_catalog): Likewise.
13760         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
13761
13762 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
13763
13764         [BZ #18787]
13765         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
13766         clobber registers.
13767         (atomic_compare_and_exchange_val_acq): Use register asms to assign
13768         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
13769         Cast return to __typeof (oldval).
13770
13771 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
13772
13773         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
13774         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
13775         and delete sys/syscall.h include.
13776
13777 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
13778
13779         [BZ #16517]
13780         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
13781         (tan): Force underflow exception for arguments with small absolute
13782         value.
13783         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
13784         (__kernel_tanf): Force underflow exception for arguments with
13785         small absolute value.
13786         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
13787         (__kernel_tanl): Force underflow exception for arguments with
13788         small absolute value.
13789         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
13790         (__kernel_tanl): Force underflow exception for arguments with
13791         small absolute value.
13792         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
13793         (__kernel_tanl): Force underflow exception for arguments with
13794         small absolute value.
13795         * math/auto-libm-test-in: Add more tests of tan.
13796         * math/auto-libm-test-out: Regenerated.
13797
13798 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13799
13800         Fix sysdeps/i386/fpu/s_scalbn.S build
13801
13802         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
13803
13804 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
13805
13806         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
13807
13808 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13809
13810         Fix gcrt0.o compilation
13811
13812         When static-start-installed-name is different from
13813         start-installed-name, we must not use the shared objects.
13814
13815         * csu/Makefile
13816         (extra-objs): Add gmon-start.o when building shared library and
13817         $(static-start-installed-name) is different from
13818         $(start-installed-name).
13819         $(objpfx)g$(static-start-installed-name): When building shared
13820         library and $(static-start-installed-name) is different from
13821         $(static-start-installed-name), revert to non-shared rule,
13822         i.e. using $(objpfx)% and gmon-start.o.
13823
13824 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
13825
13826         [BZ #16519]
13827         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
13828         (__ieee754_sinh): Force underflow exception for arguments with
13829         small absolute value.
13830         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
13831         (__ieee754_sinhf): Force underflow exception for arguments with
13832         small absolute value.
13833         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
13834         (__ieee754_sinhl): Force underflow exception for arguments with
13835         small absolute value.
13836         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
13837         (__ieee754_sinhl): Force underflow exception for arguments with
13838         small absolute value.
13839         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
13840         (__ieee754_sinhl): Force underflow exception for arguments with
13841         small absolute value.
13842         * math/auto-libm-test-in: Add more tests of sinh.
13843         * math/auto-libm-test-out: Regenerated.
13844         * sysdeps/i386/fpu/libm-test-ulps: Update.
13845
13846 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
13847
13848         * libio/oldfileops.c: Include unistd.h.
13849
13850 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
13851
13852         * stdlib/isomac.c: Include ctype.h.
13853
13854 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
13855
13856         * dirent/tst-seekdir.c (main): Converted to ...
13857         (do_test): ... this.
13858         (TEST_FUNCTION): New macro.
13859         Include test-skeleton.c.
13860         * elf/tst-dlmodcount.c (main): Converted to ...
13861         (do_test): ... this.
13862         (TEST_FUNCTION): New macro.
13863         Include test-skeleton.c.
13864         * elf/tst-order-main.c (main): Converted to ...
13865         (do_test): ... this.
13866         (TEST_FUNCTION): New macro.
13867         Include test-skeleton.c.
13868         * elf/tst-pie2.c (main): Converted to ...
13869         (do_test): ... this.
13870         (TEST_FUNCTION): New macro.
13871         Include test-skeleton.c.
13872         * inet/tst-ether_aton.c (main): Converted to ...
13873         (do_test): ... this.
13874         (TEST_FUNCTION): New macro.
13875         Include test-skeleton.c.
13876         * misc/tst-mntent.c (main): Converted to ...
13877         (do_test): ... this.
13878         (TEST_FUNCTION): New macro.
13879         Include test-skeleton.c.
13880         * misc/tst-tsearch.c (main): Converted to ...
13881         (do_test): ... this.
13882         (TEST_FUNCTION): New macro.
13883         Include test-skeleton.c.
13884         * posix/tst-regexloc.c (main): Converted to ...
13885         (do_test): ... this.
13886         (TEST_FUNCTION): New macro.
13887         Include test-skeleton.c.
13888         * resolv/tst-aton.c (main): Converted to ...
13889         (do_test): ... this.
13890         (TEST_FUNCTION): New macro.
13891         Include test-skeleton.c.
13892         * stdio-common/test-fwrite.c (main): Converted to ...
13893         (do_test): ... this.
13894         (TEST_FUNCTION): New macro.
13895         Include test-skeleton.c.
13896         * stdio-common/tst-ferror.c (main): Converted to ...
13897         (do_test): ... this.
13898         (TEST_FUNCTION): New macro.
13899         Include test-skeleton.c.
13900         * stdio-common/tst-printf.c (main): Converted to ...
13901         (do_test): ... this.
13902         (TEST_FUNCTION): New macro.
13903         Include test-skeleton.c.
13904         * stdio-common/tst-printfsz.c (main): Converted to ...
13905         (do_test): ... this.
13906         (TEST_FUNCTION): New macro.
13907         Include test-skeleton.c.
13908         * stdlib/tst-strtod.c (main): Converted to ...
13909         (do_test): ... this.
13910         (TEST_FUNCTION): New macro.
13911         Include test-skeleton.c.
13912         * string/tst-strlen.c (main): Converted to ...
13913         (do_test): ... this.
13914         (TEST_FUNCTION): New macro.
13915         Include test-skeleton.c.
13916         * string/tst-svc.c (main): Converted to ...
13917         (do_test): ... this.
13918         (TEST_FUNCTION): New macro.
13919         Include test-skeleton.c.
13920         * time/tst-strptime.c (main): Converted to ...
13921         (do_test): ... this.
13922         (TEST_FUNCTION): New macro.
13923         Include test-skeleton.c.
13924         * timezone/tst-timezone.c (main): Converted to ...
13925         (do_test): ... this.
13926         (TEST_FUNCTION): New macro.
13927         Include test-skeleton.c.
13928
13929 2015-08-05  Zack Weinberg  <zackw@panix.com>
13930
13931         * misc/regexp.h: Update comments.
13932
13933 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
13934
13935         [BZ #18635]
13936         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
13937         before return label.
13938
13939 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13940
13941         [BZ #18661]
13942         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
13943         when calling __errno_location.
13944         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
13945         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
13946
13947 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13948
13949         [BZ #18661]
13950         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
13951         (__lll_timedwait_tid): Align stack to 16 bytes when calling
13952         __gettimeofday.
13953
13954 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13955
13956         [BZ #18661]
13957         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
13958         (__start_context): Don't use pop to restore %rdi so that stack
13959         is aligned to 16 bytes when calling __setcontext.
13960
13961 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13962
13963         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
13964         only for libc.
13965         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
13966
13967 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13968
13969         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
13970         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
13971         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
13972
13973 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13974
13975         * string/memccpy.c (memccpy):
13976         Improve performance by using memchr/memcpy/__mempcpy.
13977
13978 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13979
13980         * string/strncpy.c (strncpy):
13981         Improve performance by using __strnlen/memcpy.
13982
13983 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13984
13985         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
13986         Optimize to avoid an unnecessary FPCR read.
13987
13988 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13989
13990         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
13991         Optimize to reduce FPCR/FPSR accesses.
13992
13993 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13994
13995         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
13996         dead->data[category] != NULL.
13997
13998 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
13999
14000         [BZ #18647]
14001         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
14002         and |x| close to 1, use absolute value of x when computing log.
14003         * math/auto-libm-test-in: Add more tests of pow.
14004         * math/auto-libm-test-out: Regenerated.
14005
14006 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14007
14008         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
14009         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
14010         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
14011
14012 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
14013
14014         [BZ #18525]
14015         * locales/km_KH: Remove timezone definition.
14016         * locales/lo_LA: Likewise.
14017         * locales/my_MM: Likewise.
14018         * locales/nan_TW@latin: Likewise.
14019         * locales/th_TH: Likewise.
14020         * locales/uk_UA: Likewise.
14021
14022 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
14023
14024         [BZ #18265]
14025         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
14026         (wcsncat): Likewise.
14027         (wcscmp): Likewise.
14028         (wcsncmp): Likewise.
14029
14030 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14031
14032         * test-skeleton.c (usage): New function.
14033         (main): Call usage when opt is '?'.
14034
14035 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14036
14037         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
14038         before first use.
14039
14040 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14041
14042         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
14043         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
14044         in there too.
14045
14046 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
14047
14048         * version.h (RELEASE): Set to "development".
14049         (VERSION): Set to "2.22.90"
14050
14051         * version.h (RELEASE): Set to "stable".
14052         (VERSION): Set to "2.22"
14053         * include/features.h (__GLIBC_MINOR__): Set to 22.
14054
14055 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
14056
14057         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
14058         Restructure macro to avoid "value computed is not used" warning.
14059         (atomic_compare_and_exchange_val_acq): Likewise.
14060
14061 2015-08-04  Andreas Schwab  <schwab@suse.de>
14062
14063         [BZ #18635]
14064         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
14065         ret.
14066         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
14067
14068 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
14069
14070         * po/pl.po: Updated translation.
14071         * po/uk.po: Likewise.
14072         * po/fi.po: Likewise.
14073         * po/ko.po: Likewise.
14074         * po/ru.po: Likewise.
14075         * po/vi.po: Likewise.
14076
14077 2015-07-31  Zack Weinberg  <zackw@panix.com>
14078
14079         [BZ #18681]
14080         * regexp.h: Add unconditional #warning stating that this header
14081         will be removed soon.  Revise banner comment to match.
14082         (compile): Consistently use ERROR instead of RETURN to report
14083         errors (partial fix for bz#18681).
14084         * regexp.c: Don't include regexp.h. Remove some unnecessary
14085         declarations.
14086
14087 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
14088
14089         * po/libc.pot: Regenerated.
14090
14091 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
14092
14093         [BZ #18740]
14094         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
14095         float-vlen4-arch-ext-cflags): Removed.
14096         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
14097         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
14098
14099 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14100
14101         [BZ #14113]
14102         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
14103         aligned to __aligned__.
14104         (pthread_cond_t, pthread_rwlock_t): Likewise.
14105
14106 2015-07-30  Torvald Riegel  <triegel@redhat.com>
14107
14108         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
14109
14110 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14111
14112         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
14113         (struct sigaction): Change sa_flags from a long to an int, and add
14114         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
14115
14116 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14117
14118         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
14119         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
14120         sysdeps/generic/sysdep.h include.
14121         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
14122         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
14123         sysdeps/hppa/sysdep.h.
14124         (ENTRY, PSEUDO): Undefine before defining.
14125
14126 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14127
14128         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
14129         from scratch to use INTERNAL_SYSCALL.
14130
14131 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14132
14133         [BZ #18078]
14134         * scripts/check-localplt.awk: Support alternate relocations.
14135         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
14136         sections.
14137         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
14138         malloc entries with + REL R_386_GLOB_DAT.
14139         * sysdeps/x86_64/localplt.data: New file.
14140
14141 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
14142
14143         [BZ #18731]
14144         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
14145         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
14146         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
14147
14148 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14149
14150         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
14151
14152 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14153
14154         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
14155         directly in terms of __sync_fetch_and_add and delete (int) cast.
14156
14157 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14158
14159         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
14160         the -D_ASM_IA64_CURRENT_H flag.
14161
14162 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14163
14164         [BZ #18641]
14165         * pwd/pwd.h (putpwent): Delete __nonnull markings.
14166
14167 2015-07-27  Andreas Schwab  <schwab@suse.de>
14168
14169         * conform/conformtest.pl (checknamespace): Filter out string
14170         literals while tokenizing.
14171
14172 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14173
14174         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14175         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
14176         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14177
14178 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14179
14180         * nptl/tst-join7mod.c: Add #include <string.h>.
14181
14182 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14183
14184         * sysdeps/nios2/libm-test-ulps: Update.
14185
14186 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14187
14188         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
14189         Fix order of arguments to the rt_sigprocmask syscall.
14190         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
14191         Likewise.
14192
14193 2015-07-24  Roland McGrath  <roland@hack.frob.com>
14194
14195         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
14196
14197 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14198
14199         [BZ #18457]
14200         * nptl/Makefile (tests): New test case tst-join7.
14201         (modules-names): New test case module tst-join7mod.
14202         * nptl/tst-join7.c: New file.
14203         * nptl/tst-join7mod.c: New file.
14204         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
14205         all translation units in libc.so, libpthread.so and rtld.
14206
14207 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14208
14209         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14210
14211 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
14212
14213         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
14214         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14215         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14216         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14217         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14218         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14219         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14220         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14221         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14222         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14223         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14224         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14225         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
14226         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
14227         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
14228         implementation.
14229
14230 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14231
14232         [BZ #17711]
14233         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14234         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
14235         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14236         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14237         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
14238         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14239
14240 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14241
14242         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
14243         instead of just saying load lock in the comments.
14244
14245 2015-07-23  Roland McGrath  <roland@hack.frob.com>
14246
14247         * sysdeps/unix/Subdirs: Moved ...
14248         * sysdeps/posix/Subdirs: ... here.
14249         * login/pty.h (struct termios, struct winsize): Add forward decls.
14250         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
14251         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
14252         * sysdeps/arm/nacl/libc.abilist: Updated.
14253         * sysdeps/nacl/libutil.abilist: New file.
14254
14255         * bits/signum.h: Update comments to mention 1003.1-2013 too.
14256         (SIGWINCH): New macro.
14257
14258         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
14259         * sysdeps/arm/nacl/libc.abilist: Add it.
14260
14261 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14262
14263         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
14264
14265 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14266
14267         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14268         Swap __glibc_reserved0 and sa_flags order.
14269
14270 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14271
14272         [BZ #18657]
14273         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
14274         are pending TLS destructor calls.
14275         * include/link.h (struct link_map): Add concurrency note for
14276         L_TLS_DTOR_COUNT.
14277         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
14278         Don't touch the link map flag.  Atomically increment
14279         l_tls_dtor_count.
14280         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
14281         Avoid taking the load lock and don't touch the link map flag.
14282         * stdlib/tst-tls-atexit-nodelete.c: New test case.
14283         * stdlib/Makefile (tests): Use it.
14284         * stdlib/tst-tls-atexit.c (do_test): dlopen
14285         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
14286         to allow tst-tls-atexit-nodelete test case to use it.
14287
14288 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14289
14290         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
14291         to bits/types.h.
14292         (msgqnum_t): New typedef.
14293         (msglen_t): Likewise.
14294         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
14295         and msg_qbytes type to msglen_t.
14296
14297 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14298
14299         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
14300         pad0 to __glibc_reserved0.
14301         (struct stat64): Likewise.
14302
14303 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14304
14305         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14306         Change sa_flags from a long to an int and add __glibc_reserved0 before
14307         it for padding.
14308
14309 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14310
14311         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
14312         anonymous by deleting "siginfo" name.
14313
14314 2015-07-21  Roland McGrath  <roland@hack.frob.com>
14315
14316         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
14317         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
14318         rather than __nacl_irt_filename.
14319         * sysdeps/nacl/xstat.c (__xstat): Likewise.
14320
14321         * NEWS: New item for arm-nacl port.
14322         * sysdeps/arm/nacl/libc.abilist: New file.
14323         * sysdeps/nacl/ld.abilist: New file.
14324         * sysdeps/nacl/libBrokenLocale.abilist: New file.
14325         * sysdeps/nacl/libanl.abilist: New file.
14326         * sysdeps/nacl/libcrypt.abilist: New file.
14327         * sysdeps/nacl/libdl.abilist: New file.
14328         * sysdeps/nacl/libm.abilist: New file.
14329         * sysdeps/nacl/libpthread.abilist: New file.
14330         * sysdeps/nacl/libresolv.abilist: New file.
14331         * sysdeps/nacl/librt.abilist: New file.
14332
14333 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
14334
14335         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
14336         __startcontext to initialize the new context.
14337         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
14338         up CFI directive to forbid further backtracing.
14339
14340 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
14341
14342         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
14343         reference.
14344         * charmaps/ANSI_X3.4-1968: Likewise.
14345         * charmaps/BS_4730: Likewise.
14346         * charmaps/BS_VIEWDATA: Likewise.
14347         * charmaps/CP1250: Likewise.
14348         * charmaps/CP1251: Likewise.
14349         * charmaps/CP1252: Likewise.
14350         * charmaps/CP1253: Likewise.
14351         * charmaps/CP1254: Likewise.
14352         * charmaps/CP1255: Likewise.
14353         * charmaps/CP1256: Likewise.
14354         * charmaps/CSN_369103: Likewise.
14355         * charmaps/EBCDIC-DK-NO: Likewise.
14356         * charmaps/GB_1988-80: Likewise.
14357         * charmaps/GREEK-CCITT: Likewise.
14358         * charmaps/GREEK7: Likewise.
14359         * charmaps/INIS-8: Likewise.
14360         * charmaps/ISIRI-3342: Likewise.
14361         * charmaps/ISO_2033-1983: Likewise.
14362         * charmaps/ISO_5427-EXT: Likewise.
14363         * locales/POSIX: Likewise.
14364         * locales/ar_SA: Likewise.
14365         * locales/be_BY: Likewise.
14366         * locales/be_BY@latin: Likewise.
14367         * locales/ca_ES: Likewise.
14368         * locales/cs_CZ: Likewise.
14369         * locales/da_DK: Likewise.
14370         * locales/de_BE: Likewise.
14371         * locales/de_CH: Likewise.
14372         * locales/de_LU: Likewise.
14373         * locales/en_AU: Likewise.
14374         * locales/en_BW: Likewise.
14375         * locales/en_CA: Likewise.
14376         * locales/en_DK: Likewise.
14377         * locales/en_GB: Likewise.
14378         * locales/en_IE: Likewise.
14379         * locales/en_NZ: Likewise.
14380         * locales/en_ZA: Likewise.
14381         * locales/en_ZW: Likewise.
14382         * locales/es_AR: Likewise.
14383         * locales/es_BO: Likewise.
14384         * locales/es_CL: Likewise.
14385         * locales/es_CO: Likewise.
14386         * locales/es_DO: Likewise.
14387         * locales/es_EC: Likewise.
14388         * locales/es_ES: Likewise.
14389         * locales/es_HN: Likewise.
14390         * locales/es_MX: Likewise.
14391         * locales/es_PA: Likewise.
14392         * locales/es_PE: Likewise.
14393         * locales/es_PY: Likewise.
14394         * locales/es_SV: Likewise.
14395         * locales/es_US: Likewise.
14396         * locales/es_UY: Likewise.
14397         * locales/es_VE: Likewise.
14398         * locales/et_EE: Likewise.
14399         * locales/fa_IR: Likewise.
14400         * locales/fo_FO: Likewise.
14401         * locales/fr_CA: Likewise.
14402         * locales/fr_CH: Likewise.
14403         * locales/gv_GB: Likewise.
14404         * locales/he_IL: Likewise.
14405         * locales/hr_HR: Likewise.
14406         * locales/id_ID: Likewise.
14407         * locales/is_IS: Likewise.
14408         * locales/it_CH: Likewise.
14409         * locales/iw_IL: Likewise.
14410         * locales/kl_GL: Likewise.
14411         * locales/ko_KR: Likewise.
14412         * locales/kw_GB: Likewise.
14413         * locales/lg_UG: Likewise.
14414         * locales/lt_LT: Likewise.
14415         * locales/lv_LV: Likewise.
14416         * locales/mi_NZ: Likewise.
14417         * locales/nhn_MX: Likewise.
14418         * locales/nl_BE: Likewise.
14419         * locales/pl_PL: Likewise.
14420         * locales/sk_SK: Likewise.
14421         * locales/sl_SI: Likewise.
14422         * locales/sv_FI: Likewise.
14423         * locales/tl_PH: Likewise.
14424         * locales/tr_TR: Likewise.
14425         * locales/vi_VN: Likewise.
14426
14427 2015-07-21  Khem Raj  <raj.khem@gmail.com>
14428
14429         [BZ #17475]
14430         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
14431         of tu_IN and bh_IN.
14432
14433 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
14434
14435         [BZ #18694]
14436         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
14437         bits/wordsize.h.
14438         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
14439
14440 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14441
14442         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
14443         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
14444         (spawn_thread): New function.
14445         (load): Rename to reg_dtor_and_close.  Move dlopen to...
14446         (do_test): ... here.  Use IS_LOADED to test for its
14447         availability.
14448
14449 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
14450
14451         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
14452
14453 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
14454
14455         [BZ #18696]
14456         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
14457         si_addr_bnd.
14458         (si_lower): New.
14459         (si_upper): Likewise.
14460
14461 2015-07-16  David S. Miller  <davem@davemloft.net>
14462
14463         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
14464
14465 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14466
14467         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
14468         buffer.
14469         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
14470         fail output information.
14471
14472 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14473
14474         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
14475         and strstr-ppc64..
14476         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
14477         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
14478         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
14479         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
14480         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
14481
14482 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14483
14484         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14485         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14486         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14487         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14488
14489 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14490
14491         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14492         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
14493         rtld_hidden_proto.
14494         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
14495
14496 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14497
14498         * tst-nodelete-opened.c (do_test): Add comment to clarify how
14499         the test can fail.
14500
14501         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
14502
14503         [BZ #18676]
14504         * elf/tst-nodelete-opened.c: New test case.
14505         * elf/tst-nodelete-opened-lib.c: New test case module.
14506         * elf/Makefile (tests, modules-names): Use them.
14507         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
14508         early.
14509
14510 2015-07-15  David S. Miller  <davem@davemloft.net>
14511
14512         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
14513         futex-intenal.h
14514         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
14515         * sysdeps/sparc/sparc64/Makefile: Likewise.
14516         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
14517         Remove space from macro define.
14518         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
14519
14520 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
14521
14522         [BZ #17475]
14523         * locale/iso-639.def: Update Bhili and Tulu language codes as
14524         per iso639-3.
14525
14526 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
14527
14528         * elf/tst-leaks1.c (main): Converted to ...
14529         (do_test): ... this.
14530         (TEST_FUNCTION): New macro.
14531         Include test-skeleton.c.
14532         * localedata/tst-langinfo.c (main): Converted to ...
14533         (do_test): ... this.
14534         (TEST_FUNCTION): New macro.
14535         Include test-skeleton.c.
14536         * math/test-fpucw.c (main): Converted to ...
14537         (do_test): ... this.
14538         (TEST_FUNCTION): New macro.
14539         Include test-skeleton.c.
14540         * math/test-tgmath.c (main): Converted to ...
14541         (do_test): ... this.
14542         (TEST_FUNCTION): New macro.
14543         Include test-skeleton.c.
14544         * math/test-tgmath2.c (main): Converted to ...
14545         (do_test): ... this.
14546         (TEST_FUNCTION): New macro.
14547         Include test-skeleton.c.
14548         * setjmp/tst-setjmp.c (main): Converted to ...
14549         (do_test): ... this.
14550         (TEST_FUNCTION): New macro.
14551         Include test-skeleton.c.
14552         * stdio-common/tst-sscanf.c (main): Converted to ...
14553         (do_test): ... this.
14554         (TEST_FUNCTION): New macro.
14555         Include test-skeleton.c.
14556         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
14557         (do_test): ... this.
14558         (TEST_FUNCTION): New macro.
14559         Include test-skeleton.c.
14560
14561         * elf/tst-audit9.c (main): Converted to ...
14562         (do_test): ... this.
14563         (TEST_FUNCTION): New macro.
14564         Include test-skeleton.c.
14565
14566 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
14567
14568         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
14569
14570 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14571
14572         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
14573         New variable.
14574
14575 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14576
14577         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14578
14579 2015-07-14  Roland McGrath  <roland@hack.frob.com>
14580
14581         * sysdeps/generic/dl-fileid.h: New file.
14582         * sysdeps/posix/dl-fileid.h: New file.
14583         * sysdeps/nacl/dl-fileid.h: New file.
14584         * include/link.h: Include <dl-fileid.h>.
14585         (struct link_map): Replace l_dev and l_ino with l_file_id.
14586         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
14587         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
14588         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
14589
14590 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14591
14592         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
14593
14594 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14595
14596         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
14597         Add iff $CXX is set.
14598         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
14599         Likewise.
14600         (tst-nodelete-zmodiff): Likewise.
14601         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
14602
14603 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14604
14605         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
14606
14607 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14608
14609         * sysdeps/aarch64/fpu/math_private.h
14610         (define math_opt_barrier): Add AArch64 version.
14611         (math_force_eval): Likewise.
14612
14613 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14614
14615         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
14616
14617 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
14618
14619         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
14620         %ld with %jd and cast to intmax_t.
14621         (do_test_length_zero): Likewise.
14622
14623 2015-07-10  Roland McGrath  <roland@hack.frob.com>
14624
14625         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
14626
14627 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
14628
14629         * sysdeps/tile/libm-test-ulps: Regenerated.
14630
14631         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
14632         Comment out the whole function, not just its body.
14633
14634 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14635
14636         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
14637         locks.
14638
14639         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
14640
14641 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14642
14643         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
14644         (sem_assume_only_signals_cause_futex_EINTR): Remove.
14645
14646 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14647
14648         * sysdeps/nptl/futex-internal.h: New file.
14649         * sysdeps/nacl/futex-internal.h: New file.
14650         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
14651         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
14652         error checking.
14653         (setxid_unmark_thread): Likewise.
14654         (__nptl_setxid): Likewise.
14655         (__wait_lookup_done): Likewise.
14656         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
14657         * nptl/nptl-init.c (sighandler_setxid): Likewise.
14658         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
14659         * nptl/pthread_once.c (clear_once_control): Likewise.
14660         (__pthread_once_slow): Likewise.
14661         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
14662         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
14663         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
14664         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14665         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
14666         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
14667         Likewise.
14668         (__pthread_rwlock_rdlock): Likewise.
14669         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
14670         Likewise.
14671         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
14672         Likewise.
14673         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
14674         Likewise.
14675         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
14676         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
14677         Likewise.
14678         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
14679         __ASSUME_PRIVATE_FUTEX check.
14680         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
14681         Check that shared futexes are supported.
14682         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
14683         wrappers with error checking.
14684         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
14685         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
14686         * nptl/pthread_barrierattr_setpshared.c
14687         (pthread_barrierattr_setpshared): Check that shared futexes are
14688         supported.
14689         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
14690         Likewise.
14691         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
14692         Likewise.
14693         * nptl/sem_init.c (futex_private_if_supported): Remove.
14694         (__new_sem_init): Adapt and check that shared futexes are supported.
14695         * nptl/sem_open.c (sem_open): Likewise.
14696         * nptl/sem_post.c (futex_wake): Remove.
14697         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
14698         (do_futex_wait): Use futex wrappers with error checking.
14699         * nptl/sem_wait.c: Include lowlevellock.h.
14700         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
14701         Use futex_supports_pshared.
14702         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
14703         Use futex wrappers with error checking.
14704         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
14705         Likewise.
14706         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
14707         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
14708         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
14709         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
14710         (futex_wake): Likewise.
14711         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
14712         (do_futex_wait): Use futex wrappers with error checking.
14713         (__new_sem_wait_slow): Update EINTR handling.
14714         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
14715
14716 2015-07-09  Martin Sebor  <msebor@redhat.com>
14717
14718         [BZ #18435]
14719         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
14720         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
14721         * nptl/Makefile (test-xfail-tst-once5): Define.
14722
14723 2015-07-09  Roland McGrath  <roland@hack.frob.com>
14724
14725         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
14726         * elf/dl-minimal.c: For readability, reorder some definitions and
14727         introduce more page breaks.  Include <stdio.h>.
14728         (__libc_fatal): New function.
14729
14730         * include/unistd.h: Add rtld_hidden_proto for _exit.
14731         * posix/_exit.c: Add rtld_hidden_def.
14732         * sysdeps/mach/hurd/_exit.c: Likewise.
14733         * sysdeps/nacl/_exit.c: Likewise.
14734         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
14735         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
14736
14737 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
14738
14739         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
14740         bndmov encoding with zero displacement.
14741
14742 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
14743             H.J. Lu  <hongjiu.lu@intel.com>
14744
14745         [BZ #18134]
14746         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
14747         * sysdeps/i386/configure: Regenerated.
14748         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
14749         (_dl_runtime_profile): Save and restore Intel MPX return bound
14750         registers when calling _dl_call_pltexit.  Add
14751         PRESERVE_BND_REGS_PREFIX before return.
14752         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
14753         (LRV_BND1_OFFSET): Likewise.
14754         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
14755         lrv_bnd1.
14756         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
14757         typo in bndmov encoding.
14758         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
14759         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
14760         branch instructions to preserve bounds.
14761
14762 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14763
14764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
14765         [GLIBC_2.22]: Add fmemopen.
14766
14767 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14768
14769         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
14770         returns an error, also try to use host port from __mach_host_self for
14771         the __vm_wire call.
14772         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
14773
14774 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14775
14776         [BZ #18400]
14777         [BZ #18648]
14778         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
14779         Fix pr_uid and pr_gid members.
14780         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
14781         definition to elf_greg_t.
14782
14783 2015-07-08  Roland McGrath  <roland@hack.frob.com>
14784
14785         [BZ #18383]
14786         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
14787         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
14788         * sysdeps/arm/configure: Regenerated.
14789         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
14790         (test-xfail-tst-tlsalign-static): Variable removed.
14791
14792         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
14793         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
14794         rather than explicit 'ln -s'.
14795
14796         * resolv/rpc/netdb.h: New file.
14797         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
14798
14799 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14800
14801         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
14802         length buffers.
14803         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
14804         test-skeleton.c.
14805
14806         [BZ #6544]
14807         [BZ #11216]
14808         [BZ #12836]
14809         [BZ #13151]
14810         [BZ #13152]
14811         [BZ #14292]
14812         * include/stdio.h (fmemopen): Remove hidden prototype.
14813         (__fmemopen): Add new hidden prototype.
14814         * libio/Makefile: Add oldfmemopen object.
14815         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
14816         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
14817         compliance.
14818         * libio/oldfmemopen.c: New file: old fmemopen implementation for
14819         symbol compatibility.
14820         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
14821         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
14822         fmemopen.
14823         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
14824         on append and read mode.
14825         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
14826         fmemopen.
14827         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
14828         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
14829         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
14830         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
14831         Likewise.
14832         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
14833         [GLIBC_2.22]: Likewise.
14834         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
14835         Likewise.
14836         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
14837         Likewise.
14838         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
14839         [GLIBC_2.22]: Likewise.
14840         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
14841         [GLIBC_2.22]: Likewise.
14842         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
14843         [GLIBC_2.22]: Likewise.
14844         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
14845         [GLIBC_2.22]: Likewise.
14846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
14847         [GLIBC_2.22]: Likewise.
14848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
14849         [GLIBC_2.22]: Likewise.
14850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
14851         [GLIBC_2.22]: Likewise.
14852         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
14853         Likewise.
14854         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
14855         Likewise.
14856         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
14857         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
14858         [GLIBC_2.22]: Likewise.
14859         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
14860         [GLIBC_2.22]: Likewise.
14861         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
14862         [GLIBC_2.22]: Likewise.
14863         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
14864         [GLIBC_2.22]: Likewise.
14865         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
14866         Likewise.
14867         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
14868         Likewise.
14869         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
14870         Likewise.
14871         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
14872         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
14873
14874 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
14875
14876         [BZ #18643]
14877         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
14878         IPV6_PATHMTU, and IPV6_DONTFRAG.
14879
14880 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
14881
14882         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
14883         and _IO_UNBUFFERED.
14884         * libio/oldfileops.c: Likewise.
14885         * libio/wfileops.c: Likewise.
14886
14887 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
14888
14889         * nscd/selinux.c: Delete selinux/flask.h include.
14890
14891 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
14892
14893         [BZ #18641]
14894         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
14895         (putpwent): Likewise.
14896         (getpwnam): Likewise.
14897         (getpwent_r): Likewise.
14898         (getpwuid_r): Likewise.
14899         (getpwnam_r): Likewise.
14900         (fgetpwent_r): Likewise.
14901
14902 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
14903
14904         [BZ #18557]
14905         * inet/rcmd.c (__validuser2_sa): Check user first to
14906         short-circuit host check.
14907
14908 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
14909             Mikhail Ilin  <m.ilin@samsung.com>
14910
14911         [BZ #17833]
14912         * elf/Makefile (tests): Add tst-nodelete.
14913         (modules-names): Add tst-nodelete-uniquemod.
14914         (tst-nodelete-uniquemod.so-no-z-defs): New.
14915         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
14916         (tst-nodelete-zmod.so-no-z-defs): Likewise.
14917         ($(objpfx)tst-nodelete): Likewise.
14918         ($(objpfx)tst-nodelete.out): Likewise.
14919         (LDFLAGS-tst-nodelete): Likewise.
14920         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
14921         * elf/dl-close.c (_dl_close_worker): Add a parameter to
14922         implement forced object deletion.
14923         (_dl_close): Pass false to _dl_close_worker.
14924         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
14925         * elf/tst-nodelete.cc: New file.
14926         * elf/tst-nodeletelib.cc: Likewise.
14927         * elf/tst-znodeletelib.cc: Likewise.
14928         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
14929
14930 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
14931
14932         [BZ #18508]
14933         * stdlib/Makefile ($(objpfx)tst-makecontext3):
14934         Depend on $(libdl).
14935         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
14936         is not called infinitely times.
14937         (backtrace_helper): New function.
14938         (trace_arg): New struct.
14939         (st1): Enlarge stack size.
14940         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
14941         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
14942         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
14943         Likewise.
14944
14945 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
14946
14947         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14948
14949 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
14950
14951         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
14952         Include sys/types.h instead of bits/types.h.
14953         Remove inclusion of bits/wordsize.h.
14954
14955 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14956
14957         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
14958         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
14959         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
14960         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
14961         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
14962         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
14963
14964 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14965
14966         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
14967         link-defines.sym.
14968         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
14969         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
14970         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
14971         and LR_SIZE.
14972         * sysdeps/i386/link-defines.sym: New file.
14973
14974 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14975
14976         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
14977         (modules-names): Add tst-auditmod3a tst-auditmod3b.
14978         ($(objpfx)tst-audit3): New rule.
14979         ($(objpfx)tst-audit3.out): Likewise.
14980         * sysdeps/i386/tst-audit3.c: New file.
14981         * sysdeps/i386/tst-audit3.h: Likewise.
14982         * sysdeps/i386/tst-auditmod3a.c: Likewise.
14983         * sysdeps/i386/tst-auditmod3b.c: Likewise.
14984
14985 2015-07-07  Torvald Riegel  <triegel@redhat.com>
14986
14987         [BZ #18633]
14988         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
14989         pointer in C code.
14990         (__strcat_c): Likewise.
14991         (__strcat_g): Likewise.
14992
14993 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
14994
14995         [BZ #18592]
14996         * misc/sbrk.c: Set errno to ENOMEM on overflow.
14997
14998 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
14999
15000         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
15001         New function.  (__ieee754_sqrtf): New function.
15002         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
15003         New function.
15004         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
15005         New function.
15006
15007 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15008
15009         * sysdeps/ieee754/support.c: Remove unused file.
15010
15011 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15012
15013         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
15014         registers instead of d ones so the layout is kernel abi compatible.
15015         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
15016         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
15017         Likewise.
15018
15019 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15020
15021         * sysdeps/aarch64/libm-test-ulps: Regenerated.
15022
15023 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15024
15025         [BZ #18619]
15026         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
15027         and return argument in case of subnormal argument.
15028
15029 2015-07-01  Martin Sebor  <msebor@redhat.com>
15030
15031         [BZ #18435]
15032         * nptl/Makefile: Add tst-once5.cc.
15033         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15034         Remove macro redefinitions.
15035         * nptl/tst-once5.cc: New test.
15036
15037 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15038
15039         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
15040
15041         * sysdeps/arm/libm-test-ulps: Regenerated.
15042
15043         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
15044         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
15045
15046 2015-06-30  Torvald Riegel  <triegel@redhat.com>
15047
15048         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
15049         lll_lock_wait_private and lll_futex_wake probes.
15050
15051         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15052         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
15053         Likewise.
15054         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
15055         atomic_spin_nop.
15056         * sysdeps/x86_64/bits/atomic.h: Likewise.
15057         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
15058         to atomic_spin_nop and move ...
15059         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
15060         ... here and ...
15061         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
15062         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
15063         atomic_spin_nop instead of BUSY_WAIT_NOP.
15064         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
15065         Likewise.
15066         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
15067         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15068         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
15069         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
15070         instead of atomic_delay.
15071
15072 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
15073
15074         [BZ #18613]
15075         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
15076         X_ADJ not X when adjusting exponent.
15077         (__ieee754_gamma_r): Do intermediate computations in
15078         round-to-nearest then adjust overflowing and underflowing results
15079         as needed.
15080         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
15081         of X_ADJ not X when adjusting exponent.
15082         (__ieee754_gammaf_r): Do intermediate computations in
15083         round-to-nearest then adjust overflowing and underflowing results
15084         as needed.
15085         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
15086         log of X_ADJ not X when adjusting exponent.
15087         (__ieee754_gammal_r): Do intermediate computations in
15088         round-to-nearest then adjust overflowing and underflowing results
15089         as needed.  Use 1.0L not 1.0f as numerator of division.
15090         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
15091         log of X_ADJ not X when adjusting exponent.
15092         (__ieee754_gammal_r): Do intermediate computations in
15093         round-to-nearest then adjust overflowing and underflowing results
15094         as needed.  Use 1.0L not 1.0f as numerator of division.
15095         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
15096         of X_ADJ not X when adjusting exponent.
15097         (__ieee754_gammal_r): Do intermediate computations in
15098         round-to-nearest then adjust overflowing and underflowing results
15099         as needed.  Use 1.0L not 1.0f as numerator of division.
15100         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
15101         to auto-libm-test-in.
15102         (tgamma_test): Use ALL_RM_TEST.
15103         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
15104         tests of tgamma with spurious-overflow.
15105         * math/auto-libm-test-out: Regenerated.
15106         * math/gen-libm-have-vector-test.sh: Do not check for START.
15107         * sysdeps/i386/fpu/libm-test-ulps: Update.
15108         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15109
15110         [BZ #18612]
15111         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
15112         arguments, just return 0.5 times the argument, with underflow
15113         forced as needed.
15114         * math/auto-libm-test-in: Add more tests of j1.
15115         * math/auto-libm-test-out: Regenerated.
15116
15117         [BZ #16559]
15118         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
15119         (__ieee754_j1): Force underflow exception for small results.
15120         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
15121         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
15122         (__ieee754_j1f): Force underflow exception for small results.
15123         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15124         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15125         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15126         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
15127         (__ieee754_j1l): Force underflow exception for small results.
15128         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15129         * math/auto-libm-test-in: Add more tests of j1 and jn.
15130         * math/auto-libm-test-out: Regenerated.
15131
15132         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
15133         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
15134         (PF_MPLS): Likewise.
15135         (AF_IB): Likewise.
15136         (AF_MPLS): Likewise.
15137         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
15138         value and macro.
15139         (MS_RMT_MASK): Include MS_LAZYTIME.
15140
15141 2015-06-26  Mel Gorman  <mgorman@suse.de>
15142
15143         [BZ #18502]
15144         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
15145         already minimal.
15146
15147 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
15148
15149         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
15150         (DT_MIPS_NUM): Update.
15151         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
15152         DT_MIPS_RLD_MAP_REL.
15153
15154 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
15155
15156         [BZ #16559]
15157         [BZ #18602]
15158         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
15159         round-to-nearest internally then recompute results that
15160         underflowed to zero in the original rounding mode.
15161         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15162         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15163         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15164         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15165         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
15166         * sysdeps/i386/fpu/libm-test-ulps: Update.
15167         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15168
15169 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
15170
15171         * NEWS: Fixed description of link with vector math library.
15172
15173 2015-06-25  Andreas Schwab  <schwab@suse.de>
15174
15175         [BZ #18549]
15176         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
15177         * libio/test-fmemopen.c (do_test): Add test for it.
15178
15179 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15180
15181         [BZ #17841]
15182         * Makeconfig (no-pie-ldflag): New.
15183         (+link): Set to $(+link-pie) if default to PIE.
15184         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
15185         * config.make.in (build-pie-default): New.
15186         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
15187         is default.  AC_SUBST.
15188         * configure: Regenerated.
15189         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
15190
15191 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15192
15193         * nptl/descr.h (struct pthread): Change type of field setxid_futex
15194         to 'unsigned int'.
15195
15196         * resolv/gai_misc.h (struct waitlist): Change type of field
15197         counterp to 'volatile unsigned int *'.
15198         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
15199         FUTEXADDR and OLDVAL.
15200         * resolv/getaddrinfo_a.c (getaddrinfo_a):
15201         Give local variable TOTAL type 'volatile unsigned int'.
15202         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15203         * resolv/gai_suspend.c (gai_suspend):
15204         Give local variable CNTR type 'unsigned int'.
15205
15206         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
15207         counterp to 'volatile unsigned int *'.
15208         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
15209         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
15210         (aio_suspend): Give local variable CNTR type 'unsigned int'.
15211         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
15212         Give local variable TOTAL type 'volatile unsigned int'.
15213         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15214
15215 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15216
15217         [BZ #18383]
15218         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
15219         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
15220         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
15221         comment for i386/x86-64.
15222         (test-xfail-tst-tlsalign-extern-static): Removed.
15223
15224 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15225
15226         * math/test-double.h: New file.
15227         * math/test-float.h: Likewise.
15228         * math/test-ldouble.h: Likewise.
15229         * math/test-math-inline.h: Likewise.
15230         * math/test-math-no-inline.h: Likewise.
15231         * math/test-math-scalar.h: Likewise.
15232         * math/test-math-vector.h: Likewise.
15233         * math/test-vec-loop.h: Remove file.  Contents moved into
15234         test-math-vector.h.
15235         * math/libm-test.inc (MATHCONST): Do not document macro.
15236         * math/test-double.c: Include test-double.h, test-math-no-inline.h
15237         and test-math-scalar.h.
15238         (FUNC): Remove macro.
15239         (FUNC_TEST): Likewise.
15240         (FLOAT): Likewise.
15241         (MATHCONST): Likewise.
15242         (PRINTF_EXPR): Likewise.
15243         (PRINTF_XEXPR): Likewise.
15244         (PRINTF_NEXPR): Likewise.
15245         (TEST_DOUBLE): Likewise.
15246         (TEST_MATHVEC): Likewise.
15247         (__NO_MATH_INLINES): Likewise.
15248         * math/test-float.c: Include test-float.h, test-math-no-inline.h
15249         and test-math-scalar.h.
15250         (FUNC): Remove macro.
15251         (FUNC_TEST): Likewise.
15252         (FLOAT): Likewise.
15253         (MATHCONST): Likewise.
15254         (PRINTF_EXPR): Likewise.
15255         (PRINTF_XEXPR): Likewise.
15256         (PRINTF_NEXPR): Likewise.
15257         (TEST_FLOAT): Likewise.
15258         (TEST_MATHVEC): Likewise.
15259         (__NO_MATH_INLINES): Likewise.
15260         * math/test-idouble.c: Include test-double.h, test-math-inline.h
15261         and test-math-scalar.h.
15262         (FUNC): Remove macro.
15263         (FUNC_TEST): Likewise.
15264         (FLOAT): Likewise.
15265         (MATHCONST): Likewise.
15266         (PRINTF_EXPR): Likewise.
15267         (PRINTF_XEXPR): Likewise.
15268         (PRINTF_NEXPR): Likewise.
15269         (TEST_DOUBLE): Likewise.
15270         (TEST_MATHVEC): Likewise.
15271         (TEST_INLINE): Likewise.
15272         (__NO_MATH_INLINES): Likewise.
15273         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
15274         test-math-scalar.h.
15275         (FUNC): Remove macro.
15276         (FUNC_TEST): Likewise.
15277         (FLOAT): Likewise.
15278         (MATHCONST): Likewise.
15279         (PRINTF_EXPR): Likewise.
15280         (PRINTF_XEXPR): Likewise.
15281         (PRINTF_NEXPR): Likewise.
15282         (TEST_FLOAT): Likewise.
15283         (TEST_MATHVEC): Likewise.
15284         (TEST_INLINE): Likewise.
15285         (__NO_MATH_INLINES): Likewise.
15286         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
15287         and test-math-scalar.h.
15288         (FUNC): Remove macro.
15289         (FUNC_TEST): Likewise.
15290         (FLOAT): Likewise.
15291         (MATHCONST): Likewise.
15292         (PRINTF_EXPR): Likewise.
15293         (PRINTF_XEXPR): Likewise.
15294         (PRINTF_NEXPR): Likewise.
15295         (TEST_LDOUBLE): Likewise.
15296         (TEST_MATHVEC): Likewise.
15297         (TEST_INLINE): Likewise.
15298         (__NO_MATH_INLINES): Likewise.
15299         * math/test-ldouble.c: Include test-ldouble.h,
15300         test-math-no-inline.h and test-math-scalar.h.
15301         (FUNC): Remove macro.
15302         (FUNC_TEST): Likewise.
15303         (FLOAT): Likewise.
15304         (MATHCONST): Likewise.
15305         (PRINTF_EXPR): Likewise.
15306         (PRINTF_XEXPR): Likewise.
15307         (PRINTF_NEXPR): Likewise.
15308         (TEST_LDOUBLE): Likewise.
15309         (TEST_MATHVEC): Likewise.
15310         (__NO_MATH_INLINES): Likewise.
15311         * math/test-double-vlen2.h: Include test-double.h,
15312         test-math-no-inline.h and test-math-vector.h.
15313         (FLOAT): Remove macro.
15314         (FUNC): Likewise.
15315         (MATHCONST): Likewise.
15316         (PRINTF_EXPR): Likewise.
15317         (PRINTF_XEXPR): Likewise.
15318         (PRINTF_NEXPR): Likewise.
15319         (TEST_DOUBLE): Likewise.
15320         (TEST_MATHVEC): Likewise.
15321         (__NO_MATH_INLINES): Likewise.
15322         (CNCT): Likewise.
15323         (CONCAT): Likewise.
15324         (WRAPPER_NAME): Likewise.
15325         (WRAPPER_DECL): Likewise.
15326         (WRAPPER_DECL_ff): Likewise.
15327         (WRAPPER_DECL_fFF): Likewise.
15328         (VECTOR_WRAPPER): Likewise.
15329         (VECTOR_WRAPPER_ff): Likewise.
15330         (VECTOR_WRAPPER_fFF): Likewise.
15331         (VEC_LEN): New macro.
15332         * math/test-double-vlen4.h: Include test-double.h,
15333         test-math-no-inline.h and test-math-vector.h.
15334         (FLOAT): Remove macro.
15335         (FUNC): Likewise.
15336         (MATHCONST): Likewise.
15337         (PRINTF_EXPR): Likewise.
15338         (PRINTF_XEXPR): Likewise.
15339         (PRINTF_NEXPR): Likewise.
15340         (TEST_DOUBLE): Likewise.
15341         (TEST_MATHVEC): Likewise.
15342         (__NO_MATH_INLINES): Likewise.
15343         (CNCT): Likewise.
15344         (CONCAT): Likewise.
15345         (WRAPPER_NAME): Likewise.
15346         (WRAPPER_DECL): Likewise.
15347         (WRAPPER_DECL_ff): Likewise.
15348         (WRAPPER_DECL_fFF): Likewise.
15349         (VECTOR_WRAPPER): Likewise.
15350         (VECTOR_WRAPPER_ff): Likewise.
15351         (VECTOR_WRAPPER_fFF): Likewise.
15352         (VEC_LEN): New macro.
15353         * math/test-double-vlen8.h: Include test-double.h,
15354         test-math-no-inline.h and test-math-vector.h.
15355         (FLOAT): Remove macro.
15356         (FUNC): Likewise.
15357         (MATHCONST): Likewise.
15358         (PRINTF_EXPR): Likewise.
15359         (PRINTF_XEXPR): Likewise.
15360         (PRINTF_NEXPR): Likewise.
15361         (TEST_DOUBLE): Likewise.
15362         (TEST_MATHVEC): Likewise.
15363         (__NO_MATH_INLINES): Likewise.
15364         (CNCT): Likewise.
15365         (CONCAT): Likewise.
15366         (WRAPPER_NAME): Likewise.
15367         (WRAPPER_DECL): Likewise.
15368         (WRAPPER_DECL_ff): Likewise.
15369         (WRAPPER_DECL_fFF): Likewise.
15370         (VECTOR_WRAPPER): Likewise.
15371         (VECTOR_WRAPPER_ff): Likewise.
15372         (VECTOR_WRAPPER_fFF): Likewise.
15373         (VEC_LEN): New macro.
15374         * math/test-float-vlen4.h: Include test-float.h,
15375         test-math-no-inline.h and test-math-vector.h.
15376         (FLOAT): Remove macro.
15377         (FUNC): Likewise.
15378         (MATHCONST): Likewise.
15379         (PRINTF_EXPR): Likewise.
15380         (PRINTF_XEXPR): Likewise.
15381         (PRINTF_NEXPR): Likewise.
15382         (TEST_FLOAT): Likewise.
15383         (TEST_MATHVEC): Likewise.
15384         (__NO_MATH_INLINES): Likewise.
15385         (CNCT): Likewise.
15386         (CONCAT): Likewise.
15387         (WRAPPER_NAME): Likewise.
15388         (WRAPPER_DECL): Likewise.
15389         (WRAPPER_DECL_ff): Likewise.
15390         (WRAPPER_DECL_fFF): Likewise.
15391         (VECTOR_WRAPPER): Likewise.
15392         (VECTOR_WRAPPER_ff): Likewise.
15393         (VECTOR_WRAPPER_fFF): Likewise.
15394         (VEC_LEN): New macro.
15395         * math/test-float-vlen8.h: Include test-float.h,
15396         test-math-no-inline.h and test-math-vector.h.
15397         (FLOAT): Remove macro.
15398         (FUNC): Likewise.
15399         (MATHCONST): Likewise.
15400         (PRINTF_EXPR): Likewise.
15401         (PRINTF_XEXPR): Likewise.
15402         (PRINTF_NEXPR): Likewise.
15403         (TEST_FLOAT): Likewise.
15404         (TEST_MATHVEC): Likewise.
15405         (__NO_MATH_INLINES): Likewise.
15406         (CNCT): Likewise.
15407         (CONCAT): Likewise.
15408         (WRAPPER_NAME): Likewise.
15409         (WRAPPER_DECL): Likewise.
15410         (WRAPPER_DECL_ff): Likewise.
15411         (WRAPPER_DECL_fFF): Likewise.
15412         (VECTOR_WRAPPER): Likewise.
15413         (VECTOR_WRAPPER_ff): Likewise.
15414         (VECTOR_WRAPPER_fFF): Likewise.
15415         (VEC_LEN): New macro.
15416         * math/test-float-vlen16.h: Include test-float.h,
15417         test-math-no-inline.h and test-math-vector.h.
15418         (FLOAT): Remove macro.
15419         (FUNC): Likewise.
15420         (MATHCONST): Likewise.
15421         (PRINTF_EXPR): Likewise.
15422         (PRINTF_XEXPR): Likewise.
15423         (PRINTF_NEXPR): Likewise.
15424         (TEST_FLOAT): Likewise.
15425         (TEST_MATHVEC): Likewise.
15426         (__NO_MATH_INLINES): Likewise.
15427         (CNCT): Likewise.
15428         (CONCAT): Likewise.
15429         (WRAPPER_NAME): Likewise.
15430         (WRAPPER_DECL): Likewise.
15431         (WRAPPER_DECL_ff): Likewise.
15432         (WRAPPER_DECL_fFF): Likewise.
15433         (VECTOR_WRAPPER): Likewise.
15434         (VECTOR_WRAPPER_ff): Likewise.
15435         (VECTOR_WRAPPER_fFF): Likewise.
15436         (VEC_LEN): New macro.
15437         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
15438         test-vec-loop.h.
15439         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15440         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15441         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15442         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15443         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15444         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15445         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
15446
15447 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15448
15449         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
15450         (__getlogin_r): ... this.
15451
15452 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15453
15454         [BZ #18594]
15455         * math/s_ccosh.c (__ccosh): Compare with least normal value
15456         instead of comparing class with FP_SUBNORMAL.
15457         * math/s_ccoshf.c (__ccoshf): Likewise.
15458         * math/s_ccoshl.c (__ccoshl): Likewise.
15459         * math/s_cexp.c (__cexp): Likewise.
15460         * math/s_cexpf.c (__cexpf): Likewise.
15461         * math/s_cexpl.c (__cexpl): Likewise.
15462         * math/s_csin.c (__csin): Likewise.
15463         * math/s_csinf.c (__csinf): Likewise.
15464         * math/s_csinh.c (__csinh): Likewise.
15465         * math/s_csinhf.c (__csinhf): Likewise.
15466         * math/s_csinhl.c (__csinhl): Likewise.
15467         * math/s_csinl.c (__csinl): Likewise.
15468         * math/s_ctan.c (__ctan): Likewise.
15469         * math/s_ctanf.c (__ctanf): Likewise.
15470         * math/s_ctanh.c (__ctanh): Likewise.
15471         * math/s_ctanhf.c (__ctanhf): Likewise.
15472         * math/s_ctanhl.c (__ctanhl): Likewise.
15473         * math/s_ctanl.c (__ctanl): Likewise.
15474         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
15475         csin, csinh, ctan and ctanh.
15476         * math/auto-libm-test-out: Regenerated.
15477         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
15478         * sysdeps/i386/fpu/libm-test-ulps: Update.
15479         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15480
15481 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15482
15483         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
15484         return value is wrong, print the expected value too.
15485
15486 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15487
15488         [BZ #18585]
15489         * elf/readlib.c (is_gdb_python_file): New.
15490         (process_file): Don't issue errors on filenames with -gdb.py
15491         suffix.
15492
15493 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15494
15495         * math/auto-libm-test-in: Add more tests of csin and csinh.
15496         * math/auto-libm-test-out: Regenerated.
15497         * math/libm-test.inc (csin_test_data): Remove tests moved to
15498         auto-libm-test-in.
15499         (csinh_test_data): Likewise.
15500
15501         [BZ #18593]
15502         * math/s_csin.c (__csin): Negate before rather than after possibly
15503         overflowing multiplication.
15504         * math/s_csinf.c (__csinf): Likewise.
15505         * math/s_csinh.c (__csinh): Likewise.
15506         * math/s_csinhf.c (__csinhf): Likewise.
15507         * math/s_csinhl.c (__csinhl): Likewise.
15508         * math/s_csinl.c (__csinl): Likewise.
15509         * math/auto-libm-test-in: Add some tests of csin and csinh.
15510         * math/auto-libm-test-out: Regenerated.
15511         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
15512         (csinh_test_data): Likewise.
15513         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15514
15515         [BZ #18586]
15516         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
15517         underflow exception for small results.
15518
15519 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
15520
15521         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15522         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
15523         variable and included header.
15524         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
15525         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
15526         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
15527         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
15528         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
15529         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
15530         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
15531         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
15532         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
15533         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
15534         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
15535         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
15536         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
15537         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
15538         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
15539         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
15540
15541 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15542
15543         [BZ #16526]
15544         [BZ #16538]
15545         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
15546         (__sin): Force underflow exception for arguments with small
15547         absolute value.
15548         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
15549         (__kernel_sinf): Force underflow exception for arguments with
15550         small absolute value.
15551         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
15552         (__kernel_sincosl): Force underflow exception for arguments with
15553         small absolute value.
15554         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
15555         (__kernel_sinl): Force underflow exception for arguments with
15556         small absolute value.
15557         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
15558         (__kernel_sincosl): Force underflow exception for arguments with
15559         small absolute value.
15560         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
15561         (__kernel_sinl): Force underflow exception for arguments with
15562         small absolute value.
15563         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
15564         (__kernel_sinl): Force underflow exception for arguments with
15565         small absolute value.
15566         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
15567         (__kernel_sinf): Force underflow exception for arguments with
15568         small absolute value.
15569         * math/auto-libm-test-in: Add more tests of sin and sincos.
15570         * math/auto-libm-test-out: Regenerated.
15571
15572         [BZ #18245]
15573         [BZ #18583]
15574         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
15575         (__kernel_standard_l): Use feholdexcept and fesetenv around
15576         conversion to double instead of special-casing overflow and
15577         underflow.
15578         * math/libm-test.inc (fmod_test_data): Add more tests.
15579         (remainder_test_data): Likewise.
15580         (sqrt_test_data): Likewise.
15581
15582 2015-06-23  Torvald Riegel  <triegel@redhat.com>
15583
15584         [BZ #17403]
15585         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
15586         atomic_read_barrier, atomic_write_barrier): Define.
15587         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
15588         atomic_read_barrier, atomic_write_barrier): Define.
15589
15590 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15591
15592         * math/Makefile [$(PERL) != no]
15593         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
15594         dependency on libm-test.stmp below the inclusion of Rules.
15595
15596 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
15597
15598         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15599         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
15600         and included header.
15601         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
15602         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
15603         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
15604         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
15605         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
15606         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
15607         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
15608         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
15609         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
15610         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
15611         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
15612         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
15613         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
15614         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
15615         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
15616         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
15617         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
15618         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
15619         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
15620
15621 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15622
15623         [BZ #18371]
15624         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
15625         intermediate but not final result might underflow.
15626         * math/s_csqrtf.c (__csqrtf): Likewise.
15627         * math/s_csqrtl.c (__csqrtl): Likewise.
15628         * math/auto-libm-test-in: Add more tests of csqrt.
15629         * math/auto-libm-test-out: Regenerated.
15630         * sysdeps/i386/fpu/libm-test-ulps: Update.
15631
15632         [BZ #18219]
15633         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
15634         threshold on absolute value of exponent for which scaling is used.
15635         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
15636         * math/auto-libm-test-in: Add more tests of exp2.
15637         * math/auto-libm-test-out: Regenerated.
15638
15639 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
15640
15641         [BZ #17977]
15642         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
15643         when initializing interface list, based on the bug analysis
15644         and the patch proposed by Eric Newton.
15645         * resolv/tst-res_hconf_reorder.c: New test.
15646         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
15647         tst-res_hconf_reorder.
15648         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
15649         and $(shared-thread-library).
15650         (tst-res_hconf_reorder-ENV): New variable.
15651
15652         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
15653         in comment.
15654
15655 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
15656
15657         [BZ #16353]
15658         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
15659         (__expm1): Force underflow exception for arguments with small
15660         absolute value.
15661         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
15662         (__expm1f): Force underflow exception for arguments with small
15663         absolute value.
15664         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
15665         (__expm1): Force underflow exception for arguments with small
15666         absolute value.
15667         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
15668         (__expm1f): Force underflow exception for arguments with small
15669         absolute value.
15670         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
15671         Check for small arguments before calling __expm1.
15672         * math/auto-libm-test-in: Do not mark underflow exceptions as
15673         possibly missing for bug 16353.
15674         * math/auto-libm-test-out: Regenerated.
15675
15676 2015-06-22  Andreas Schwab  <schwab@suse.de>
15677
15678         [BZ #18513]
15679         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
15680         PTR queries.
15681
15682 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
15683
15684         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
15685
15686         * string/strcoll_l.c: Remove unused struct element idxnow.
15687
15688 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
15689
15690         [BZ #18569]
15691         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
15692         underflow and return argument in case of subnormal argument.
15693         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
15694         Likewise.
15695         * math/auto-libm-test-in: Add more tests of expm1.
15696         * math/auto-libm-test-out: Regenerated.
15697
15698         [BZ #16361]
15699         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15700         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15701         tiny results.
15702         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15703         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15704         tiny results.
15705         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
15706         mark underflow exceptions as possibly missing for bug 16361.
15707         * math/auto-libm-test-out: Regenerated.
15708
15709 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
15710
15711         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
15712         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
15713         Remove variable.
15714         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
15715         (test-xfail-XOPEN2K8/utmpx.h/conform).
15716
15717         * conform/conformtest.pl ($xerrors): New variable.
15718         (note_error): New function.
15719         (compiletest): New argument $xfail.  Use not_error.
15720         (runtest): Likewise.
15721         (top level): Handle xfail- lines.  Update calls to compiletest and
15722         runtest.  Handle xfail- and optional- in headers listed with
15723         allow-header.
15724         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
15725         (O_EXEC): Likewise.
15726         (O_SEARCH): Likewise.
15727         * conform/data/stropts.h-data (ioctl): Likewise.
15728         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
15729         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
15730         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
15731         (msghdr.msg_controllen): Likewise.
15732         (cmsghdr.cmsg_len): Likewise.
15733         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
15734         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
15735         variable.
15736         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
15737         (test-xfail-XPG4/stropts.h/conform): Likewise.
15738         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
15739         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
15740         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
15741         (test-xfail-UNIX98/stropts.h/conform): Likewise.
15742         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
15743         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
15744         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
15745         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
15746         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
15747         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
15748         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
15749         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
15750         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
15751         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
15752         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
15753         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
15754         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
15755         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
15756         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
15757
15758 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
15759
15760         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
15761         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
15762         definitions for proper unfolding of __MATHDECL_VEC.
15763
15764 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15765
15766         * benchtests/bench-strcoll.c:
15767         Include string.h.
15768         (main): Remove unused variable res.
15769
15770 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15771
15772         * timezone/Makefile (%/UTC %/Universal):
15773         Generate test-result files for UTC and Universal.
15774
15775 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15776
15777         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15778
15779 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
15780
15781         [BZ #16350]
15782         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
15783         for arguments with small absolute value.
15784         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
15785         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
15786         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
15787         (__asinh): Force underflow exception for arguments with small
15788         absolute value.
15789         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
15790         (__asinhf): Force underflow exception for arguments with small
15791         absolute value.
15792         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
15793         (__asinhl): Force underflow exception for arguments with small
15794         absolute value.
15795         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
15796         (__asinhl): Force underflow exception for arguments with small
15797         absolute value.
15798         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
15799         (__asinhl): Force underflow exception for arguments with small
15800         absolute value.
15801         * math/auto-libm-test-in: Do not mark underflow exceptions as
15802         possibly missing for bug 16350.
15803         * math/auto-libm-test-out: Regenerated.
15804
15805         * include/bits/ipc.h: Remove file.
15806         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
15807         variable.
15808         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
15809         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
15810         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
15811         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
15812         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
15813         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
15814         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
15815         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
15816         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
15817
15818         * math/auto-libm-test-in: Remove spurious underflow allowance for
15819         tests of cexp.
15820         * math/auto-libm-test-out: Regenerated.
15821
15822         [BZ #18558]
15823         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
15824         unconditional definition.
15825         (MCAST_BLOCK_SOURCE): Likewise.
15826         (MCAST_UNBLOCK_SOURCE): Likewise.
15827         (MCAST_LEAVE_GROUP): Likewise.
15828         (MCAST_JOIN_SOURCE_GROUP): Likewise.
15829         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
15830         (MCAST_MSFILTER): Likewise.
15831         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
15832         Remove variable.
15833         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
15834         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
15835         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
15836         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
15837         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
15838
15839 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
15840
15841         * NEWS: Mention addition of x86_64 vector sincosf.
15842         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
15843         * math/test-float-vlen4.h: Likewise.
15844         * math/test-float-vlen8.h: Likewise.
15845         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15846         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
15847         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15848         * sysdeps/x86_64/fpu/Versions: New versions added.
15849         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15850         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15851         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15852         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
15853         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
15854         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
15855         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
15856         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
15857         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
15858         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
15859         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
15860         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
15861         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
15862         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
15863         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
15864         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
15865         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
15866         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
15867         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15868         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
15869         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15870         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
15871         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15872         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
15873
15874         * NEWS: Mention addition of x86_64 vector sincos.
15875         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
15876         * math/math.h (__MATHDECL_VEC): New macro.
15877         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
15878         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
15879         declaration under condition.
15880         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
15881         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
15882         TEST_VEC_LOOP change.
15883         * math/test-double-vlen4.h: Likewise.
15884         * math/test-double-vlen8.h: Likewise.
15885         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
15886         * math/test-float-vlen4.h: Likewise.
15887         * math/test-float-vlen8.h: Likewise.
15888         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15889         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
15890         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15891         * sysdeps/x86_64/fpu/Versions: New versions added.
15892         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15893         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15894         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15895         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
15896         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
15897         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
15898         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
15899         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
15900         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
15901         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
15902         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
15903         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
15904         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
15905         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
15906         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
15907         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
15908         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
15909         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
15910         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15911         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
15912         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15913         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
15914         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15915         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
15916
15917         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15918         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
15919         redirections for powf.
15920         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15921         * sysdeps/x86_64/fpu/Versions: New versions added.
15922         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15923         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15924         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15925         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
15926         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
15927         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
15928         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
15929         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
15930         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
15931         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
15932         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
15933         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
15934         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
15935         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
15936         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
15937         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
15938         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
15939         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
15940         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15941         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
15942         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15943         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
15944         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15945         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
15946         * math/test-float-vlen16.h: Fixed 2 argument macro.
15947         * math/test-float-vlen4.h: Likewise.
15948         * math/test-float-vlen8.h: Likewise.
15949         * NEWS: Mention addition of x86_64 vector powf.
15950
15951 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
15952
15953         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
15954         and redefine.
15955         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
15956         and redefine.
15957         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
15958         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
15959         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
15960
15961         [BZ #18553]
15962         * resource/getpriority.c (getpriority): Rename to __getpriority
15963         and define as weak alias of __getpriority.
15964         * resource/setpriority.c (setpriority): Rename to __setpriority
15965         and define as weak alias of __setpriority.
15966         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
15967         __getpriority and define as weak alias of __getpriority.
15968         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
15969         __setpriority and define as weak alias of __setpriority.
15970         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
15971         strong name.
15972         (setpriority): Use __setpriority as strong name.
15973         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
15974         __getpriority and define as weak alias of __getpriority.
15975         * include/sys/resource.h (__getpriority): Declare.  Use
15976         libc_hidden_proto.
15977         (__setpriority): Likewise.
15978         (getpriority): Don't use libc_hidden_proto.
15979         (setpriority): Likewise.
15980         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
15981         getpriority.  Call __setpriority instead of setpriority.
15982         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
15983         Remove variable.
15984
15985         [BZ #18547]
15986         * misc/getttyent.c (getttynam): Rename to __getttynam and define
15987         as weak alias of __getttynam.  Use prototype function definition.
15988         Call __setttyent, __getttyent and __endttyent instead of
15989         setttyent, getttyent and endttyent.
15990         (getttyent): Rename to __getttyent and define as weak alias of
15991         __getttyent.  Call __setttyent instead of setttyent.  Call
15992         __fgets_unlocked instead of fgets_unlocked.
15993         (setttyent): Rename to __setttyent and define as weak alias of
15994         __setttyent.
15995         (endttyent): Rename to __endttyent and define as weak alias of
15996         __endttyent.
15997         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
15998         (__setttyent): Likewise.
15999         (__endttyent): Likewise.
16000         (getttyent): Don't use libc_hidden_proto.
16001         (setttyent): Likewise.
16002         (endttyent): Likewise.
16003         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
16004         __endttyent instead of setttyent, getttyent and endttyent.
16005         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
16006         Remove variable.
16007
16008         [BZ #18546]
16009         * socket/recv.c (__recv): Use libc_hidden_def.
16010         * socket/socket.c (__socket): Likewise.
16011         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
16012         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
16013         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
16014         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
16015         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
16016         libc_hidden_def.
16017         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
16018         libc_hidden_weak.
16019         * include/sys/socket.h (__socket): Do not use attribute_hidden.
16020         Use libc_hidden_proto.
16021         (__recv): Likewise.
16022         * socket/Versions (libc): Export __recv and __socket at version
16023         GLIBC_PRIVATE.
16024         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
16025         instead of recv.
16026         (init_mq_netlink): Call __socket instead of socket.
16027         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
16028         Remove variable.
16029
16030         [BZ #18545]
16031         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
16032         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
16033         hidden_weak.
16034         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
16035         define as alias of __mq_timedsend.  Use hidden_weak.
16036         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
16037         __mq_timedsend as strong name.
16038         (mq_timedreceive): Use __mq_timedreceive as strong name.
16039         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
16040         (__mq_timedreceive): Likewise.
16041         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
16042         __mq_timedreceive instead of mq_timedreceive.
16043         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
16044         instead of mq_timedsend.
16045         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
16046         Remove variable.
16047
16048         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
16049         hidden_def and hidden_weak instead of libc_hidden_def and
16050         libc_hidden_weak.
16051         (top level): Refer to hidden_def in comment.
16052         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
16053         macro.  Use it instead of libc_hidden_def.
16054         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
16055         specify __GI_* name explicitly.
16056         (mq_timedreceive): Likewise.
16057         (mq_setattr): Likewise.
16058
16059         [BZ #18544]
16060         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
16061         __pthread_barrier_init and define as weak alias of
16062         __pthread_barrier_init.
16063         * sysdeps/sparc/nptl/pthread_barrier_init.c
16064         (pthread_barrier_init): Likewise.
16065         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
16066         __pthread_barrier_wait and define as weak alias of
16067         __pthread_barrier_wait.
16068         * sysdeps/sparc/nptl/pthread_barrier_wait.c
16069         (pthread_barrier_wait): Likewise.
16070         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
16071         (pthread_barrier_wait): Likewise.
16072         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
16073         (pthread_barrier_wait): Likewise.
16074         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
16075         (pthread_barrier_wait): Likewise.
16076         * nptl/Versions (libpthread): Export __pthread_barrier_init and
16077         __pthread_barrier_wait at version GLIBC_PRIVATE.
16078         * include/pthread.h (__pthread_barrier_init): Declare.
16079         (__pthread_barrier_wait): Likewise.
16080         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
16081         Call __pthread_barrier_wait instead of pthread_barrier_wait.
16082         (helper_thread): Likewise.
16083         (init_mq_netlink): Call __pthread_barrier_init instead of
16084         pthread_barrier_init.
16085
16086         [BZ #18542]
16087         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
16088         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
16089         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
16090         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
16091         vswscanf.
16092         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
16093         Remove variable.
16094
16095         [BZ #18540]
16096         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
16097         strong alias of _IO_fflush.  Use libc_hidden_def.
16098         * libio/iofflush_u.c (fflush_unlocked): Rename to
16099         __fflush_unlocked and define as weak alias of __fflush_unlocked.
16100         Use libc_hidden_weak.
16101         * include/stdio.h (__fflush_unlocked): Declare.  Use
16102         libc_hidden_proto.
16103         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
16104         fflush_unlocked.
16105         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
16106         Remove variable.
16107
16108         [BZ #18539]
16109         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
16110         define as weak alias of __addseverity.
16111         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
16112         Remove variable.
16113         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
16114         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
16115         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
16116
16117         [BZ #18536]
16118         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
16119         (__tfind): Likewise.
16120         (__tdelete): Likewise.
16121         (__twalk): Likewise.
16122         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
16123         __twalk to GLIBC_PRIVATE.
16124         * include/search.h (__tsearch): Use libc_hidden_proto.
16125         (__tfind): Likewise.
16126         (__tdelete): Likewise.
16127         (__twalk): Likewise.
16128         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
16129         Call __tdelete instead of tdelete.
16130         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
16131         tfind.  Call __tsearch instead of tsearch.
16132         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
16133         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
16134         Remove variable.
16135         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
16136
16137         [BZ #18534]
16138         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
16139         (dprintf): Define as a weak alias of __dprintf, not a strong
16140         alias.
16141         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
16142         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
16143         dprintf.
16144         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
16145         Remove variable.
16146         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
16147         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
16148
16149         [BZ #18533]
16150         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
16151         not a strong alias.
16152         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
16153         Remove variable.
16154
16155         [BZ #18532]
16156         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
16157         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
16158         (in6addr_loopback): Rename to __in6addr_loopback and define as
16159         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
16160         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
16161         libc_hidden_proto.
16162         (__in6addr_any): Likewise.
16163         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
16164         in6addr_any.
16165         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
16166         variable.
16167         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
16168
16169 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
16170
16171         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
16172         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
16173         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16174         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16175         redirections for pow.
16176         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16177         * sysdeps/x86_64/fpu/Versions: New versions added.
16178         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16179         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16180         build of SSE, AVX2 and AVX512 IFUNC versions.
16181         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
16182         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
16183         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
16184         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
16185         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
16186         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
16187         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
16188         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
16189         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
16190         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
16191         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
16192         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
16193         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
16194         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
16195         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16196         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16197         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16198         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16199         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16200         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16201         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16202         * NEWS: Mention addition of x86_64 vector pow.
16203
16204         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16205         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16206         redirections for expf.
16207         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16208         * sysdeps/x86_64/fpu/Versions: New versions added.
16209         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16210         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16211         build of SSE, AVX2 and AVX512 IFUNC versions.
16212         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
16213         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
16214         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
16215         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
16216         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
16217         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
16218         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
16219         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
16220         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
16221         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
16222         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
16223         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
16224         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
16225         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16226         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16227         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16228         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16229         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16230         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16231         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16232         * NEWS: Mention addition of x86_64 vector expf.
16233
16234         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
16235         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
16236         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16237         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16238         redirections for exp.
16239         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16240         * sysdeps/x86_64/fpu/Versions: New versions added.
16241         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16242         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16243         build of SSE, AVX2 and AVX512 IFUNC versions.
16244         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
16245         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
16246         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
16247         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
16248         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
16249         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
16250         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
16251         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
16252         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
16253         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
16254         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
16255         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
16256         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
16257         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16258         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16259         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16260         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16261         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16262         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16263         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16264         * NEWS: Mention addition of x86_64 vector exp.
16265
16266         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16267         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16268         redirections for logf.
16269         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16270         * sysdeps/x86_64/fpu/Versions: New versions added.
16271         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16272         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16273         build of SSE, AVX2 and AVX512 IFUNC versions.
16274         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
16275         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
16276         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
16277         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
16278         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
16279         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
16280         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
16281         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
16282         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
16283         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
16284         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
16285         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
16286         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
16287         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16288         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16289         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16290         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16291         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16292         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16293         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16294         * NEWS: Mention addition of x86_64 vector logf.
16295
16296         * bits/libm-simd-decl-stubs.h: Added stubs for log.
16297         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
16298         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16299         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16300         redirections for log.
16301         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16302         * sysdeps/x86_64/fpu/Versions: New versions added.
16303         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16304         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16305         build of SSE, AVX2 and AVX512 IFUNC versions.
16306         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
16307         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
16308         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
16309         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
16310         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
16311         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
16312         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
16313         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
16314         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
16315         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
16316         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
16317         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
16318         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
16319         test.
16320         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16321         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16322         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16323         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16324         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16325         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16326         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16327         * NEWS: Mention addition of x86_64 vector log.
16328
16329 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16330
16331         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
16332         cfi_adjust_cfa_offset argument.
16333         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
16334         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
16335
16336         [BZ #18034]
16337         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
16338         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
16339         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
16340         ordering using ldar.
16341         (_dl_tlsdesc_dynamic): Likewise.
16342         (_dl_tlsdesc_return_lazy): Likewise.
16343         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
16344         relaxed atomics instead of volatile and synchronize with release store.
16345         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
16346         volatile.
16347         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
16348
16349 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
16350
16351         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16352         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
16353         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16354         * sysdeps/x86_64/fpu/Versions: New versions added.
16355         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16356         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16357         build of SSE, AVX2 and AVX512 IFUNC versions.
16358         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
16359         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
16360         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
16361         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
16362         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
16363         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
16364         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
16365         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
16366         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
16367         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
16368         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
16369         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
16370         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
16371         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16372         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16373         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16374         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16375         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16376         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16377         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16378         * NEWS: Mention addition of x86_64 vector sinf.
16379
16380 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
16381
16382         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
16383         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
16384         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
16385         Remove variable.
16386         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
16387         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
16388
16389 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16390
16391         [BZ #18530]
16392         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
16393         strong alias of _IO_fputs.  Use libc_hidden_def.
16394         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
16395         and define as weak alias of __fputs_unlocked.  Use
16396         libc_hidden_weak.
16397         * include/stdio.h (__fputs_unlocked): Declare.  Use
16398         libc_hidden_proto.
16399         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
16400         fputs_unlocked.
16401
16402         [BZ #18529]
16403         * resolv/netdb.h [__USE_POSIX]: Change condition to
16404         [__USE_XOPEN2K].
16405         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
16406         not expect.
16407         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
16408         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
16409         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
16410         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
16411         [XPG4 || UNIX98] (AI_ALL): Likewise.
16412         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
16413         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
16414         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
16415         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
16416         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
16417         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
16418         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
16419         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
16420         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
16421         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
16422         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
16423         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
16424         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
16425         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
16426         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
16427         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16428         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16429         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
16430         [XPG4 || UNIX98] (gai_strerror): Likewise.
16431         [XPG4 || UNIX98] (getaddrinfo): Likewise.
16432         [XPG4 || UNIX98] (getnameinfo): Likewise.
16433
16434         [BZ #18528]
16435         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
16436         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
16437         __USE_XOPEN2K8].
16438         (getgrent): Likewise.
16439         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
16440         expect.
16441         [XPG3 || POSIX2008] (endgrent): Likewise.
16442         [XPG3] (setgrent): Likewise.
16443         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
16444         variable.
16445         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
16446
16447         [BZ #18527]
16448         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
16449         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
16450         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
16451         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
16452         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
16453         * include/unistd.h (__getlogin_r): Declare.  Use
16454         libc_hidden_proto.
16455         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
16456         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
16457         variable.
16458         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
16459         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
16460         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
16461
16462 2015-06-12  Martin Sebor  <msebor@redhat.com>
16463
16464         [BZ #18512]
16465         * Makerules (check-install-supported): New target.
16466         (install): Add check-install-supported as a dependency.
16467         * manual/install.texi (Installing the C Library): Document
16468         that overriding prefix and exec_prefix is not supported.
16469         Mention DESTDIR.
16470         * INSTALL: Regenerate from the above.
16471
16472 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16473
16474         [BZ #18519]
16475         * posix/Versions (libc): Export __libc_pread at version
16476         GLIBC_PRIVATE.
16477         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
16478         instead of pread.
16479         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
16480         variable.
16481
16482         [BZ #18522]
16483         * misc/efgcvt_r.c
16484         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
16485         (cvt_symbol): Use weak_alias instead of strong_alias.
16486         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
16487         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
16488         Remove variable.
16489         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
16490         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
16491
16492         [BZ #18520]
16493         * inet/herrno.c (h_errno): Rename to __h_errno.
16494         (__libc_h_errno): Define as alias of __h_errno not h_errno.
16495         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
16496         to __h_errno instead of h_errno.
16497         * nptl/herrno.c (h_errno): Rename to __h_errno.
16498         (__h_errno_location): Refer to __h_errno not h_errno.
16499         * resolv/Versions (h_errno): Rename to __h_errno.
16500         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
16501         Remove variable.
16502         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
16503
16504 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
16505
16506         * configure.ac: More strict check for AVX512 assembler support.
16507         * configure: Regenerated.
16508
16509         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
16510         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
16511         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16512         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
16513         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16514         * sysdeps/x86_64/fpu/Versions: New versions added.
16515         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16516         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16517         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16518         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
16519         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
16520         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
16521         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
16522         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
16523         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
16524         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
16525         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
16526         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
16527         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
16528         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
16529         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
16530         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
16531         test.
16532         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16533         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16534         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16535         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16536         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16537         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16538         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16539         * NEWS: Mention addition of x86_64 vector sin.
16540
16541 2015-06-11  Florian Weimer  <fweimer@redhat.com>
16542
16543         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
16544         comment.
16545
16546 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
16547
16548         [BZ #18479]
16549         * nptl/pt-interp.c: New file.
16550         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
16551         Add pt-interp.
16552         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
16553         $(common-objpfx)runtime-linker.h.
16554
16555 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
16556
16557         * Makeconfig (+interp): Remove unused variable.
16558         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
16559         only.  Depend on $(common-objpfx)runtime-linker.h instead of
16560         $(elf-objpfx)runtime-linker.h.
16561         ($(elf-objpfx)runtime-linker.h): Rename to
16562         $(common-objpfx)runtime-linker.h and move ...
16563         * Makerules [$(build-shared) = yes]: ... here.
16564         * elf/interp.c: Include <runtime-linker.h> instead of
16565         <elf/runtime-linker.h>.
16566
16567 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16568
16569         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
16570         (__gettimeofday_syscall): Remove vsyscall fallback.
16571         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
16572         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
16573         Add syscall fallback function.
16574         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
16575         if vDSO is not present.
16576         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
16577         fallback function.
16578         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
16579         present.
16580         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
16581         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16582
16583 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
16584
16585         [BZ #18497]
16586         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
16587         of wcscmp.
16588         (wcscmp): Define as weak alias of WCSCMP.
16589         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
16590         wcscoll.
16591         (USE_HIDDEN_DEF): Define.
16592         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
16593         __wcscoll.  Don't use libc_hidden_weak.
16594         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
16595         wcscmp.
16596         * sysdeps/i386/i686/multiarch/wcscmp-c.c
16597         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
16598         __GI_wcscmp.
16599         (weak_alias): Undefine and redefine.
16600         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
16601         __wcscmp and define as weak alias of __wcscmp.
16602         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
16603         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
16604         (__wcscoll): Likewise.
16605         (wcscmp): Don't use libc_hidden_proto.
16606         (wcscoll): Likewise.
16607         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
16608         wcscoll.
16609         * posix/regexec.c (check_node_accept_bytes): Likewise.
16610         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
16611         variable.
16612         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
16613         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
16614
16615         [BZ #18507]
16616         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
16617         __fstatvfs and define as weak alias of __fstatvfs.  Use
16618         libc_hidden_weak.
16619         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
16620         and define as weak alias of __statvfs.  Use libc_hidden_weak.
16621         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
16622         Define as alias of __fstatvfs, not fstatvfs.
16623         (fstatvfs64): Likewise.
16624         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
16625         Define as alias of __statvfs, not statvfs.
16626         (statvfs64): Likewise.
16627         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
16628         Remove variable.
16629
16630 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16631
16632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
16633         (HAVE_GETCPU_VSYSCALL): Define.
16634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
16635         (HAVE_GETCPU_VSYSCALL): Likewise.
16636         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
16637         * sysdeps/unix/sysv/linux/sched_getcpu.c
16638         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
16639         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
16640         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
16641         prototype.
16642         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16643         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
16644         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
16645         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
16646         Define.
16647         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
16648         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
16649         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
16650         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
16651
16652 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
16653
16654         * sysdeps/x86_64/fpu/Makefile: New file.
16655         * sysdeps/x86_64/fpu/Versions: New file.
16656         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
16657         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
16658         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
16659         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
16660         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
16661         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
16662         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
16663         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
16664         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
16665         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
16666         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
16667         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
16668         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
16669         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16670         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16671         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
16672         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
16673         * sysdeps/x86_64/configure.ac: Options for libmvec build.
16674         * sysdeps/x86_64/configure: Regenerated.
16675         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
16676         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
16677         * manual/install.texi (Configuring and compiling): Document
16678         --disable-mathvec.
16679         * INSTALL: Regenerated.
16680         * NEWS: Mention addition of libmvec and x86_64 vector cos.
16681
16682         * math/Makefile: Added rules for vector tests.
16683         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
16684         declaration under condition.
16685         * math/test-double-vlen2.h: New file.
16686         * math/test-double-vlen4.h: New file.
16687         * math/test-double-vlen8.h: New file.
16688         * math/test-vec-loop.h: Added initialization macro.
16689         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
16690         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
16691         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
16692         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
16693         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
16694         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
16695         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
16696         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
16697         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
16698         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
16699         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
16700
16701         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16702         * sysdeps/x86_64/fpu/Versions: New versions added.
16703         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
16704         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
16705         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
16706         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
16707         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
16708         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
16709         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
16710         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
16711         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
16712         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
16713         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
16714         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
16715         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
16716         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16717         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16718         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16719         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
16720         * NEWS: Mention addition of x86_64 vector cosf.
16721
16722         * math/Makefile: Added CFLAGS for new tests.
16723         * math/test-float-vlen16.h: New file.
16724         * math/test-float-vlen4.h: New file.
16725         * math/test-float-vlen8.h: New file.
16726         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
16727         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
16728         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16729         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
16730         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
16731         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
16732         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
16733         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
16734         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
16735         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
16736         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
16737
16738 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
16739
16740         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
16741         * locale/programs/ld-ctype.c: Likewise.
16742
16743 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
16744
16745         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
16746         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
16747         bit_ZMM16_31_state): New macro.
16748         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16749         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
16750
16751 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
16752
16753         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
16754
16755 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
16756
16757         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
16758
16759 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
16760
16761         [BZ #18498]
16762         * libio/memstream.c (open_memstream): Rename to __open_memstream
16763         and define as weak alias of __open_memstream.
16764         * include/stdio.h (__open_memstream): Declare.  Use
16765         libc_hidden_proto.
16766         (open_memstream): Don't use libc_hidden_proto.
16767         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
16768         open_memstream.
16769         * posix/getopt.c (_getopt_internal_r): Likewise.
16770         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
16771         variable.
16772         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
16773         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
16774         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
16775
16776         [BZ #18496]
16777         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
16778         instead of wcrtomb.
16779
16780         [BZ #18483]
16781         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
16782         [__USE_XOPEN2K8].  Remove redundant #endif.
16783         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
16784         Remove redundant #if.
16785         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
16786         Remove variable.
16787         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
16788         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
16789
16790         [BZ #18495]
16791         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
16792         (__iswlower): Likewise.
16793         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
16794         (__iswlower): Likewise.
16795         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
16796         instead of towlower.
16797         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
16798         instead of iswlower.  Call __towupper instead of towupper.
16799         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
16800         instead of iswalnum.
16801
16802 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16803
16804         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
16805         errors to stderr.
16806
16807 2015-06-05  Florian Weimer  <fweimer@redhat.com>
16808
16809         [BZ #15661]
16810         [BZ #17322]
16811         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
16812         Check for overflow properly.  Check for O_APPEND.  Ignore large
16813         file system block sizes.  Add comments about problems.
16814         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
16815         * manual/filesys.texi (Storage Allocation): New node.
16816
16817 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16818
16819         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
16820         cancellable syscalls.
16821         (SYS_ify): Add guard to no redefine it.
16822         (INLINE_SYSCALL): Likewise.
16823         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
16824         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
16825         SYSCALL_CANCEL instead.
16826         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
16827         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
16828         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
16829         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
16830         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
16831         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
16832         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
16833         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
16834         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
16835         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
16836         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
16837         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
16838         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
16839         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
16840         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
16841         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
16842         Likewise.
16843         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
16844         (__libc_pread64): Likewise.
16845         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
16846         (__libc_preadv): Likewise.
16847         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
16848         (__libc_readv64): Likewise.
16849         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
16850         (__libc_pwrite): Likewise.
16851         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
16852         (__libc_pwrite64): Likewise.
16853         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
16854         (__libc_pwritev): Likewise.
16855         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
16856         (__libc_pwritev64): Likewise.
16857         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
16858         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
16859         (sync_file_range): Likewise.
16860         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
16861         Likewise.
16862         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
16863         Likewise.
16864         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
16865         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
16866         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
16867         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
16868         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
16869         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
16870         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
16871         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
16872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
16873         Likewise.
16874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
16875         (__libc_read64): Likewise.
16876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
16877         Likewise.
16878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
16879         Likewise.
16880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
16881         Likewise.
16882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
16883         Likewise.
16884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
16885         (__libc_pread64): Likewise.
16886         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
16887         Likewise.
16888         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
16889         (__libc_pwrite64): Likewise.
16890         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
16891         (sync_file_range): Likewise.
16892         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
16893         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
16894         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
16895         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
16896         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
16897         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
16898         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
16899         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
16900         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
16901         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
16902         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
16903         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
16904         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
16905         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
16906         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
16907         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
16908         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
16909         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
16910         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
16911         Likewise.
16912         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
16913         Likewise.
16914         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
16915         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
16916         Likewise.
16917         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
16918         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
16919         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
16920         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
16921         Likewise.
16922         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
16923         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
16924         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
16925         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
16926         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
16927
16928 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
16929
16930         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
16931         Include dl-vdso.
16932         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
16933         Use VDSO routines for gettimeofday, clock_gettime if
16934         available.
16935         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
16936         Declare VDSO symbols.
16937         * sysdeps/unix/sysv/linux/arm/sysdep.h:
16938         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
16939         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
16940         * sysdeps/unix/sysv/linux/arm/Versions: Add
16941         __vdso_clock_gettime.
16942
16943 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16944
16945         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
16946         be an inline implementation regardless of library is built within.
16947         (open_not_cancel_2): Likewise.
16948         (__read_nocancel): Likewise.
16949         (__write_nocancel): Likewise.
16950         (openat_not_cancel): Likewise.
16951         (openat_not_cancel_3): Likewise.
16952         (openat64_not_cancel): Likewise.
16953         (openat64_not_cancel_3): Likewise.
16954         (__close_nocancel): Likewise.
16955         (pause_not_cancel): Likewise.
16956         (nanosleep_not_cancel): Likewise.
16957         (sigsuspend_not_cancel): Likewise.
16958
16959 2015-06-04  Torvald Riegel  <triegel@redhat.com>
16960
16961         [BZ #14958]
16962         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
16963         wake-up.
16964         (__pthread_rwlock_rdlock_slow): Likewise.
16965         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
16966         Likewise.
16967         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
16968         Likewise.
16969         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
16970         * nptl/tst-rwlock16.c: New file.
16971         * nptl/Makefile (tests): Add new test.
16972
16973 2015-06-04  Torvald Riegel  <triegel@redhat.com>
16974
16975         [BZ #18324]
16976         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
16977         missing wake-up of readers.
16978         * nptl/tst-rwlock15.c: New file.
16979         * nptl/Makefile (tests): Add new test.
16980
16981 2015-06-03  Roland McGrath  <roland@hack.frob.com>
16982
16983         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
16984         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
16985         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
16986         and __nacl_supply_interface_rtld.
16987         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
16988         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
16989         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
16990         Add __nacl_supply_interface_rtld.
16991         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
16992
16993 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
16994
16995         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
16996         isfinite.
16997         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
16998         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
16999
17000 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17001
17002         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
17003         __signbit* with standard C99 macros.
17004         * math/e_exp10l.c: Likewise.
17005         * math/e_exp2l.c: Likewise.
17006         * math/e_scalb.c: Likewise.
17007         * math/e_scalbf.c: Likewise.
17008         * math/e_scalbl.c: Likewise.
17009         * math/s_ldexp.c: Likewise.
17010         * math/s_ldexpf.c: Likewise.
17011         * math/s_ldexpl.c: Likewise.
17012         * math/w_atan2.c: Likewise.
17013         * math/w_atan2f.c: Likewise.
17014         * math/w_atan2l.c: Likewise.
17015         * math/w_cosh.c: Likewise.
17016         * math/w_coshf.c: Likewise.
17017         * math/w_coshl.c: Likewise.
17018         * math/w_exp10.c: Likewise.
17019         * math/w_exp10f.c: Likewise.
17020         * math/w_exp10l.c: Likewise.
17021         * math/w_exp2.c: Likewise.
17022         * math/w_exp2f.c: Likewise.
17023         * math/w_exp2l.c: Likewise.
17024         * math/w_fmod.c: Likewise.
17025         * math/w_fmodf.c: Likewise.
17026         * math/w_fmodl.c: Likewise.
17027         * math/w_hypot.c: Likewise.
17028         * math/w_hypotf.c: Likewise.
17029         * math/w_hypotl.c: Likewise.
17030         * math/w_jnl.c: Likewise.
17031         * math/w_lgamma.c: Likewise.
17032         * math/w_lgamma_r.c: Likewise.
17033         * math/w_lgammaf.c: Likewise.
17034         * math/w_lgammaf_r.c: Likewise.
17035         * math/w_lgammal.c: Likewise.
17036         * math/w_lgammal_r.c: Likewise.
17037         * math/w_pow.c: Likewise.
17038         * math/w_powf.c: Likewise.
17039         * math/w_powl.c: Likewise.
17040         * math/w_remainder.c: Likewise.
17041         * math/w_remainderf.c: Likewise.
17042         * math/w_remainderl.c: Likewise.
17043         * math/w_scalb.c: Likewise.
17044         * math/w_scalbf.c: Likewise.
17045         * math/w_scalbl.c: Likewise.
17046         * math/w_scalbln.c: Likewise.
17047         * math/w_scalblnf.c: Likewise.
17048         * math/w_scalblnl.c: Likewise.
17049         * math/w_sinh.c: Likewise.
17050         * math/w_sinhf.c: Likewise.
17051         * math/w_sinhl.c: Likewise.
17052         * math/w_tgamma.c: Likewise.
17053         * math/w_tgammaf.c: Likewise.
17054         * math/w_tgammal.c: Likewise.
17055         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17056         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
17057         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17058         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17059         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17060         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17061         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
17062         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17063         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17064         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17065         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17066         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
17067         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17068         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17069         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17070         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17071         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17072         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
17073         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
17074         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17075         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17076         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
17077         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17078         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17079         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
17080         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17081         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
17082         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17083         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17084         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17085         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
17086         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
17087         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
17088         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
17089         * stdio-common/printf_fp.c: Likewise.
17090         * stdio-common/printf_fphex.c: Likewise.
17091         * stdio-common/printf_size.c: Likewise.
17092
17093 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
17094
17095         [BZ #18470]
17096         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
17097         strnlen.
17098         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
17099         Remove variable.
17100         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
17101         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
17102         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
17103         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
17104         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
17105         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
17106         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
17107         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
17108         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
17109         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
17110
17111         [BZ #18468]
17112         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
17113         weak alias of __wmemchr.  Use libc_hidden_weak.
17114         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
17115         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
17116         instead of wmemchr.
17117
17118 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17119
17120         [BZ #18383]
17121         * elf/tst-tlsalign-extern.c: New file.
17122         * elf/tst-tlsalign-extern-static.c: New file.
17123         * elf/tst-tlsalign-vars.c: New file.
17124         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
17125         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
17126         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
17127         ($(objpfx)tst-tlsalign-extern-static): Likewise.
17128         (test-xfail-tst-tlsalign-extern-static): New variable.
17129
17130 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
17131
17132         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
17133         Use variable name _sc_err instead of err.
17134         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
17135         instead of ret.
17136         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
17137         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
17138         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
17139         (INLINE_SYSCALL): Likewise.
17140
17141         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
17142         * include/string.h (__strnlen): Use libc_hidden_proto.
17143         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
17144         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
17145         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
17146         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
17147         (libc_hidden_def): Undefine and redefine.
17148         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
17149         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
17150         __GI_strnlen.
17151         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
17152         libc_hidden_def.
17153         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
17154
17155         [BZ #18469]
17156         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
17157         weak alias of __towlower.  Use libc_hidden_weak.
17158         (towupper): Rename to __towupper and define as weak alias of
17159         __towupper.  Use libc_hidden_weak.
17160         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
17161         (__towupper): Likewise.
17162         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
17163         __towlower instead of towlower.
17164
17165 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17166
17167         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
17168         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
17169
17170 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17171
17172         * sysdeps/aarch64/libm-test-ulps: Update.
17173
17174 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17175
17176         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
17177         Define.
17178         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17179         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
17180         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17181         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17182         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
17183         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
17184         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
17185
17186 2015-06-01  Martin Sebor  <msebor@redhat.com>
17187
17188         [BZ #18116]
17189         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
17190         (__setcontext): Use extended four-operand version of mtsf whenever
17191         possible.
17192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
17193         (__novec_swapcontext): Likewise.
17194
17195 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
17196
17197         * benchtests/scripts/compare_bench.py: New file.
17198         * benchtests/scripts/import_bench.py (mean): New function.
17199         (split_list): Likewise.
17200         (do_for_all_timings): Likewise.
17201         (compress_timings): Likewise.
17202
17203         * benchtests/scripts/import_bench.py: New file.
17204         * benchtests/scripts/validate_benchout.py: Import import_bench
17205         instead of jsonschema.
17206         (validate_bench): Remove function.
17207         (main): Use import_bench.
17208
17209 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
17210
17211         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
17212         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
17213
17214 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17215
17216         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17217
17218 2015-05-28  Roland McGrath  <roland@hack.frob.com>
17219
17220         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
17221         set THREAD_SELF->tid to a magic value and futex-wake it.
17222         Pass its address to the thread_exit system call.
17223         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
17224         bit is clear.
17225         * sysdeps/nacl/lowlevellock.h: New file.
17226         * sysdeps/nacl/lll_timedwait_tid.c: New file.
17227
17228         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
17229         Add TIMEOUT to current time, don't subtract it.
17230
17231 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
17232
17233         [BZ #2981]
17234         [BZ #18422]
17235         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
17236         ($(objpfx)tst-audit2.out): Also depend on
17237         $(objpfx)tst-auditmod9b.so.
17238         * elf/tst-audit2.c: Include <dlfcn.h>.
17239         (calloc_called): New.
17240         (calloc): Allow to be called more than once.
17241         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
17242
17243 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
17244
17245         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
17246         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
17247
17248 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
17249
17250         * stdlib/monetary.h: Fix comment.
17251
17252 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
17253
17254         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
17255         Avoid using variables in #defines that might cause shadowing.
17256         (INTERNAL_VSYSCALL_CALL): Likewise.
17257
17258 2015-05-26  Roland McGrath  <roland@hack.frob.com>
17259
17260         * sysdeps/nacl/lll_timedlock_wait.c: New file.
17261
17262         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
17263         * nptl/lll_timedlock_wait.c: ... to this new file.
17264         * nptl/Makefile (libpthread-routines): Add it.
17265         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
17266         * nptl/lll_timedwait_tid.c: ... to this new file.
17267         * nptl/Makefile (libpthread-routines): Add it.
17268         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
17269         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
17270         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
17271         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
17272         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
17273         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
17274         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
17275         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
17276         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
17277         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
17278
17279 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17280
17281         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
17282         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
17283         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
17284         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
17285         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17286         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17287         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17288         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17289         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17290         * sysdeps/unix/sysv/linux/tile/sysdep.h
17291         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17292         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
17293         using vDSO syscall macro.
17294
17295 2015-05-26  Andriy Rysin  <arysin@gmail.com>
17296
17297         [BZ #17293]
17298         * uk_UA: Fix sorting order for Ukrainian locale
17299
17300 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
17301
17302         * stdlib/monetary.h: Fix comment.
17303
17304 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17305
17306         [BZ #18234]
17307         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
17308         st_mtim and st_ctim members.
17309         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
17310         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
17311         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
17312         (struct stat64): Likewise.
17313         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
17314         (struct stat64): Likewise.
17315         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
17316         (struct stat64): Likewise.
17317
17318 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17319
17320         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
17321         Define and include sysdep-vdso.h.
17322         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
17323         Likewise.
17324         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
17325         Likewise.
17326         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
17327         Define with VDSO_SYMBOL and use PTR_MANGLE.
17328         (__vdso_clock_gettime): Likewise.
17329         (__vdso_clock_getres): Likewise.
17330         (_libc_vdso_platform_setup): Likewise.
17331         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
17332         Likewise.
17333         (_libc_vdso_platform_setup): Likewise.
17334         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
17335         Likewise.
17336         (__vdso_clock_gettime): Likewise.
17337         (__vdso_clock_getres): Likewise.
17338         (__vdso_get_tbfreq): Likewise.
17339         (__vdso_getcpu): Likewise.
17340         (__vdso_time): Likewise.
17341         (__vdso_sigtramp_rt64): Likewise.
17342         (__vdso_signtramp32): Likewise.
17343         (__vdso_sigtramp_rt32): Likewise.
17344         (_libc_vdso_platform_setup): Likewise.
17345         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
17346         Likewise.
17347         (__vdso_clock_gettime): Likewise.
17348         (__vdso_clock_getres): Likewise.
17349         (_libc_vdso_platform_setup): Likewise.
17350         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
17351         Likewise.
17352         (__vdso_clock_gettime): Likewise.
17353         (_libc_vdso_platform_setup): Likewise.
17354         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
17355         Likewise.
17356         (__vdso_getcpu): Likewise.
17357         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
17358         Use VDSO_SYMBOL macro to define.
17359         (__vdso_clock_gettime): Likewise.
17360         (__vdso_clock_getres): Likewise.
17361         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
17362         Likewise.
17363         (__vdso_clock_gettime): Likewise.
17364         (__vdso_clock_getres): Likewise.
17365         (__vdso_get_tbfreq): Likewise.
17366         (__vdso_getcpu): Likewise.
17367         (__vdso_time): Likewise.
17368         (__vdso_sigtramp_rt64): Likewise.
17369         (__vdso_signtramp32): Likewise.
17370         (__vdso_sigtramp_rt32): Likewise.
17371         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
17372         Likewise.
17373         (__vdso_clock_gettime): Likewise.
17374         (__vdso_clock_getres): Likewise.
17375         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
17376         Likewise.
17377         (__vdso_clock_gettime): Likewise.
17378         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
17379         Likewise.
17380         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
17381         macro.
17382         (INTERNAL_VSYSCALL): Likewise.
17383         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
17384         Remove macro.
17385         (INTERNAL_VSYSCALL): Likewise.
17386         (INTERNAL_VSYSCALL_NCS): Likewise.
17387         (INTERNAL_VSYSCALL_CALL): New macro.
17388         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17389         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
17390         Likewise.
17391         (INTERNAL_VSYSCALL): Likewise.
17392         (INTERNAL_VSYSCALL_NCS): Likewise.
17393         (INTERNAL_VSYSCALL_CALL): New macro.
17394         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17396         (INLINE_VSYSCALL): Remove macro.
17397         (INTERNAL_VSYSCALL): Remove macro.
17398         (INTERNAL_VSYSCALL_NCS): Remove macro.
17399         (INTERNAL_VSYSCALL_CALL): New macro.
17400         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
17401         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
17402         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17403         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
17404         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17406         (INLINE_VSYSCALL): Remove macro.
17407         (INTERNAL_VSYSCALL): Likewise.
17408         (INTERNAL_VSYSCALL_NCS): Likewise.
17409         (INTERNAL_VSYSCALL_CALL): New macro.
17410         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
17411         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
17412         PTR_DEMANGLE on vDSO pointer.
17413         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17414         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
17415         macro.
17416         (INTERNAL_SYSCALL): Likewise.
17417         (INTERNAL_VSYSCALL_NCS): Remove macro.
17418         (INTERNAL_VSYSCALL_CALL): New macro.
17419         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
17420         Remove macro.
17421         (INTERNAL_VSYSCALL): Likewise.
17422         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
17423         sysdep-vdso.h instead of libc-vdso.h.
17424         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
17425         definition.
17426         (INLINE_VSYSCALL): Likewise.
17427         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
17428         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
17429         definition.
17430         (INLINE_VSYSCALL): Likewise.
17431         (INTERNAL_VSYSCALL): Likewise.
17432         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17433         * sysdeps/unix/sysv/linux/timespec_get.c
17434         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17435         (timespec_get): Use ANSI prototype.
17436         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
17437         and definition for Linux.
17438
17439 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
17440
17441         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
17442         * include/libc-symbols.h: libmvec_hidden_* macro series added.
17443
17444 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17445
17446         [BZ #2981]
17447         [BZ #18410]
17448         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
17449         for missing DT_PLTRELSZ.
17450
17451 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17452
17453         Remove obsolete aliases that broke 'locale -a'
17454         [BZ #18412]
17455         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
17456         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
17457         breaking some applications that use 'locale -a' output.
17458         Change the encoding of this file from Latin-1 to ASCII to avoid
17459         other potential problems with people grepping this file.
17460
17461 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17462
17463         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
17464         -fasynchronous-unwind-tables.
17465         (CFLAGS-sendto.c): Likewise.
17466         (CFLAGS-sendmsg.c): Likewise.
17467         (CFLAGS-connect.c): Likewise.
17468         (CFLAGS-recvmsg.c): Likewise.
17469         (CFLAGS-recvfrom.c): Likewise.
17470         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
17471         (SOCKETCALL): New macro: non-cancellable socketcall.
17472         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
17473         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
17474         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
17475         * sysdeps/unix/sysv/linux/accept.c: New file.
17476         * sysdeps/unix/sysv/linux/bind.c: Likewise.
17477         * sysdeps/unix/sysv/linux/connect.c: Likewise.
17478         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
17479         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
17480         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
17481         * sysdeps/unix/sysv/linux/listen.c: Likewise.
17482         * sysdeps/unix/sysv/linux/recv.c: Likewise.
17483         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
17484         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
17485         * sysdeps/unix/sysv/linux/send.c: Likewise.
17486         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
17487         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
17488         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
17489         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
17490         * sysdeps/unix/sysv/linux/socket.c: Likewise.
17491         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
17492         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
17493         prototype.
17494         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
17495         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17496         instead of __internal_xxx function.
17497         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
17498         prototype.
17499         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
17500         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17501         instead of __internal_xxx function.
17502         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
17503         prototype.
17504         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
17505         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17506         instead of __internal_xxx function.
17507         * sysdeps/unix/sysv/linux/accept.S: Remove file.
17508         * sysdeps/unix/sysv/linux/bind.S: Likewise.
17509         * sysdeps/unix/sysv/linux/connect.S: Likewise.
17510         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
17511         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
17512         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
17513         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
17514         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
17515         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
17516         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
17517         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
17518         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
17519         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
17520         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
17521         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
17522         * sysdeps/unix/sysv/linux/listen.S: Likewise.
17523         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
17524         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
17525         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
17526         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
17527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
17528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
17529         * sysdeps/unix/sysv/linux/recv.S: Likewise.
17530         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
17531         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
17532         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
17533         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
17534         * sysdeps/unix/sysv/linux/send.S: Likewise.
17535         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
17536         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
17537         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
17538         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
17539         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
17540         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
17541         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
17542         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
17543         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
17544         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
17545         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
17546         socketcall is implemented in GLIBC.
17547
17548 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17549
17550         * soft-fp/fmadf4.c: Include <libc-internal.h>.
17551         (__fma): Ignore uninitialized warnings around packing.
17552         * soft-fp/fmasf4.c: Include <libc-internal.h>.
17553         (__fmaf): Ignore uninitialized warnings around packing.
17554         * soft-fp/fmatf4.c: Include <libc-internal.h>.
17555         (__fmal): Ignore uninitialized warnings around packing.
17556
17557         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
17558         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17559         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
17560         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17561
17562         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
17563         switch statement into default case.
17564         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
17565
17566         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
17567         a conditional in forcing "inexact".
17568         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
17569         Likewise.
17570
17571 2015-05-22  Roland McGrath  <roland@hack.frob.com>
17572
17573         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17574         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
17575         for each INTERNAL_SYSCALL use.
17576
17577 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17578
17579         [BZ #438]
17580         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
17581         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
17582         variable.
17583
17584         [BZ #18444]
17585         * string/basename.c (basename): Rename to __basename and define as
17586         weak alias of __basename.  Use libc_hidden_weak.
17587         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
17588         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
17589         __basename instead of basename.
17590         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
17591         Remove variable.
17592         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
17593
17594 2015-05-18  Florian Weimer  <fweimer@redhat.com>
17595
17596         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
17597         (_IO_JUMPS_FILE_plus): New.
17598         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
17599         _IO_CAST_FIELD_ACCESS.
17600         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
17601         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
17602         * libio/freopen.c (freopen): Likewise.
17603         * libio/freopen64.c (freopen64): Likewise.
17604         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
17605         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
17606         * libio/iofwide.c (_IO_fwide): Likewise.
17607         * libio/memstream.c (open_memstream): Likewise.
17608         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
17609         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
17610         * libio/oldiopopen.c (_IO_old_popen): Likewise.
17611
17612 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
17613
17614         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
17615         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
17616         NADJ.
17617         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
17618         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
17619         NADJ.
17620         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
17621         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
17622         NADJ.
17623
17624         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
17625         (p == 4) case.
17626
17627         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
17628         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
17629         Remove variable.
17630         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
17631         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
17632         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
17633
17634 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17635
17636         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
17637         Adjust jump table label generation macros.
17638
17639 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17640
17641         * stdio-common/vfprintf.c (vfprintf): Move local variables
17642         args_malloced, specs, specs_malloced, and the code after
17643         do_positional to the printf_positional function.
17644         (printf_positional): New function.
17645
17646 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17647
17648         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
17649         function.
17650         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
17651         STEP4_TABLE, process_arg): Move macro definitions
17652         out of the vfprintf function.  (Cosmetic change only.)
17653
17654 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
17655
17656         * benchtests/Makefile (stdio-common-bench): Define.
17657         (benchset): Add stdio-common-bench.
17658         * sprintf-inputs: New file.
17659         * sprintf-source.c: New file.
17660
17661 2015-05-21  Andreas Schwab  <schwab@suse.de>
17662
17663         [BZ #13028]
17664         [BZ #17053]
17665         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
17666         of struct __res_state.
17667         * resolv/res_send.c (__libc_res_nsend): Likewise.
17668         (get_nsaddr): New function.
17669         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
17670         statp directly.
17671
17672 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
17673
17674         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
17675         -D_POSIX_C_SOURCE=199506L.
17676
17677         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
17678
17679         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
17680         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
17681         Do not mention otherwise.
17682         [POSIX] (_XOPEN_VERSION): Do not expect.
17683         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
17684         [POSIX] (_POSIX2_C_BIND): Likewise.
17685         [POSIX] (_POSIX2_VERSION): Likewise.
17686         [POSIX] (_XOPEN_XPG2): Likewise.
17687         [POSIX] (_XOPEN_XPG3): Likewise.
17688         [POSIX] (_XOPEN_XPG4): Likewise.
17689         [POSIX] (_XOPEN_UNIX): Likewise.
17690         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
17691         [POSIX] (_POSIX_BARRIERS): Likewise.
17692         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
17693         [POSIX] (_POSIX_CPUTIME): Likewise.
17694         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
17695         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
17696         [POSIX] (_POSIX_SHELL): Likewise.
17697         [POSIX] (_POSIX_SPAWN): Likewise.
17698         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
17699         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
17700         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
17701         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
17702         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
17703         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
17704         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
17705         [POSIX] (_XBS5_LP64_OFF64): Likewise.
17706         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
17707         [POSIX] (_POSIX_TIMEOUTS): Likewise.
17708         [POSIX] (_POSIX2_PBS): Likewise.
17709         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
17710         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
17711         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
17712         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
17713         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
17714         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
17715         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
17716         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
17717         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
17718         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
17719         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
17720         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
17721         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
17722         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
17723         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
17724         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
17725         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
17726         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
17727         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
17728         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
17729         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
17730         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
17731         [POSIX] (_SC_2_C_BIND): Likewise.
17732         [POSIX] (_SC_2_C_VERSION): Likewise.
17733         [POSIX] (_SC_2_PBS): Likewise.
17734         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
17735         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
17736         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
17737         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
17738         [POSIX] (_SC_2_PBS_TRACK): Likewise.
17739         [POSIX] (_SC_ATEXIT_MAX): Likewise.
17740         [POSIX] (_SC_BARRIERS): Likewise.
17741         [POSIX] (_SC_BASE): Likewise.
17742         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
17743         [POSIX] (_SC_DEVICE_IO): Likewise.
17744         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
17745         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
17746         [POSIX] (_SC_FD_MGMT): Likewise.
17747         [POSIX] (_SC_FIFO): Likewise.
17748         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
17749         [POSIX] (_SC_FILE_LOCKING): Likewise.
17750         [POSIX] (_SC_FILE_SYSTEM): Likewise.
17751         [POSIX] (_SC_IOV_MAX): Likewise.
17752         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
17753         [POSIX] (_SC_NETWORKING): Likewise.
17754         [POSIX] (_SC_PAGE_SIZE): Likewise.
17755         [POSIX] (_SC_PASS_MAX): Likewise.
17756         [POSIX] (_SC_PIPE): Likewise.
17757         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
17758         [POSIX] (_SC_REGEXP): Likewise.
17759         [POSIX] (_SC_SHELL): Likewise.
17760         [POSIX] (_SC_SIGNALS): Likewise.
17761         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
17762         [POSIX] (_SC_SPIN_LOCKS): Likewise.
17763         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
17764         [POSIX] (_SC_USER_GROUPS): Likewise.
17765         [POSIX] (_SC_USER_GROUPS_R): Likewise.
17766         [POSIX] (_SC_STREAMS): Likewise.
17767         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
17768         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
17769         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
17770         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
17771         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
17772         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
17773         [POSIX] (_PC_FILESIZEBITS): Likewise.
17774         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
17775         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
17776         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
17777         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
17778         [POSIX] (uid_t): Likewise.
17779         [POSIX] (gid_t): Likewise.
17780         [POSIX] (off_t): Likewise.
17781         [POSIX] (pid_t): Likewise.
17782         [POSIX] (cuserid): Allow.
17783         (_SC_2_CHAR_TERM): Require constant.
17784         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
17785         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
17786         variable.
17787
17788 2015-05-20  Roland McGrath  <roland@hack.frob.com>
17789
17790         * sysdeps/nacl/pthread-pids.h: New file.
17791         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
17792         (create_thread): Use __nacl_get_tid to initialize PD->tid.
17793
17794         * nptl/pthread-pids.h: New file.
17795         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
17796         * nptl/nptl-init.c: Include <pthread-pids.h>.
17797         (__pthread_initialize_minimal_internal):
17798         Call __pthread_initialize_pids instead of set_tid_address syscall.
17799
17800         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
17801         * sysdeps/posix/usleep.c: ... here.
17802
17803 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17804
17805         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
17806         call_pselect6 object.
17807         [$(subdir) = io]: Remove call_sync_file_range object.
17808         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
17809         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
17810         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
17811         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
17812
17813 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
17814
17815         * math/s_cproj.c: Add include "math_private.h".
17816         * math/s_cprojf.c: Likewise.
17817         * math/s_cprojl.c: Likewise.
17818
17819 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
17820
17821         [BZ #18244]
17822         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
17823         high mantissa bit when testing whether P is a NaN.
17824         * math/libm-test.inc (remainder_test_data): Add more tests.
17825         (remquo_test_data): Likewise.
17826
17827         [BZ #18049]
17828         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
17829         below -32, return the argument, with underflow if subnormal.
17830         * math/auto-libm-test-in: Add more tests of atanh.
17831         * math/auto-libm-test-out: Regenerated.
17832
17833 2015-05-19  Roland McGrath  <roland@hack.frob.com>
17834
17835         [BZ #18434]
17836         * nptl/tst-sem15.c: New file.
17837         * nptl/Makefile (tests): Add it.
17838         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
17839         s/<</>>/ to fix typo in EOVERFLOW check.
17840         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
17841
17842 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
17843
17844         * manual/strings.texi (envz_remove): Fix typo in safety
17845         annotations.
17846
17847 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17848             Steve Ellcey  <sellcey@imgtec.com>
17849
17850         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
17851         in order to avoid strict alias warnings.
17852         (iruserok_af): Ditto for ra.
17853
17854 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
17855
17856         [BZ #17581]
17857         * malloc/hooks.c
17858         (magicbyte): Convert to a function and avoid returning 0x01.
17859         (mem2mem_check): Avoid using a length byte equal to the magic byte.
17860         (mem2chunk_check): Fix unsigned comparisons to zero.
17861         Hoist defs of sz and magic.
17862
17863 2015-05-19  Richard Henderson  <rth@redhat.com>
17864
17865         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
17866
17867         * sysdeps/alpha/fpu/libm-test-ulps: Update.
17868
17869 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
17870
17871         [BZ #16159]
17872         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
17873         * malloc/arena.c (arena_lock): Check if arena is corrupt.
17874         (reused_arena): Find a non-corrupt arena.
17875         (heap_trim): Pass arena to unlink.
17876         * malloc/hooks.c (malloc_check_get_size): Pass arena to
17877         malloc_printerr.
17878         (top_check): Likewise.
17879         (free_check): Likewise.
17880         (realloc_check): Likewise.
17881         * malloc/malloc.c (malloc_printerr): Add arena argument.
17882         (unlink): Likewise.
17883         (munmap_chunk): Adjust.
17884         (ARENA_CORRUPTION_BIT): New macro.
17885         (arena_is_corrupt): Likewise.
17886         (set_arena_corrupt): Likewise.
17887         (sysmalloc): Use mmap if there are no usable arenas.
17888         (_int_malloc): Likewise.
17889         (__libc_malloc): Don't fail if arena_get returns NULL.
17890         (_mid_memalign): Likewise.
17891         (__libc_calloc): Likewise.
17892         (__libc_realloc): Adjust for additional argument to
17893         malloc_printerr.
17894         (_int_free): Likewise.
17895         (malloc_consolidate): Likewise.
17896         (_int_realloc): Likewise.
17897         (_int_memalign): Don't touch corrupt arenas.
17898         * malloc/tst-malloc-backtrace.c: New test case.
17899
17900         * Makefile (summarize-tests): Fix return value on success.
17901
17902         * manual/string.texi (Envz Functions): Add envz_remove.
17903
17904 2015-05-18  Roland McGrath  <roland@hack.frob.com>
17905
17906         * sysdeps/posix/opendir.c: Include <stdbool.h>.
17907         (invalid_name): New function, broken out of ...
17908         (__opendirat): ... here.  Call it.
17909         (need_isdir_precheck): New function, broken out of ...
17910         (__opendirat): ... here.  Call it.
17911         Use __fxstatat64, not __xstatat64.
17912         (opendir_oflags): New function, broken out of ...
17913         (__opendirat): ... here.  Call it.
17914         (opendir_tail): New function, broken out of ...
17915         (__opendirat): ... here.  Call it.
17916         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
17917         opendir_tail, rather than punting to __opendirat.
17918         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
17919
17920 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
17921
17922         * .gitignore: Ignore generated *.pyc.
17923
17924 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
17925
17926         * include/stdio.h: Define __need_wint_t.
17927         * test-skeleton.c: Avoid `for' loop initial declaration.
17928         * nptl/tst-initializers1.c: Use test-skeleton.c.
17929
17930 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17931
17932         [BZ #18418]
17933         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
17934
17935 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
17936
17937         [BZ #16352]
17938         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
17939         (__ieee754_atanh): Force underflow exception for results with
17940         small absolute value.
17941         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
17942         (__ieee754_atanhf): Force underflow exception for results with
17943         small absolute value.
17944         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
17945         (__ieee754_atanh): Force underflow exception for results with
17946         small absolute value.
17947         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
17948         (__ieee754_atanhf): Force underflow exception for results with
17949         small absolute value.
17950         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
17951         (__ieee754_atanhl): Force underflow exception for results with
17952         small absolute value.
17953         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
17954         (__ieee754_atanhl): Force underflow exception for results with
17955         small absolute value.
17956         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
17957         (__ieee754_atanhl): Force underflow exception for results with
17958         small absolute value.
17959         * math/auto-libm-test-in: Do not allow missing underflow
17960         exceptions from atanh.
17961         * math/auto-libm-test-out: Regenerated.
17962
17963         [BZ #18221]
17964         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
17965         2**-28 as threshold for returning x or +/- 1/x.
17966         * math/auto-libm-test-in: Add more tests of tan.
17967         * math/auto-libm-test-out: Regenerated.
17968
17969         [BZ #18220]
17970         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
17971         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
17972         * math/auto-libm-test-in: Add another test of lgamma.
17973         * math/auto-libm-test-out: Regenerated.
17974
17975 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
17976
17977         * stdio-common/printf_fp.c (___printf_fp): Use abs.
17978         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
17979         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
17980         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
17981         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
17982         (ADD2A): Use fabs.  (SUB2A): Use fabs.
17983         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
17984         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
17985         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
17986         (log1): Use fabs.  (my_log2): Use fabs.
17987         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
17988         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
17989         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
17990         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
17991         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
17992         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
17993         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
17994         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
17995         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
17996         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
17997         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
17998
17999 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18000
18001         [BZ #18217]
18002         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
18003         as threshold for returning 1 - x.
18004         * math/auto-libm-test-in: Add more tests of erfc.
18005         * math/auto-libm-test-out: Regenerated.
18006
18007 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
18008
18009         [BZ #18196]
18010         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
18011         threshold for large arguments.
18012         * math/auto-libm-test-in: Add another test of atan.
18013         * math/auto-libm-test-out: Regenerated.
18014
18015         [BZ #16339]
18016         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
18017         (__log1p): Force underflow exception for results with small
18018         absolute value.
18019         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
18020         (__log1pf): Force underflow exception for results with small
18021         absolute value.
18022         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
18023         (__log1p): Force underflow exception for results with small
18024         absolute value.
18025         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
18026         (__log1pf): Force underflow exception for results with small
18027         absolute value.
18028         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
18029         (__log1pl): Force underflow exception for results with small
18030         absolute value.
18031         * math/auto-libm-test-in: Do not allow missing underflow
18032         exceptions from log1p.
18033         * math/auto-libm-test-out: Regenerated.
18034
18035 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
18036             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18037
18038         [BZ #16704]
18039         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
18040
18041 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
18042
18043         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
18044         (libmvec): New variable.
18045         * configure.ac: Added option for mathvec build.
18046         * configure: Regenerated.
18047         * mathvec/Depend: New file.
18048         * mathvec/Makefile: New file.
18049         * shlib-versions: Added libmvec.
18050         * math/Makefile: Added rule for libm.so installation.
18051
18052         * bits/math-vector.h: New file.
18053         * bits/libm-simd-decl-stubs.h: New header.
18054         * math/Makefile (headers): Added new header
18055         libm-simd-decl-stubs.h.
18056         * math/math.h (__MATHCALL_VEC): New macro.
18057
18058         * math/gen-libm-have-vector-test.sh: Script generates series of macros
18059         for conditions in testing functions.
18060         * math/Makefile: Added call of libm-have-vector-test.sh.
18061         * math/libm-test.inc (HAVE_VECTOR): New macros.
18062
18063         * math/libm-test.inc: START refactored.
18064         * math/test-double.c (TEST_MATHVEC): Add define.
18065         * math/test-float.c: Likewise.
18066         * math/test-idouble.c: Likewise.
18067         * math/test-ifloat.c: Likewise.
18068         * math/test-ildoubl.c: Likewise.
18069         * math/test-ldouble.c: Likewise.
18070         * sysdeps/generic/math-tests-arch.h
18071         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
18072         architecture check.
18073
18074         * math/test-double.c (FUNC_TEST): New macro.
18075         * math/test-float.c: Likewise.
18076         * math/test-idouble.c: Likewise.
18077         * math/test-ifloat.c: Likewise.
18078         * math/test-ildoubl.c: Likewise.
18079         * math/test-ldouble.c: Likewise.
18080         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
18081
18082 2015-05-13  Roland McGrath  <roland@hack.frob.com>
18083
18084         * sysdeps/nacl/fdopendir.c: New file.
18085
18086         * dirent/scandir-tail.c: New file.
18087         * dirent/scandir64-tail.c: New file.
18088         * dirent/Makefile (routines): Add them.
18089         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
18090         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
18091         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
18092         [!SCANDIR] (SCANDIR_TAIL): New macro.
18093         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
18094         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
18095         (SCANDIRAT): Macro removed.
18096         (SCANDIR_TAIL): New macro.
18097         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
18098         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
18099         (SCANDIRAT): Just call __opendirat and __scandir_tail.
18100         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
18101         (READDIR): Macro removed.
18102         (SCANDIR_TAIL): New macro.
18103         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
18104         (SCANDIR_TAIL): New macro.
18105
18106         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
18107         * dirent/scandir-cancel.c: ... to this new file.
18108         * dirent/Makefile (routines): Add it.
18109         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
18110         * sysdeps/unix/sysv/linux/i386/scandir64.c
18111         (SKIP_SCANDIR_CANCEL): Macro removed.
18112         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
18113
18114         * dirent/tst-scandir.c: New file.
18115         * dirent/tst-scandir64.c: New file.
18116         * dirent/Makefile (tests): Add them.
18117
18118 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
18119
18120         [BZ #18409]
18121         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
18122
18123 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18124
18125         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
18126         list.
18127
18128 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
18129
18130         * benchtests/bench-strcoll.c: New benchmark.
18131         * benchtests/Makefile: Generate locales and run benchmark.
18132         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
18133         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
18134         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
18135         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
18136         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
18137         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
18138         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
18139         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
18140         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
18141         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
18142         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
18143         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
18144         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
18145         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
18146         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
18147         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
18148         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
18149         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
18150         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
18151         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
18152         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
18153         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
18154         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
18155         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
18156
18157 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
18158
18159         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
18160         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18161
18162 2015-05-12  Roland McGrath  <roland@hack.frob.com>
18163
18164         * posix/uname-values.h: New file.
18165         * posix/uname.c: Include that instead of <config-name.h>.
18166         * sysdeps/nacl/uname-values.h: New file.
18167         * sysdeps/arm/nacl/uname-values.h: New file.
18168
18169 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
18170
18171         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
18172         splitting into fields.
18173
18174 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
18175
18176         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
18177         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
18178         * locale/localeinfo.h: Add enum collation_encoding_type.
18179         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
18180         * programs/ld-collate.c (collate_output): Add encoding type info.
18181         * string/strcoll_l.c (STRDIFF): New function.
18182         * (STRCOLL): Use STRDIFF to skip over equal prefix.
18183         * wcsmbs/wcscoll_l.c: Define STRDIFF.
18184
18185 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
18186
18187         [BZ #18397]
18188         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
18189         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
18190         <fpu_control.h> instead of <math/fpu_control.c>.
18191         * sysdeps/mips/mips32/fpu/Makefile: New file.
18192
18193 2015-05-11  Andreas Schwab  <schwab@suse.de>
18194
18195         [BZ #18007]
18196         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
18197         nss_endgrent.
18198         (_nss_compat_endgrent): Call nss_endgrent.
18199         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
18200         nss_endpwent.
18201         (_nss_compat_endpwent): Call nss_endpwent.
18202         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
18203         needent, call nss_setspent only if non-zero.
18204         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
18205         (internal_endspent): Don't call nss_endspent.
18206         (_nss_compat_endspent): Call nss_endspent.
18207         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
18208         Remove.  All uses removed.
18209         (internal_setent): Remove parameter stayopen, add parameter
18210         stream.  Use it instead of global variable.
18211         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
18212         (internal_endent, internal_getent): Add parameter stream.  Use it
18213         instead of global variable.
18214         (CONCAT(_nss_files_end,ENTNAME))
18215         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
18216         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
18217         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
18218         uses removed.
18219         (internal_setent, internal_endent): Add parameter stream.  Use it
18220         instead of global variable.
18221         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
18222         stream.
18223         (get_next_alias): Add parameter stream.
18224         (_nss_files_getaliasent_r): Pass global stream.
18225         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
18226         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
18227         (_nss_files_gethostbyname4_r): Pass local stream to
18228         internal_setent, internal_getent and internal_endent.  Remove
18229         locking.
18230
18231 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
18232
18233         * tst-strfmon1.c (tests): Update expected currency symbol.
18234
18235 2015-05-08  Roland McGrath  <roland@hack.frob.com>
18236
18237         * sysdeps/nacl/gethostname.c: New file.
18238
18239 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
18240
18241         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
18242         and sinh.
18243         * math/auto-libm-test-out: Regenerated.
18244         * sysdeps/i386/fpu/libm-test-ulps: Update.
18245         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18246
18247 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
18248
18249         [BZ #18125]
18250         * stdlib/tst-setcontext3.c: New file.
18251         * stdlib/tst-setcontext3.sh: New file.
18252         * stdlib/Makefile (tests): Add tst-setcontext3.
18253         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
18254         to verify test program created output file.
18255         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
18256         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
18257         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
18258         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
18259
18260 2015-05-06  Roland McGrath  <roland@hack.frob.com>
18261
18262         [BZ #18383]
18263         * elf/tst-tlsalign.c: New file.
18264         * elf/tst-tlsalign-static.c: New file.
18265         * elf/tst-tlsalign-lib.c: New file.
18266         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
18267         (tests-static): Add tst-tlsalign-static.
18268         (modules-names): Add tst-tlsalign-lib.
18269         (test-xfail-tst-tlsalign): New variable.
18270         (test-xfail-tst-tlsalign-static): New variable.
18271
18272         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
18273         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
18274
18275 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
18276
18277         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
18278         csqrt, erfc, sin and sincos.
18279         * math/auto-libm-test-out: Regenerated.
18280         * sysdeps/i386/fpu/libm-test-ulps: Update.
18281         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18282
18283 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18284
18285         * sysdeps/aarch64/libm-test-ulps: Update.
18286
18287 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
18288
18289         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
18290         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
18291         * math/auto-libm-test-out: Regenerated.
18292         * sysdeps/i386/fpu/libm-test-ulps: Update.
18293         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18294
18295 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
18296
18297         [BZ #18265]
18298         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
18299         (wcsncpy): Likewise.
18300
18301 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18302
18303         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
18304         Assume __ASSUME_FALLOCATE is always true.
18305         * sysdeps/unix/sysv/linux/posix_fallocate64.c
18306         (__posix_fallocate64_l64): Likweise.
18307         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
18308         (posix_fallocate): Likewise.
18309         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
18310         (__posix_fallocate64_l64): Likewise.
18311         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18312         [!__ASSUME_FALLOCATE]: Add comment.
18313
18314 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18315
18316         * sysdeps/unix/sysv/linux/i386/Makefile
18317         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
18318         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
18319         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
18320         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18321         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18322         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
18323         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
18324
18325 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
18326
18327         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
18328         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
18329         tgamma.
18330         * math/auto-libm-test-out: Regenerated.
18331         * sysdeps/i386/fpu/libm-test-ulps: Update.
18332         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18333
18334 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18335
18336         * math/auto-libm-test-in: Add more tests of tgamma.
18337         * math/auto-libm-test-out: Regenerated.
18338         * sysdeps/i386/fpu/libm-test-ulps: Update.
18339         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18340
18341         * math/auto-libm-test-in: Add more tests of tanh.
18342         * math/auto-libm-test-out: Regenerated.
18343         * sysdeps/i386/fpu/libm-test-ulps: Update.
18344         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18345
18346         * math/auto-libm-test-in: Add more tests of tan.
18347         * math/auto-libm-test-out: Regenerated.
18348         * sysdeps/i386/fpu/libm-test-ulps: Update.
18349         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18350
18351         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
18352         * math/auto-libm-test-out: Regenerated.
18353         * sysdeps/i386/fpu/libm-test-ulps: Update.
18354         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18355
18356         * math/auto-libm-test-in: Add another test of pow.
18357         * math/auto-libm-test-out: Regenerated.
18358         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18359
18360         * math/auto-libm-test-in: Add more tests of lgamma.
18361         * math/auto-libm-test-out: Regenerated.
18362         * sysdeps/i386/fpu/libm-test-ulps: Update.
18363         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18364
18365         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
18366         log1p.
18367         * math/auto-libm-test-out: Regenerated.
18368         * sysdeps/i386/fpu/libm-test-ulps: Update.
18369         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18370
18371 2015-05-01  Mark Wielaard  <mjw@redhat.com>
18372
18373         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
18374         Elf64_Chdr structs and ELFCOMPRESS constants.
18375
18376 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18377
18378         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
18379         expm1.
18380         * math/auto-libm-test-out: Regenerated.
18381         * sysdeps/i386/fpu/libm-test-ulps: Update.
18382         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18383
18384         * math/auto-libm-test-in: Add more tests of erf and erfc.
18385         * math/auto-libm-test-out: Regenerated.
18386         * sysdeps/i386/fpu/libm-test-ulps: Update.
18387         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18388
18389 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18390
18391         * config.h.in (HAVE_AARCH64_BE): Add.
18392
18393 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
18394
18395         * math/auto-libm-test-in: Add more tests of csqrt.
18396         * math/auto-libm-test-out: Regenerated.
18397         * sysdeps/i386/fpu/libm-test-ulps: Update.
18398         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18399
18400         * math/auto-libm-test-in: Add more tests of cosh and sinh.
18401         * math/auto-libm-test-out: Regenerated.
18402         * sysdeps/i386/fpu/libm-test-ulps: Update.
18403         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18404
18405         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
18406
18407 2015-04-29  Roland McGrath  <roland@hack.frob.com>
18408
18409         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
18410         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
18411
18412         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
18413         (euidaccess, eaccess): Define as weak aliases.
18414
18415         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
18416         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
18417         but __suseconds_t is often 'long int' so some sources assume that
18418         type is being used (e.g. they use %ld to print tv_usec).
18419
18420 2015-04-29  Florian Weimer  <fweimer@redhat.com>
18421
18422         [BZ #18007]
18423         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
18424         (CVE-2014-8121)
18425         * nss/tst-nss-getpwent.c: New file.
18426         * nss/Makefile (tests): Add new test.
18427
18428 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
18429
18430         [BZ #18346]
18431         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
18432         exponents less than 48 as cases where high part of mantissa needs
18433         examining to determine whether argument is integral.
18434         * math/libm-test.inc (round_test_data): Add more tests.
18435
18436 2015-04-28  Mark Wielaard  <mjw@redhat.com>
18437
18438         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
18439
18440 2015-04-27  David S. Miller  <davem@davemloft.net>
18441
18442         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
18443         __tls_get_addr.
18444         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
18445
18446 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
18447
18448         [BZ#18333]
18449         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
18450
18451 2015-04-27  Florian Weimer  <fweimer@redhat.com>
18452
18453         [BZ#18333]
18454         * time/tzset.c (parse_tzname): Return error on memory allocation
18455         failure.
18456         * test-skeleton.c (struct temp_name_list): Change type of name
18457         member to non-const.
18458         (add_temp_file): Create a copy of the file name.
18459         (delete_temp_files): Deallocate memory.
18460         (create_temp_file): Add comment.
18461
18462 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18463
18464         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
18465         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
18466
18467 2015-04-24  Roland McGrath  <roland@hack.frob.com>
18468
18469         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
18470         * sysdeps/arm/configure: Regenerated.
18471
18472 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18473
18474         [BZ #17715]
18475         * time/tzfile.c (__tzfile_read): Check for large values of
18476         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
18477         * time/tzset.c (__tzstring_len): New function, based on the old
18478         __tzstring function.
18479         (__tzstring): Call __tzstring_len.
18480         (parse_tzname): New helper function extracted from
18481         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
18482         the input string.
18483         (parse_offset): New helper function extracted from
18484         __tzset_parse_tz.  Replace switch with fallthrough with
18485         initialization before sscanf.
18486         (parse_rule): Likewise.
18487         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
18488         new-style function definition.
18489         * timezone/Makefile (tests): Add tst-tzset.
18490         (tst-tzset.out): Dependencies on time zone files.
18491         (tst-tzset-ENV): Set TZDIR.
18492         (testdata/XT%): Copy crafted time zone files.
18493         * timezone/README: Mention crafted time zone files.
18494         * timezone/testdata/XT1, timezone/testdata/XT2,
18495         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
18496         files.
18497         * timezone/tst-tzset.c: New test.
18498
18499 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18500
18501         * Makeconfig (+gccwarn): Remove -Winline.
18502
18503 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18504
18505         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
18506
18507 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18508
18509         * NEWS: Mention sysconf() cache information support for s390.
18510         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
18511
18512 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
18513
18514         * math/k_casinh.c (__kernel_casinh): Use __copysign.
18515         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
18516         (__nearbyint): Likewise.
18517         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
18518         (copysignl): Likewise.
18519
18520 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
18521
18522         [BZ #18287]
18523         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
18524         based on padding.  (CVE-2015-1781)
18525
18526 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18527
18528         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
18529         libc-vdso.h.
18530         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
18531         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
18532         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
18533         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
18534         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
18535         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
18536         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
18537         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
18538         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
18539         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
18540         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
18541         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
18542         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
18543         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
18544         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
18545         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
18546         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
18547         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
18548         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
18549         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
18550         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
18551         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
18552         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
18553
18554 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
18555
18556         * stdlib/setenv.c (__add_to_environ):
18557         Dump core quickly if setenv (..., NULL, ...) is called.
18558         This time, do it the right way, and pacify GCC with a pragma.
18559
18560 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18561
18562         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
18563         IMAP->l_prev cannot be null, and #if out the code for the contrary
18564         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
18565         believe that NS (&_dl_ns[NSID]) could point outside the array.
18566
18567         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
18568         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
18569         before using NSID as an index.
18570
18571 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
18572
18573         [BZ #17825]
18574         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
18575         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
18576         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
18577
18578 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18579
18580         Add preliminary port to Google Native Client on ARM.
18581         * abi-tags (.*-.*-nacl.*): New entry.
18582         * sysdeps/arm/nacl: New directory.
18583         * sysdeps/nacl: New directory.
18584
18585 2015-04-16  David S. Miller  <davem@davemloft.net>
18586
18587         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
18588         lowlevellock-futex.h
18589
18590 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
18591
18592         * sysdeps/tile/configure.ac: New file.
18593         * sysdeps/tile/configure: Regenerated.
18594
18595 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18596
18597         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
18598         conditionals for weak_alias and libc_hidden_weak.
18599         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
18600         libc_hidden_weak and weak_alias.
18601         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
18602         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
18603         and weak_alias for static one.
18604
18605 2015-04-15  David S. Miller  <davem@davemloft.net>
18606
18607         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
18608
18609 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18610
18611         [BZ #18206]
18612         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
18613           Use signed comparision instead of substraction to avoid
18614           overflow bug.
18615         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
18616           Take the sign of ret.
18617         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
18618           Do not expect precise return values. Only the sign matters.
18619         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
18620         * wcsmbs/test-wcsncmp.c: New File.
18621         * string/test-strncmp.c: Add wcsncmp support.
18622
18623 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18624
18625         [BZ #6792]
18626         * math/w_log1p.c: New file.
18627         * math/w_log1pf.c: Likewise.
18628         * math/w_log1pl.c: Likewise.
18629         * math/Makefile (libm-calls): Add w_log1p.
18630         * math/s_log1pl.c (log1pl): Remove weak_alias.
18631         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
18632         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
18633         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
18634         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
18635         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
18636         [NO_LONG_DOUBLE] (log1pl): Likewise.
18637         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
18638         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
18639         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
18640         (log1p): Remove long_double_symbol.
18641         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
18642         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
18643         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
18644         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
18645         remove weak_alias for corresponding log1p function.
18646         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
18647         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
18648         * sysdeps/ia64/fpu/w_log1p.c: New file.
18649         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
18650         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
18651         * math/libm-test.inc (log1p_test_data): Add errno expectations.
18652
18653 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
18654
18655         [BZ #18247]
18656         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
18657         decimal exponent by 1.
18658         * stdlib/tst-strtod-round-data: Add more tests.
18659         * stdlib/tst-strtod-round.c (tests): Regenerated.
18660
18661 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
18662
18663         * math/auto-libm-test-in: Add more tests of clog and clog10.
18664         * math/auto-libm-test-out: Regenerated.
18665         * sysdeps/i386/fpu/libm-test-ulps: Update.
18666         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18667
18668 2015-04-09  Roland McGrath  <roland@hack.frob.com>
18669
18670         * Makeconfig (module-cppflags): Exclude all .v.i files.
18671         (skip-module-cppflags): Variable removed.
18672
18673         * configure.ac (libc_config_ok): Initialize before reading
18674         preconfigure scripts, not after.
18675         * configure: Regenerated.
18676
18677         * test-skeleton.c (TIMEOUT): Move #define to top level.
18678         (main): Grok environment variable TEST_DIRECT.  If set, print
18679         test expectation details into that file and then behave as if
18680         given --direct.
18681
18682 2015-04-09  Florian Weimer  <fweimer@redhat.com>
18683
18684         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
18685         warning on 32-bit.
18686
18687 2015-04-08  David S. Miller  <davem@davemloft.net>
18688
18689         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18690
18691 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18692
18693         * math/auto-libm-test-in: Add more tests of atanh.
18694         * math/auto-libm-test-out: Regenerated.
18695         * sysdeps/i386/fpu/libm-test-ulps: Update.
18696         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18697
18698         * math/auto-libm-test-in: Add more tests of atan.
18699         * math/auto-libm-test-out: Regenerated.
18700         * sysdeps/i386/fpu/libm-test-ulps: Update.
18701         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18702
18703 2015-04-08  Florian Weimer  <fweimer@redhat.com>
18704
18705         * elf/pldd.c (main): Rewrite to use struct
18706         scratch_buffer instead of extend_alloca.
18707         * elf/pldd-xx.c (find_maps): Likewise.
18708         * grp/initgroups.c: Include <scratch_buffer.h> instead of
18709         <alloca.h>.
18710         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
18711         scratch_buffer instead of extend_alloca.
18712         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
18713         grp/compat-initgroups.c.
18714         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
18715         Rewrite to use struct scratch_buffer instead of extend_alloca.
18716         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
18717         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
18718
18719 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18720
18721         * math/auto-libm-test-in: Add more tests of cbrt.
18722         * math/auto-libm-test-out: Regenerated.
18723         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18724
18725         * math/auto-libm-test-in: Add more tests of cabs.
18726         * math/auto-libm-test-out: Regenerated.
18727         * sysdeps/i386/fpu/libm-test-ulps: Update.
18728         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18729
18730         [BZ #18210]
18731         [BZ #18211]
18732         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
18733         (__ieee754_atan2): Set FE_TONEAREST mode for internal
18734         computations.
18735         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
18736         clog10.
18737         * math/auto-libm-test-out: Regenerated.
18738         * sysdeps/i386/fpu/libm-test-ulps: Update.
18739         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18740
18741         [BZ #18197]
18742         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
18743         (atan): Set FE_TONEAREST mode for internal computations.
18744         * math/auto-libm-test-in: Add more tests of atan.
18745         * math/auto-libm-test-out: Regenerated.
18746
18747 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
18748
18749         [BZ #17930]
18750         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
18751
18752 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18753
18754         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
18755
18756 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18757
18758         * include/scratch_buffer.h: New file.
18759         * malloc/scratch_buffer_grow.c: Likewise.
18760         * malloc/scratch_buffer_grow_preserve.c: Likewise.
18761         * malloc/scratch_buffer_set_array_size.c: Likewise.
18762         * malloc/tst-scratch_buffer.c: Likewise.
18763         * malloc/Makefile (routines): Add scratch_buffer_grow.
18764         (tests): Add test case.
18765         * malloc/Versions (GLIBC_PRIVATE): Export
18766         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
18767         __libc_scratch_buffer_set_array_size.
18768
18769 2015-04-06  Richard Henderson  <rth@redhat.com>
18770
18771         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
18772         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18773
18774         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
18775         unsigned int before printing.
18776
18777 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18778
18779         [BZ #17596]
18780         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
18781         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
18782
18783 2015-04-02  Florian Weimer  <fweimer@redhat.com>
18784
18785         * include/libc-internal.h (libc_max_align_t): Define.
18786
18787 2015-04-02  Andreas Schwab  <schwab@suse.de>
18788
18789         [BZ #16850]
18790         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
18791
18792 2015-04-02  Mel Gorman  <mgorman@suse.de>
18793
18794         [BZ #17195]
18795         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
18796         as well as the main arena.
18797
18798 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18799
18800         [BZ #18185]
18801         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
18802         sharing L2 cache to 2 for Silvermont/Knights Landing.
18803
18804 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18805
18806         [BZ #17711]
18807         * config.make.in (have-protected-data): New.
18808         * configure.ac: Check linker support for protected data symbol.
18809         * configure: Regenerated.
18810         * elf/Makefile (modules-names): Add tst-protected1moda and
18811         tst-protected1modb if $(have-protected-data) is yes.
18812         (tests): Add tst-protected1a and tst-protected1b if
18813         $(have-protected-data) is yes.
18814         ($(objpfx)tst-protected1a): New.
18815         ($(objpfx)tst-protected1b): Likewise.
18816         (tst-protected1modb.so-no-z-defs): Likewise.
18817         * elf/tst-protected1a.c: New file.
18818         * elf/tst-protected1b.c: Likewise.
18819         * elf/tst-protected1mod.h: Likewise.
18820         * elf/tst-protected1moda.c: Likewise.
18821         * elf/tst-protected1modb.c: Likewise.
18822
18823 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18824
18825         [BZ #17711]
18826         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
18827         indicates it is called from do_lookup_x on relocation against
18828         protected data, skip the data definion in the executable from
18829         copy reloc.
18830         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
18831         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
18832         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
18833         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
18834         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
18835         otherwise to 0.
18836         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
18837         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
18838         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
18839         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
18840         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
18841         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
18842
18843 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
18844
18845         * sysdeps/nptl/pthread.h: Remove duplicate definition of
18846         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
18847
18848 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
18849
18850         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
18851         THREAD_SETMEM_NC.
18852         * sysdeps/x86_64/nptl/tls.h: Ditto.
18853
18854 2015-03-27  Roland McGrath  <roland@hack.frob.com>
18855
18856         * dlfcn/tststatic.c (main): Converted to ...
18857         (do_test): ... this.
18858         (TEST_FUNCTION): New macro.
18859         Include test-skeleton.c.
18860
18861 2015-03-26  Alan Modra  <amodra@gmail.com>
18862
18863         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
18864         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
18865         zero for undefined weak.
18866         (elf_machine_plt_conflict): Similarly.
18867
18868 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
18869
18870         * math/auto-libm-test-in: Add more tests of acosh, asinh and
18871         atanh.
18872         * math/auto-libm-test-out: Regenerated.
18873         * sysdeps/i386/fpu/libm-test-ulps: Update.
18874         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18875
18876         * math/auto-libm-test-in: Add another test of asin.
18877         * math/auto-libm-test-out: Regenerated.
18878         * sysdeps/i386/fpu/libm-test-ulps: Update.
18879         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18880
18881         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
18882         Remove macro.
18883         (LLL_EBX_REG): Likewise.
18884         (LLL_ENTER_KERNEL): Likewise.
18885
18886         * math/auto-libm-test-in: Add more tests of asin.
18887         * math/auto-libm-test-out: Regenerated.
18888         * sysdeps/i386/fpu/libm-test-ulps: Update.
18889         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18890
18891         [BZ #18138]
18892         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
18893         libc_do_syscall_args): New structure.
18894         (INTERNAL_SYSCALL_MAIN_0): New macro.
18895         (INTERNAL_SYSCALL_MAIN_1): Likewise.
18896         (INTERNAL_SYSCALL_MAIN_2): Likewise.
18897         (INTERNAL_SYSCALL_MAIN_3): Likewise.
18898         (INTERNAL_SYSCALL_MAIN_4): Likewise.
18899         (INTERNAL_SYSCALL_MAIN_5): Likewise.
18900         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
18901         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
18902         Replace conditional definitions by conditional definitions of ....
18903         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
18904         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
18905         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
18906         (libpthread-sysdep_routines): Add libc-do-syscall.
18907         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
18908         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
18909         to __NR_futex not 240.
18910
18911 2015-03-25  Alan Modra  <amodra@gmail.com>
18912
18913         * NEWS: Advertise TLS optimization.
18914         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
18915         (DT_PPC_NUM): Increment.
18916         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
18917         (CHECK_STATIC_TLS): Use here.
18918         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
18919         TLS descriptors.
18920         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
18921         * sysdeps/powerpc/dl-tls.c: New file.
18922         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
18923         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
18924         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
18925         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
18926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
18927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
18928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
18929
18930 2015-03-25  Alan Modra  <amodra@gmail.com>
18931
18932         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
18933         for overlapping .opd entries" to "support...".
18934         * sysdeps/powerpc/powerpc64/configure: Regenerate
18935
18936 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
18937
18938         * math/auto-libm-test-in: Add more tests of acos.
18939         * math/auto-libm-test-out: Regenerated.
18940         * sysdeps/i386/fpu/libm-test-ulps: Update.
18941         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18942
18943         * math/auto-libm-test-in: Add more tests of expm1.
18944         * math/auto-libm-test-out: Regenerated.
18945         * sysdeps/i386/fpu/libm-test-ulps: Update.
18946         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18947
18948 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
18949
18950         * math/auto-libm-test-in: Add more tests of cosh and sinh.
18951         * math/auto-libm-test-out: Regenerated.
18952         * sysdeps/i386/fpu/libm-test-ulps: Update.
18953         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18954
18955         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
18956         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18957
18958         * math/auto-libm-test-in: Add more tests of log2.
18959         * math/auto-libm-test-out: Regenerated.
18960         * sysdeps/i386/fpu/libm-test-ulps: Update.
18961         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18962
18963 2015-03-23  Roland McGrath  <roland@hack.frob.com>
18964
18965         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
18966         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
18967         _IO_IS_APPENDING bit in READ_WRITE instead.
18968
18969 2015-03-23  Florian Weimer  <fweimer@redhat.com>
18970
18971         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
18972         (__determine_cpumask_size): Replace extend_alloca with a
18973         variable-length array.  Do not treat res == 0 as an error.
18974
18975 2015-03-23  Florian Weimer  <fweimer@redhat.com>
18976
18977         [BZ #18100]
18978         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
18979         and integer overflow.
18980         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
18981         (main): Add integer overflow tests.
18982         * manual/pattern.texi (Calling Wordexp): Document additional use
18983         for WRDE_SYNTAX.
18984
18985 2015-03-23  Alan Modra  <amodra@gmail.com>
18986
18987         * config.h.in: Remove HAVE_ASM_PPC_REL16.
18988         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
18989         and false branch of conditional.
18990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
18991         Likewise.
18992
18993 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
18994
18995         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
18996         libc-modules.h
18997         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
18998         unused declaration of _hurd_intr_rpc_msg_in_trap.
18999         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
19000         defined instead of whether it is non-zero.
19001         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
19002         input constraint instead of both input and output constraint.  Use ecx
19003         clobber instead of %ecx.
19004         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
19005         mutex_unlock): Use a statement expression instead of an expression list.
19006         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
19007         type to vm_size_t instead of vm_address_t.
19008         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
19009         defined instead of whether it is non-zero.
19010         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
19011         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
19012         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
19013         comparisons with mapaddr.
19014         * nscd/nscd-client.h: Include <time.h>.
19015         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
19016         9th parameter to __vm_region instead of int.
19017         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
19018         * scripts/check-local-headers.sh (exclude): Add device/,
19019         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
19020         cthreads.h.
19021
19022 2015-03-19  Roland McGrath  <roland@hack.frob.com>
19023
19024         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
19025         to account for alignment padding.
19026         * sysdeps/arm/memmove.S: Likewise.
19027
19028 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
19029
19030         * sysdeps/unix/sysv/linux/generic/README: New file.
19031
19032 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
19033
19034         [BZ #18138]
19035         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
19036         (futex_abstimed_wait)
19037         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
19038         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
19039         of lll_futex_timed_wait.
19040
19041 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
19042
19043         [BZ #17542]
19044         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
19045
19046 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
19047
19048         [BZ #17090]
19049         [BZ #17620]
19050         [BZ #17621]
19051         [BZ #17628]
19052         * NEWS: Update.
19053         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
19054         entries with Static TLS too.  Skip entries past the end of the
19055         allocated DTV, from Alan Modra.
19056         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
19057         Static TLS DTV entry set up from...
19058         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
19059         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
19060         * nptl/allocatestack.c (init_one_static_tls): ... and here...
19061         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
19062         for Static TLS.
19063         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
19064         that the slot we find is associated with the given map before
19065         using its generation count.
19066         * nptl_db/db_info.c: Include ldsodefs.h.
19067         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
19068         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
19069         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
19070         (link_map::l_tls_offset): New struct field.
19071         (dtv_t::counter): Likewise.
19072         (rtld_global): New struct.
19073         (_rtld_global): New rtld variable.
19074         (dl_tls_dtv_slotinfo_list): New rtld global field.
19075         (dtv_slotinfo_list): New struct.
19076         (dtv_slotinfo): Likewise.
19077         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
19078         (td_lookup): Rename to...
19079         (td_mod_lookup): ... this.  Use new mod parameter instead of
19080         LIBPTHREAD_SO.
19081         * nptl_db/td_thr_tlsbase.c: Include link.h.
19082         (dtv_slotinfo_list, dtv_slotinfo): New functions.
19083         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
19084         addresses even if the DTV is out of date or missing them.
19085         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
19086         index zero-length arrays.
19087         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
19088         (td_lookup): Make it a macro implemented in terms of...
19089         (td_mod_lookup): ... this declaration.
19090         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
19091         (DB_MAIN_VARIABLE): Likewise.
19092
19093 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19094
19095         [BZ #18134]
19096         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
19097
19098 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19099
19100         * stdlib/setenv.c (__add_to_environ): Revert previous change.
19101
19102 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
19103
19104         [BZ #18128]
19105         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
19106         (atomic_add, atomic_increment_and_test)
19107         (atomic_decrement_and_test): Fix 64-bit arithmetic.
19108
19109 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19110
19111         * stdlib/setenv.c (__add_to_environ):
19112         Dump core quickly if setenv (..., NULL, ...) is called.
19113
19114 2015-03-13  Roland McGrath  <roland@hack.frob.com>
19115
19116         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
19117         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
19118         all the necessary asm magic in one place.
19119         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
19120         using those.
19121
19122 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
19123
19124         [BZ #14906]
19125         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
19126         traced file mtime. Use consistent log message.
19127         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
19128         (register_traced_file): Call install_watches. Always set mtime.
19129         (invalidate_cache): Iterate over all trace files. Call install_watches.
19130         (inotify_check_files): Don't inline. Handle watching parent
19131         directories and configuration file movement in and out.
19132         (handle_inotify_events): New function.
19133         (main_loop_poll): Call handle_inotify_events.
19134         (main_loop_epoll): Likewise.
19135         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
19136         (struct traced_file): Use array of inotify fds. Add parent directory,
19137         and basename.
19138         (struct database_dyn): Remove unused file_mtime.
19139         (init_traced_file): New inline function.
19140         (define_traced_file): New macro.
19141         * nss/nss_db/db-init.c: Use define_traced_file.
19142         (_nss_db_init): Use init_traced_file.
19143         * nss/nss_files/files-init.c: Use define_traced_file.
19144         (_nss_files_init): Use init_traced_file.
19145
19146 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
19147
19148         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
19149         [_LIBC]: Do not include <stdlib.h>.
19150         [!_LIBC] (abort): Remove declaration.
19151         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
19152         _FP_STATIC_ASSERT instead of conditionally calling abort.
19153         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
19154         (_FP_EXTEND_CNAN): Likewise.
19155         (FP_TRUNC): Likewise.
19156         (__FP_CLZ): Likewise.
19157         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
19158
19159 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
19160
19161         * manual/string.texi (XPG basename): Fix prototype.
19162
19163 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19164
19165         [BZ #18080]
19166         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
19167         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19168         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
19169         (__setcontext): Likewise.
19170         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
19171         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19172         Call rt_sigprocmask syscall one time to set new signal mask
19173         and retrieve the current signal mask instead of two calls.
19174         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
19175         (__swapcontext): Likewise.
19176         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
19177         * stdlib/tst-setcontext2.c: New file.
19178
19179 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19180
19181         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
19182
19183 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
19184
19185         [BZ #18093]
19186         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
19187         the wrong size.
19188
19189 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
19190
19191         [BZ #18043]
19192         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
19193
19194 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19195
19196         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
19197         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
19198         Remove define.
19199         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
19200         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
19201         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
19202         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
19203         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
19204         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
19205         define.
19206         * nptl_db/td_symbol_list.c (td_lookup): Remove
19207         HAVE_ASM_GLOBAL_DOT_NAME code.
19208         * sysdeps/powerpc/powerpc64/configure.ac: Remove
19209         HAVE_ASM_GLOBAL_DOT_NAME check.
19210         * sysdeps/powerpc/powerpc64/configure: Regenerate.
19211         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
19212         (DOT_LABEL): Remove define.
19213         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
19214         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
19215         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
19216         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
19217         (__TLS_GET_ADDR): Likewise.
19218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
19219         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
19220
19221 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
19222
19223         [BZ #18111]
19224         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
19225         (_FPU_SETCW): Initialize cw from fpsr before storing.
19226         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
19227         (fesetexceptflag): Rewrite using fpu_control.h.
19228         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
19229
19230 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
19231
19232         [BZ #18110]
19233         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
19234         asms.
19235         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
19236
19237 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
19238
19239         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
19240         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
19241         abort.
19242         (_FP_FMA): Likewise.
19243         (_FP_DIV): Likewise.
19244
19245 2015-03-10  Roland McGrath  <roland@hack.frob.com>
19246
19247         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
19248         with 0 in that case.
19249         * Makefile (summarize-tests): New canned sequence, factored out of
19250         commands for targets tests and xtests.  Display summary lines that
19251         don't start with PASS: or XFAIL: rather than ones that do start with
19252         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
19253         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
19254         do start with ERROR: or FAIL:.
19255         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
19256         (except for [$(build-shared) = yes]).
19257         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
19258         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
19259         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
19260         * nptl/Makefile: Revert 2015-03-04 changes.
19261         [$(CXX) empty] (tests-unsupported): New variable.
19262         * debug/Makefile: Likewise.
19263
19264         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
19265         gnulib file.  Replace __attribute with __attribute__ throughout.
19266
19267 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
19268
19269         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19270
19271 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19272
19273         [BZ #18104]
19274         * math/auto-libm-test-in: Add another test of pow.
19275         * math/auto-libm-test-out: Regenerated.
19276
19277 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19278
19279         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
19280         $(config-cflags-nofma).
19281
19282 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19283
19284         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
19285         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
19286         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
19287         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
19288         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
19289         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
19290         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
19291         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
19292         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
19293         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
19294         Add comment on closing #endif.
19295
19296 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19297
19298         * posix/wordexp.c (CHAR_IN_SET): New macro.
19299         (parse_param): Use it.
19300
19301 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19302
19303         * sysdeps/powerpc/fpu/libm-test-ulps: update.
19304
19305 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19306
19307         [BZ #18043]
19308         * posix/wordexp.c (parse_param): Fix buffer overflow.
19309         * posix/wordexp-test.c (test_case): Add test case.
19310
19311 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19312
19313         [BZ #18042]
19314         * posix/wordexp.c (parse_backtick): Fix off-by-one.
19315         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
19316
19317 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19318
19319         [BZ #18043]
19320         * posix/wordexp-test.c (test_case): Add test for BZ #18043
19321         (do_bz18043): Delete.
19322         (at_page_end): New.
19323         (testit): Refactor to have words at the edge of unreadable page.
19324
19325 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19326
19327         [BZ #16734]
19328         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
19329         Cleanup read-only streams as well.
19330         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
19331
19332 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19333
19334         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
19335         <bits/libc-lockP.h>
19336
19337 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
19338
19339         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
19340         on [__KERNEL__].
19341         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
19342         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
19343         * soft-fp/op-common.h (_FP_DECL): Likewise.
19344
19345 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
19346
19347         * elf/ifuncdep2.c (global): Replace
19348         __attribute__((visibility("protected"))) with
19349         asm (".protected global").
19350         * elf/ifuncmod1.c (global): Likewise.
19351         * elf/ifuncmod5.c (global): Likewise.
19352
19353 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
19354
19355         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
19356         <asm/sfp-machine.h> instead of <sfp-machine.h>.
19357
19358 2015-03-06  Roland McGrath  <roland@hack.frob.com>
19359
19360         * manual/install.texi (Configuring and compiling):
19361         Document test-wrapper-env-only.
19362         * INSTALL: Regenerated.
19363
19364 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19365
19366         [BZ #18043]
19367         * posix/wordexp.c (parse_param): Fix buffer overflow.
19368         * posix/wordexp-test.c (do_bz18043): Add test case.
19369
19370 2015-03-06  Vincent Bernat  <vincent@bernat.im>
19371
19372         * time/tst-strptime2.c (do_test): Ensure failing tests are
19373         reported correctly.
19374         * time/tst-strptime3.c (do_test): Likewise.
19375
19376 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
19377
19378         Fix aio_error thread-safety.
19379         * sysdeps/pthread/aio_error.c: New file
19380         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
19381         synchronization.
19382
19383 2015-03-06  Florian Weimer  <fweimer@redhat.com>
19384
19385         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
19386         (group_number, vfprintf): Use it.
19387         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
19388         (JUMP, REF): Use it.
19389         (WORK_BUFFER_SIZE): New enum constant.
19390         (process_arg, vfprintf): Use it.
19391
19392 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
19393
19394         * manual/errno.texi (Error Messages): Complete example function
19395         by adding missing #define.
19396         (program_invocation_name): Add statement indicating GNU
19397         extension and reference which header file declares the variable.
19398         (program_invocation_short_name): Likewise.
19399
19400 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
19401
19402         * manual/errno.texi (Error Messages): Delete strerror ISO C89
19403         compatibility note.
19404
19405 2015-03-05  Roland McGrath  <roland@hack.frob.com>
19406
19407         * Makeconfig (test-wrapper-env-only): New variable.
19408         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
19409         then use that with $(test-wrapper-env-only) rather than using
19410         $(test-wrapper-env) $(run-program-env) $($*-ENV).
19411
19412 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19413
19414         [BZ #18082]
19415         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
19416         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
19417         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
19418         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
19419         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
19420         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
19421         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
19422         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
19423         Likewise.
19424         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
19425         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
19426         Likewise.
19427         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
19428         Likewise.
19429         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
19430         Likewise.
19431         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
19432         Likewise.
19433         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
19434         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
19435         Likewise.
19436         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
19437         Likewise.
19438         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
19439         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
19440
19441 2015-03-04  Roland McGrath  <roland@hack.frob.com>
19442
19443         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
19444         (ETH_ALEN): New macro.
19445         (struct ether_addr): Use it for length of ether_addr_octet.
19446
19447         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
19448         (setdb): Don't call __nss_configure_lookup for "rpc".
19449         (do_test): Don't call test_rpc.
19450         (output_rpcent, test_rpc): Functions moved ...
19451         * sunrpc/test-rpcent.c: ... to this new file.
19452         * sunrpc/Makefile (tests): Add it.
19453
19454         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
19455         __xpg_sigpause.
19456         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
19457         * nptl/tst-signal6.c: Likewise.
19458         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
19459         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
19460
19461         * configure.ac (libc_cv_cxx_link_ok): New check.
19462         Reset CXX to empty if it fails to link.
19463         * configure: Regenerated.
19464         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
19465         bug-atexit3-lib only if $(CXX) is nonempty.
19466         * nptl/Makefile (tests): Likewise for tst-cancel24.
19467         (tests, tests-static): Likewise for tst-cancel24-static.
19468         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
19469         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
19470         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
19471         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
19472
19473 2015-03-04  Andreas Schwab  <schwab@suse.de>
19474
19475         [BZ #17631]
19476         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
19477         for non-GCC compilers.
19478         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
19479         Likewise.
19480
19481 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19482
19483         [BZ #17776]
19484         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
19485         integer before bitwise and assembly operations.
19486         (feclearexcept): Likewise.
19487         * math/test-fenvinline.c: New file.
19488         * math/Makefile: Add test-fenvinline test.
19489
19490 2015-03-03  Alan Modra  <amodra@gmail.com>
19491
19492         [BZ #16512]
19493         * scripts/localplt.awk: Strip off symbol version.
19494         * NEWS: Mention bug fix.
19495
19496 2015-03-02  Roland McGrath  <roland@hack.frob.com>
19497
19498         * sysdeps/pthread/timer_routines.c
19499         (timer_free_list, thread_free_list, thread_active_list): Make static.
19500
19501 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
19502
19503         [BZ #17779]
19504         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19505         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19506         Undefine.
19507         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19508         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19509         Likewise.
19510         * sysdeps/unix/sysv/linux/sh/kernel-features.h
19511         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19512         Likewise.
19513
19514 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
19515
19516         [BZ #18036]
19517         * posix/fnmatch_loop.c (END): Detect invalid pattern.
19518         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
19519
19520 2015-03-02  Andreas Schwab  <schwab@suse.de>
19521
19522         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
19523         variable name.
19524
19525 2015-03-02  Florian Weimer  <fweimer@redhat.com>
19526
19527         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
19528         Return error status.
19529
19530 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
19531
19532         [BZ #15969]
19533         * locale/findlocale.c (_nl_find_locale): Introduce const
19534         version of loc_name and drop unsafe type casts.
19535
19536 2015-02-27  Roland McGrath  <roland@hack.frob.com>
19537
19538         * dlfcn/tststatic2.c (main): Converted to ...
19539         (do_test): ... this.
19540         (TEST_FUNCTION): New macro.
19541         Include test-skeleton.c.
19542
19543 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19544
19545         [BZ #17711]
19546         * elf/Makefile (tests): Add vismain only if PIE is enabled.
19547         (tests-pie): Add vismain.
19548         (CFLAGS-vismain.c): New.
19549         * elf/vismain.c: Add comments for PIE requirement.
19550
19551 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19552
19553         [BZ #18046]
19554         [BZ #18047]
19555         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
19556         0x1p-56L as threshold for just returning the argument.
19557         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
19558         0x1p-32L as threshold for just returning the argument.
19559         * math/auto-libm-test-in: Add more tests of atanh.
19560         * math/auto-libm-test-out: Regenerated.
19561         * sysdeps/i386/fpu/libm-test-ulps: Update.
19562         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
19563
19564 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19565
19566         * string/bcopy.c (bcopy): Call memmove for performance.
19567
19568 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19569
19570         * string/bzero.c (__bzero): Call memset for performance.
19571
19572 2015-02-27  John David Anglin  <dave.anglin@bell.net>
19573
19574         [BZ #18068]
19575         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
19576         to 00100000.
19577
19578 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19579
19580         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
19581
19582 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19583
19584         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
19585         (__kernel_standard): Use CSTR macro when setting exc.name.
19586         * sysdeps/ieee754/Makefile [$(subdir) = math]
19587         (CFLAGS-k_standard.c): Remove variable.
19588
19589         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
19590         setting p and q from "else if" to "else".
19591         (qzero): Likewise.
19592         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
19593         (qone): Likewise.
19594         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
19595         (qzerof): Likewise.
19596         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
19597         (qonef): Likewise.
19598         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
19599         (qzero): Likewise.
19600         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
19601         (qone): Likewise.
19602
19603         [BZ #18038]
19604         [BZ #18039]
19605         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
19606         return pi/2 for arguments below 0x1p-113L.
19607         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
19608         return pi/2 for arguments below 0x1p-106L.
19609         * math/auto-libm-test-in: Add more tests of acos.
19610         * math/auto-libm-test-out: Regenerated.
19611
19612         [BZ #16351]
19613         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
19614         (MO): New macro.
19615         (__ieee754_asin): Force underflow exception for results with small
19616         absolute value.
19617         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
19618         (MO): New macro.
19619         (__ieee754_asinf): Force underflow exception for results with
19620         small absolute value.
19621         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
19622         (__ieee754_asin): Force underflow exception for results with small
19623         absolute value.
19624         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
19625         (__ieee754_asinf): Force underflow exception for results with
19626         small absolute value.
19627         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
19628         (__ieee754_asinl): Force underflow exception for results with
19629         small absolute value.
19630         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
19631         (__ieee754_asinl): Force underflow exception for results with
19632         small absolute value.
19633         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
19634         (__ieee754_asinl): Force underflow exception for results with
19635         small absolute value.
19636         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
19637         Include <math.h>.
19638         * math/auto-libm-test-in: Do not mark underflow exceptions as
19639         possibly missing for bug 16351.
19640         * math/auto-libm-test-out: Regenerated.
19641
19642         [BZ #18030]
19643         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
19644         of power of 2 down when low part has opposite sign.
19645         * math/libm-test.inc (logb_test_data): Add more tests.
19646
19647 2015-02-26  Andreas Schwab  <schwab@suse.de>
19648
19649         [BZ #18032]
19650         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
19651         over collating symbol inside a bracket expression.  Minor cleanup.
19652         * posix/tst-fnmatch3.c (do_test): Add test case.
19653
19654 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19655
19656         [BZ #18029]
19657         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
19658         Adjust exponent of power of 2 down when low part has opposite
19659         sign.
19660         * math/libm-test.inc (ilogb_test_data): Add more tests.
19661
19662 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
19663
19664         [BZ #15969]
19665         * locale/findlocale.c (_nl_find_locale): Fix constness error in
19666         the previous change.
19667
19668         [BZ #15969]
19669         * locale/findlocale.c (_nl_find_locale): Retry archive search
19670         after alias expansion.
19671
19672 2015-02-25  Roland McGrath  <roland@hack.frob.com>
19673
19674         * iconv/tst-iconv3.c (main): Converted to ...
19675         (do_test): ... this.
19676         (TEST_FUNCTION): New macro.
19677         Include test-skeleton.c.
19678
19679         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
19680         (convert): Make function static.
19681         (test_unalign): Likewise.  Add const to argument pointee types.
19682         (main): Replace with static function do_test.
19683         Print "Succeeded." only if RET is zero.
19684         (TEST_FUNCTION): New macro.
19685         Include test-skeleton.c.
19686
19687         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
19688         returns a null pointer.
19689
19690 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19691
19692         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
19693         to __memcpy_ppc only for static builds.
19694
19695 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
19696
19697         [BZ #18020]
19698         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
19699         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
19700         * math/auto-libm-test-in: Add more tests of asinh.
19701         * math/auto-libm-test-out: Regenerated.
19702         * sysdeps/i386/fpu/libm-test-ulps: Update.
19703         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19704
19705 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
19706
19707         [BZ #15850]
19708         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
19709         and ip6_mtuinfo definitions here.
19710         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
19711         in this define too.  Update comment.
19712
19713 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
19714
19715         * elf/sprof.c (load_shobj): Tweak error message to match others.
19716
19717 2015-02-24  Kevin Easton  <kevin@guarana.org>
19718
19719         [BZ #16145] (partial fix)
19720         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
19721         to reduce lock contention.
19722
19723 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
19724
19725         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
19726         (struct timex): Update time comment.
19727         (ADJ_SETOFFSET): Define.
19728
19729 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19730
19731         [BZ #18019]
19732         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
19733         2**56 not 2**28 as threshold for log (2x) formula.
19734         * math/auto-libm-test-in: Add more tests of acosh.
19735         * math/auto-libm-test-out: Regenerated.
19736         * sysdeps/i386/fpu/libm-test-ulps: Update.
19737         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19738
19739 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
19740
19741         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
19742         parenthesis around the buf assignment.
19743         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
19744
19745 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19746
19747         [BZ #16783]
19748         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
19749         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
19750         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
19751         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19752         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19753         * math/libm-test.inc (scalb_test_data): Add more tests.
19754
19755 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
19756
19757         [BZ #17916]
19758         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
19759         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
19760
19761 2015-02-24  Eric Rannaud  <e@nanocritical.com>
19762
19763         [BZ #17523]
19764         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
19765         * io/bits/fcntl2.h (open): Use it.
19766         (openat): Likewise.
19767         * io/open.c (__libc_open): Likewise.
19768         * io/open64.c (__libc_open64): Likewise.
19769         * io/open64_2.c (__open64_2): Likewise.
19770         * io/open_2.c (__open_2): Likewise.
19771         * io/openat.c (__openat): Likewise.
19772         * io/openat64.c (__openat64): Likewise.
19773         * io/openat64_2.c (__openat64_2): Likewise.
19774         * io/openat_2.c (__openat_2): Likewise.
19775         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
19776         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
19777         * sysdeps/posix/open64.c (__libc_open64): Likewise.
19778         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
19779         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
19780         (__open_nocancel): Likewise.
19781         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
19782         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
19783         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
19784
19785 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19786
19787         [BZ #14841]
19788         * resolv/gethnamaddr.c (getanswer): Skip logging if
19789         RES_USE_DNSSEC is set.
19790         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
19791
19792 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
19793
19794         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
19795
19796 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
19797
19798         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
19799         201304L, for Unicode 7.
19800
19801 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
19802
19803         [BZ #17836]
19804         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
19805         shared library.  Add gmon-start.os otherwise.
19806         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
19807         $(objpfx)gmon-start.os if builing shared library.
19808         ($(objpfx)g$(static-start-installed-name)): Likewise.
19809
19810 2015-02-23  Andreas Schwab  <schwab@suse.de>
19811
19812         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
19813
19814 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
19815
19816         [BZ #17269]
19817         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
19818         (enlarge_userbuf): Likewise.
19819
19820 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
19821
19822         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
19823         * math/atest-exp.c (TIMEOUT): Adjust to 200.
19824         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
19825         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
19826
19827 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
19828
19829         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
19830         expression inside statement expression.
19831
19832 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
19833
19834         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
19835         <sysdeps/nptl/lowlevellock.h> and remove macros and
19836         functions that are now defined there.
19837         (SYS_futex): Remove.
19838         (lll_compare_and_swap): Remove.
19839         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
19840
19841 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
19842
19843         [BZ #17999]
19844         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
19845         instead of scandirat.
19846         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
19847         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
19848         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
19849         __scandirat.
19850         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
19851         (__scandirat): Declare.  Use libc_hidden_proto.
19852         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
19853         Remove variable.
19854         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
19855
19856 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
19857
19858         [BZ #15319]
19859         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
19860         (MO): New macro.
19861         (__ieee754_atan2): For results with small absolute value, force
19862         underflow exception and remove excess range and precision from
19863         return value.
19864         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
19865         (MO): New macro.
19866         (__ieee754_atan2f): For results with small absolute value, force
19867         underflow exception and remove excess range and precision from
19868         return value.
19869         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
19870         (MO): New macro.
19871         (__atan): For results with small absolute value, force underflow
19872         exception and remove excess range and precision from return value.
19873         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
19874         (MO): New macro.
19875         (__atanf): For results with small absolute value, force underflow
19876         exception and remove excess range and precision from return value.
19877         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
19878         <math.h>.
19879         (__ieee754_atan2): Force underflow exception for results with
19880         small absolute value.
19881         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
19882         <math_private.h>.
19883         (atan): Force underflow exception for results with small absolute
19884         value.
19885         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
19886         (__atanf): Force underflow exception for results with small
19887         absolute value.
19888         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
19889         <math.h>.
19890         (__atanl): Force underflow exception for results with small
19891         absolute value.
19892         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
19893         (__atanl): Force underflow exception for results with small
19894         absolute value.
19895         * sysdeps/x86/fpu/bits/mathinline.h
19896         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
19897         (__ieee754_atan2): Only define inline for long double.
19898         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
19899         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
19900         * math/auto-libm-test-in: Do not mark underflow exceptions as
19901         possibly missing for bug 15319.  Add more tests of atan2.
19902         * math/auto-libm-test-out: Regenerated.
19903         * math/libm-test.inc (casin_test_data): Do not mark underflow
19904         exceptions as possibly missing for bug 15319.
19905         (casinh_test_data): Likewise.
19906         * sysdeps/i386/fpu/libm-test-ulps: Update.
19907
19908 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
19909
19910         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
19911         * sysdeps/mips/bits/endian.h: Fix comments.
19912
19913 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
19914
19915         [BZ #17996]
19916         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
19917         (hdestroy_r): Likewise.
19918         (hsearch_r): Likewise.
19919         (__hcreate_r): Declare and use libc_hidden_proto.
19920         (__hdestroy_r): Likewise.
19921         (__hsearch_r): Likewise.
19922         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
19923         (hcreate): Call __hcreate_r instead of hcreate_r.
19924         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
19925         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
19926         as weak alias of __hcreate_r.
19927         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
19928         __hdestroy_r.
19929         (hsearch_r): Rename to __hsearch_r and define as weak alias of
19930         __hsearch_r.
19931         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
19932         Remove variable.
19933         (test-xfail-XPG4/search.h/linknamespace): Likewise.
19934         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
19935         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
19936         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
19937
19938 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
19939
19940         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
19941         arena_lock into a single arena_get.
19942
19943 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
19944
19945         * dl-reloc.c: Inlucde libc-internal.h.
19946         (_dl_try_allocate_static_tls): Call ALIGN_UP.
19947         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
19948         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
19949         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
19950         (grow_heap): Likewise.
19951         * malloc/malloc.c: Include libc-internal.h.
19952         (do_check_malloc): Call powerof2.
19953         (sysmalloc): Use pagesize. Call ALIGN_UP.
19954         (systrim): Use pagesize.
19955         (mremap_chunk): Use pagesize. Call ALIGN_UP.
19956         (__libc_valloc): Use pagesize.
19957         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
19958
19959 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
19960
19961         [BZ #17991]
19962         * include/sys/resource.h (__getrlimit64): Declare.  Use
19963         libc_hidden_proto.
19964         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
19965         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
19966         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
19967         getrlimit64.
19968         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
19969         __getrlimit64.
19970         [!getrlimit64] (getrlimit64): Define as weak alias of
19971         __getrlimit64.  Use libc_hidden_weak.
19972         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
19973         using __getrlimit64 not __new_getrlimit64.
19974         (__GI_getrlimit64): Likewise.
19975         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
19976         Likewise.
19977         (__GI_getrlimit64): Likewise.
19978         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
19979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
19980         (getrlimit): Add __getrlimit64 alias.
19981         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
19982         Likewise.
19983         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
19984         Remove variable.
19985         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
19986         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
19987
19988 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
19989
19990         * libio/fileops.c: Add missing sys/mman.h
19991         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
19992
19993 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
19994
19995         * manual/math.texi (Errors in Math Functions): Clarify goals
19996         regarding inexact and underflow exceptions.
19997
19998 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
19999
20000         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
20001         * sysdeps/mips/memset.S: Ditto.
20002
20003 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20004
20005         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
20006
20007 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
20008
20009         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
20010         (__v1longjmp): Remove versioned symbol.
20011         (__v1siglongjmp): Remove alias and versioned symbol.
20012         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
20013         (__v2siglongjmp): Likewise.
20014
20015 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20016
20017         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
20018
20019 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
20020
20021         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
20022
20023 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20024
20025         [BZ #17987]
20026         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
20027         zero result does not depend on the sign resulting from
20028         subtraction.
20029         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20030         Likewise.
20031         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20032         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20033         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20034         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20035         * math/libm-test.inc (remquo_test_data): Add more tests.
20036
20037 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20038
20039         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
20040         Problem reported by J William Piggott.
20041
20042 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20043
20044         [BZ #17978]
20045         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
20046         products 4 * y and 2 * y where those would overflow.
20047         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20048         Likewise.
20049         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20050         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20051         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20052         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20053         * math/libm-test.inc (remquo_test_data): Add more tests.
20054
20055         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
20056
20057         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
20058         [defined _COMPILING_NEWLIB].
20059         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
20060         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
20061
20062         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
20063         [!defined __mips_isa_rev || __mips_isa_rev < 6].
20064
20065 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20066
20067         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
20068         acquired.
20069
20070 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
20071
20072         [BZ #17792]
20073         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
20074         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
20075         HOST_STACK_END_ADDR): Likewise.
20076
20077 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
20078
20079         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
20080         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
20081         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
20082
20083 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20084
20085         * sysdeps/generic/c++-types.data: New file.
20086         * sysdeps/generic/ld.abilist: New file.
20087         * sysdeps/generic/libBrokenLocale.abilist: New file.
20088         * sysdeps/generic/libanl.abilist: New file.
20089         * sysdeps/generic/libc.abilist: New file.
20090         * sysdeps/generic/libcrypt.abilist: New file.
20091         * sysdeps/generic/libdl.abilist: New file.
20092         * sysdeps/generic/libm.abilist: New file.
20093         * sysdeps/generic/libpthread.abilist: New file.
20094         * sysdeps/generic/libresolv.abilist: New file.
20095         * sysdeps/generic/librt.abilist: New file.
20096
20097 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20098
20099         [BZ #17569]
20100         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20101         Compute absolute value of x as modified by fmod, not original
20102         value of x.
20103         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
20104         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
20105         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
20106         RUN_TEST_ffI_f1_mod8.
20107         (remquo_test_data): Add more tests.
20108
20109 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20110
20111         * sysdeps/init_array/pt-crti.S: New file.
20112
20113 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20114
20115         [BZ #17967]
20116         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
20117         __builtin_fmaf instead of relying on contraction of a * b + c.
20118
20119 2015-02-12  J William Piggott  <elseifthen@gmx.com>
20120
20121         [BZ #17969]
20122         * manual/time.texi: correct the zoneinfo path in the TZ Variable
20123         node.
20124
20125 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20126
20127         [BZ #17964]
20128         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
20129         __builtin_fma instead of relying on contraction of a * b + c.
20130
20131 2015-02-12  Roland McGrath  <roland@hack.frob.com>
20132
20133         * Makeconfig (ASFLAGS): Add -Werror=undef.
20134         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
20135         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
20136         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
20137
20138         * Makeconfig (after-link): New variable.
20139         (+link-pie, +link-pie-tests): Use it.
20140         (+link-static, +link-static-tests): Likewise.
20141         (+link, +link-tests): Likewise.
20142         * Makerules (build-module, build-module-asneeded): Likewise.
20143         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
20144         Likewise.
20145         * elf/Makefile ($(objpfx)ld.so): Likewise.
20146
20147 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
20148
20149         [BZ #17965]
20150         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
20151         both struct timeval and struct timespec.
20152
20153 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20154
20155         [BZ #16560]
20156         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
20157         and redefine.
20158         (__ieee754_exp2l): Do not multiply small fractional parts by
20159         M_LN2l.
20160         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
20161         small argument.
20162         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
20163         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
20164         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
20165         * math/auto-libm-test-in: Add more tests of exp2.
20166         * math/auto-libm-test-out: Regenerated.
20167
20168 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20169
20170         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
20171         unaligned path.
20172
20173 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20174
20175         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
20176         little endian.
20177
20178 2015-02-12  Andreas Schwab  <schwab@suse.de>
20179
20180         [BZ #15790]
20181         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
20182         Filter out elision flags from value returned in kind.
20183         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
20184         * nptl/tst-pthread-mutexattr.c: New file.
20185
20186 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20187
20188         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
20189         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
20190         into gnu-gnu, and update comment to refer to abi-tags.
20191
20192 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
20193
20194         [BZ #15467]
20195         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
20196         (__sincos): Set errno to EDOM for infinite argument.
20197         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
20198         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
20199         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
20200         (__sincosl): Set errno to EDOM for infinite argument.
20201         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
20202         (__sincosl): Set errno to EDOM for infinite argument.
20203         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
20204         (__sincosl): Set errno to EDOM for infinite argument.
20205         * math/libm-test.inc (sincos_test_data): Test errno setting.
20206
20207 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
20208
20209         * string/strxfrm_l.c: Remove #define STRCMP.
20210         * string/strcoll_l.c: Remove #define STRLEN.
20211         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
20212         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
20213
20214 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
20215
20216         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
20217         * sysdeps/mips/mips32/sfp-machine.h: ... here.
20218         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
20219         * sysdeps/mips/mips64/Makefile: ... here.
20220         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
20221         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
20222         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
20223         * sysdeps/mips/mips64/sfp-machine.h: ... here.
20224         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
20225         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
20226         * sysdeps/mips/mips64/n64/Implies: Likewise.
20227
20228 2015-02-10  Roland McGrath  <roland@hack.frob.com>
20229
20230         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
20231         <sys/time.h>, <string.h>, and <errno.h>.
20232         (dest_offset, dest_address, value, zero): Remove unused variables.
20233         (ldouble): Remove typedef.
20234         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
20235         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
20236         1).  Fix code style.
20237         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
20238         (check): Function removed.
20239         (CHECK): New macro.
20240         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
20241         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
20242         Don't call set_sigaction_FP and remove_sigaction_FP here.
20243         (ldouble_test): Just use 'long double' as macro argument, no need for
20244         the 'ldouble' typedef.
20245         (do_test): Set up SIGFPE handler at start, using plain signal rather
20246         than sigaction.  Fix code style.
20247
20248 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
20249
20250         [BZ #17949]
20251         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
20252         jump label.
20253
20254 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20255
20256         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
20257         * sysdeps/powerpc/powerpc32/configure: Regenerated.
20258
20259         * sysdeps/powerpc/configure.ac: Remove file.
20260         * sysdeps/powerpc/configure: Likewise.
20261
20262         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20263         [sysdep_routines]: Remove wordcopy-power6 object.
20264         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
20265         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
20266         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
20267         (__memmove_ppc32): Likewise.
20268         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
20269         file.
20270         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
20271         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
20272         Remove preprocessor.
20273
20274         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20275         [sysdep_routines]: Remove wide chars objects.
20276         [wcsmbs]: New rule for wide char objects.
20277
20278         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20279         Remove wordcopy-power6 obejct.
20280         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
20281         Use local call for wordcopy and memcpy symbols.
20282         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
20283         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
20284         implementation for loader.
20285         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
20286
20287         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20288         Remove wordcopy-power7 object.
20289         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
20290         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
20291         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
20292         (_wordcopy_fwd_dest_aligned): Likewise.
20293         (_wordcopy_bwd_aligned): Likewise.
20294         (_wordcopy_bwd_dest_aligned): Likewise.
20295
20296         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
20297         Rewrite to call __memmove_ppc instead of include default
20298         implementation.
20299
20300         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20301         Remove wide chars objects.
20302         [wcsmbs]: New rule for wide char objects.
20303
20304 2015-02-09  Andreas Schwab  <schwab@suse.de>
20305
20306         [BZ #17912]
20307         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
20308         in terms of __O_DIRECTORY.
20309
20310 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20311
20312         * time/getdate.c: Include <stdbool.h>.
20313         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
20314         call PTR_MANGLE.
20315         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
20316         PTR_DEMANGLE.
20317
20318 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20319
20320         Add ersatz _Static_assert on older C hosts
20321         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
20322         pre-C11 C platform that is not known to support _Static_assert.
20323
20324 2015-02-07  Richard Braun  <rbraun@sceen.net>
20325
20326         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
20327         sigstate.
20328         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
20329
20330 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20331
20332         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
20333         priority against unexistent AIO_PRIO_DELTA_MAX.
20334         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
20335         instead of int.
20336         * misc/fchflags.c (fchflags): Likewise.
20337         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
20338         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
20339         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
20340         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
20341         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
20342         Declare macros.
20343         [__USE_MISC] (chflags, fchflags): Declare functions.
20344         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
20345         EINVAL when nfds is greater than FD_SETSIZE.
20346         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
20347         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
20348         45.
20349         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
20350         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
20351         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
20352         MACH_RCV_TIMED_OUT.
20353         * hurd/hurd/signal.h (_hurd_self_sigstate,
20354         _hurd_critical_section_lock, _hurd_critical_section_unlock):
20355         Explicit casts from void *.
20356         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
20357         * abi-tags: Rename gnu-gnu os into gnu.
20358
20359         [BZ #4719]
20360         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
20361         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
20362         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
20363         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
20364         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
20365         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
20366
20367         [BZ #17944]
20368         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
20369         duplicates ADDR->sun_path with sockaddr LEN limitation.
20370         * sysdeps/mach/hurd/connect.c: Include <string.h>
20371         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
20372         * sysdeps/mach/hurd/sendmsg.c: Likewise.
20373         * sysdeps/mach/hurd/sendto.c: Likewise.
20374         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
20375         implementing it by hand.
20376
20377 2015-02-06  Roland McGrath  <roland@hack.frob.com>
20378
20379         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
20380         Use sfi_breg on ldr.
20381         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
20382         Likewise.
20383
20384         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
20385         it's defined.
20386         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
20387         Test SIGSETXID only if it's defined.
20388
20389         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
20390
20391         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
20392         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
20393
20394         * nptl/tst-align2.c: Moved ...
20395         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
20396         * nptl/Makefile (tests): Remove tst-align2.
20397         * sysdeps/unix/sysv/linux/Makefile
20398         [$(subdir) = nptl] (tests): Add tst-align-clone.
20399         * nptl/tst-getpid1.c: Moved ...
20400         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
20401         * nptl/tst-getpid2.c: Moved ...
20402         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
20403         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
20404         * sysdeps/unix/sysv/linux/Makefile
20405         [$(subdir) = nptl] (tests): ... here.
20406         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
20407         * sysdeps/unix/sysv/linux/Makefile
20408         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
20409
20410         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
20411         Drop trailing \n from perror argument.  Use return rather than exit.
20412
20413         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
20414         on [SA_SIGINFO].
20415         * nptl/tst-cancel21.c (do_test): Likewise.
20416         * debug/tst-backtrace6.c: Include <signal.h> first thing.
20417         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
20418         [!SA_SIGINFO]: Make it a stub test.
20419
20420         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
20421         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
20422
20423         * posix/tst-getlogin.c: Move to ...
20424         * login/tst-getlogin.c: ... here.
20425         * posix/Makefile (tests): Move tst-getlogin to ...
20426         * login/Makefile (tests): ... here.
20427
20428         * libio/tst-atime.c (do_test): Move local variables SV and E
20429         inside [ST_NOATIME] conditional.
20430
20431         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
20432
20433         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
20434
20435         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
20436         (wait_code): New function replaces macro.
20437         Call nanosleep rather than syscall.
20438
20439         * nptl/pt-system.c: Rewritten.  Put everything under
20440         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20441         Use IFUNC to redirect when possible.
20442
20443         * nptl/pt-longjmp.c: Rewritten.  Put everything under
20444         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20445         Use IFUNC to redirect when possible.
20446
20447         * nptl/pt-fork.c: Rewritten.  Put everything under
20448         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20449         Use IFUNC to redirect when possible.
20450         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
20451
20452         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
20453         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
20454         unconditionally nowadays.  This included the only reference to
20455         __vdso_clock_gettime that appears outside libc proper.
20456         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
20457         Remove version set (containing only __vdso_clock_gettime).
20458         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
20459         Add attribute_hidden.
20460         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
20461         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
20462         libc_hidden_data_def.
20463         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
20464         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
20465
20466         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
20467         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
20468         setrpcent, and getrpcport to ...
20469         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
20470         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
20471         getrpcbynumber_r, and getrpcent_r to ...
20472         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
20473         * inet/getrpcbyname.c: Moved ...
20474         * sunrpc/getrpcbyname.c: ... here.
20475         * inet/getrpcbyname_r.c: Moved ...
20476         * sunrpc/getrpcbyname_r.c: ... here.
20477         * inet/getrpcbynumber.c: Moved ...
20478         * sunrpc/getrpcbynumber.c: ... here.
20479         * inet/getrpcbynumber_r.c: Moved ...
20480         * sunrpc/getrpcbynumber_r.c: ... here.
20481         * inet/getrpcent.c: Moved ...
20482         * sunrpc/getrpcent.c: ... here.
20483         * inet/getrpcent_r.c: Moved ...
20484         * sunrpc/getrpcent_r.c: ... here.
20485         * inet/Makefile (routines): Move those to ...
20486         * sunrpc/Makefile (routines): ... here.
20487         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
20488         the $(subdirs) list.
20489         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
20490         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
20491         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
20492         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
20493
20494         * elf/Makefile (routines): Include $(all-dl-routines), not just
20495         $(dl-routines).
20496         (rtld-routines): Likewise.  Use = rather than :=.
20497         * sysdeps/aarch64/Makefile [$(subdir) = elf]
20498         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
20499         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
20500         * sysdeps/arm/Makefile: Likewise.
20501         * sysdeps/i386/Makefile: Likewise.
20502         * sysdeps/x86_64/Makefile: Likewise.
20503         * sysdeps/hppa/Makefile [$(subdir) = elf]
20504         (sysdep_routines, sysdep-rtld-routines): Don't add
20505         $(sysdep-dl-routines) to these.
20506         * sysdeps/ia64/Makefile: Likewise.
20507         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
20508         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
20509         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
20510         Don't add dl-static to these; sysdep-dl-routines alone is enough.
20511         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
20512         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
20513         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
20514         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
20515         * sysdeps/powerpc/Makefile [$(subdir) = elf]
20516         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
20517         these; sysdep-dl-routines alone is enough.
20518
20519 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
20520
20521         [BZ #17932]
20522         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
20523         where multiplication results in zero and third argument is finite
20524         and nonzero.
20525         * math/auto-libm-test-in: Add more tests of fma.
20526         * math/auto-libm-test-out: Regenerated.
20527
20528         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
20529         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
20530         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
20531         (_FP_CMP_EQ): Likewise.
20532         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
20533
20534         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
20535         extra argument CHECK_NAN.  Redefine as wrapper around
20536         _FP_EXTEND_CNAN.
20537
20538 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
20539
20540         * version.h (RELEASE): Set to "stable".
20541         (VERSION): Set to "2.21"
20542         * include/features.h (__GLIBC_MINOR__): Set to 21.
20543
20544         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
20545
20546 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20547             Paul Eggert  <eggert@cs.ucla.edu>
20548
20549         [BZ #16618]
20550         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
20551         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
20552         size in bytes. Store needed elements in wpmax. Use needed size
20553         in bytes for extend_alloca.
20554
20555 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
20556
20557         * manual/install.texi: Latest tested versions are GCC 4.9.2,
20558         binutls 2.25, and texinfo 5.2.
20559         * INSTALL: Regenerate.
20560         * sysdeps/nios2/configure: Regenerate.
20561         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
20562         * manual/contrib.texi: Update.
20563         * po/be.po: Update.
20564         * po/bg.po: Update.
20565         * po/ca.po: Update.
20566         * po/cs.po: Update.
20567         * po/da.po: Update.
20568         * po/de.po: Update.
20569         * po/el.po: Update.
20570         * po/eo.po: Update.
20571         * po/es.po: Update.
20572         * po/fi.po: Update.
20573         * po/fr.po: Update.
20574         * po/gl.po: Update.
20575         * po/hr.po: Update.
20576         * po/hu.po: Update.
20577         * po/ia.po: Update.
20578         * po/id.po: Update.
20579         * po/it.po: Update.
20580         * po/ja.po: Update.
20581         * po/ko.po: Update.
20582         * po/lt.po: Update.
20583         * po/nb.po: Update.
20584         * po/nl.po: Update.
20585         * po/pl.po: Update.
20586         * po/pt_BR.po: Update.
20587         * po/ru.po: Update.
20588         * po/rw.po: Update.
20589         * po/sk.po: Update.
20590         * po/sl.po: Update.
20591         * po/sv.po: Update.
20592         * po/tr.po: Update.
20593         * po/uk.po: Update.
20594         * po/vi.po: Update.
20595         * po/zh_CN.po: Update.
20596         * po/zh_TW.po: Update.
20597
20598         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
20599         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
20600         * sysdeps/hppa/dl-irel.h: Remove #warning.
20601         * sysdeps/hppa/entry.h: Provide prototype for
20602         __canonicalize_funcptr_for_compare and cast argument.
20603         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
20604         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
20605         * sysdeps/hppa/sotruss-lib.c: New file.
20606         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
20607         (atomic_compare_and_exchange_val_acq): Use __typeof__.
20608         (atomic_compare_and_exchange_bool_acq): Likewise.
20609         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
20610         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
20611
20612         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
20613         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
20614         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
20615
20616 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
20617
20618         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
20619         called function in non-PIC case.
20620
20621 2015-01-31  David S. Miller  <davem@davemloft.net>
20622
20623         * sysdeps/sparc/sparc32/bits/atomic.h
20624         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
20625         unlock not after it.
20626         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
20627         volatile register usage warnings from the compiler.
20628
20629         * sysdeps/sparc/nptl/sem_init.c: Delete.
20630         * sysdeps/sparc/nptl/sem_post.c: Delete.
20631         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
20632         * sysdeps/sparc/nptl/sem_wait.c: Delete.
20633         * sysdeps/sparc/sparc32/sem_init.c: New file.
20634         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
20635         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
20636         padding explicitly initialized.
20637         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
20638         padding for in-semaphore spinlock.
20639         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
20640         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
20641         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
20642         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
20643         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
20644         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
20645         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
20646         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
20647         version.
20648         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
20649         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
20650
20651 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
20652
20653         [BZ #17801]
20654         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20655         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
20656         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
20657         New.
20658         (index_AVX_Fast_Unaligned_Load): Likewise.
20659         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
20660         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
20661         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
20662         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
20663         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
20664         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
20665         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
20666         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
20667         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
20668
20669 2015-01-29  Andreas Schwab  <schwab@suse.de>
20670
20671         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
20672
20673 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
20674
20675         [BZ #17892]
20676         * nscd/nscd_stat.c (send_stats): Initialize DATA.
20677
20678 2015-01-28  Martin Sebor  <msebor@redhat.com>
20679
20680         * math/README.libm-test: Clarify. Add "How to read the test output."
20681
20682 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
20683
20684         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
20685         Define to 0.
20686
20687 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
20688
20689         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
20690         (__HAVE_64B_ATOMICS): Define to 0.
20691
20692 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20693
20694         [BZ #17885]
20695         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
20696         value to set as new flag.
20697
20698         [BZ #16576]
20699         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
20700         and use _ARCH_PPCSQ instead.
20701         (__ieee754_sqrt): Likewise.
20702         (__ieee754_sqrtf): Likewise.
20703         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
20704         _ARCH_PPCSQ is defined.
20705         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
20706         fsqrt instruction.
20707         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
20708         _ARCH_PPCSQ is defined.
20709         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
20710         fsqrts instruction.
20711         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
20712
20713 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20714
20715         * iconv/loop.c: Suppress array out of bound warning caused by GCC
20716         bug (GCC BZ #64739).
20717
20718 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
20719
20720         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
20721         Mark _retval as used.
20722         (lll_futex_wake_unlock): Likewise.
20723         (lll_futex_timed_wait_requeue_pi): Likewise.
20724
20725         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
20726         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
20727         register variables.
20728
20729         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
20730         libm_hidden_def.
20731
20732         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
20733         (__bswap_64): Mark as __always_inline.
20734
20735 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
20736
20737         [BZ #15378]
20738         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
20739         when none of the search directories exist.
20740
20741 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20742
20743         [BZ #17869]
20744         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
20745         power8 in .machine directive.
20746
20747         [BZ #17868]
20748         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
20749         set dependency from opd value.
20750
20751 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20752
20753         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20754         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
20755         architecture.
20756
20757 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20758
20759         [BZ #17870]
20760         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
20761         with uint64_t.
20762         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
20763         (uint64_t) 1.
20764         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
20765         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
20766         Replace 1UL with (uint64_t) 1.
20767         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
20768         int with uint64_t.
20769
20770 2015-01-23  Roland McGrath  <roland@hack.frob.com>
20771
20772         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
20773         (if_freenameindex): Likewise.
20774
20775         * resource/getrlimit64.c: Add missing libc_hidden_def.
20776
20777 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
20778
20779         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
20780         __label__.
20781         (_FP_FMA): Likewise.
20782         (_FP_TO_INT_ROUND): Likewise.
20783         (_FP_FROM_INT): Likewise.
20784
20785 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20786
20787         [BZ #16418]
20788         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
20789         Make code racy and cancel safe.
20790
20791 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
20792
20793         * sysdeps/arm/unwind-resume.h: Fix copyright year.
20794         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
20795         attribution.
20796
20797         * pwd/tst-getpw.c: Rewrite.
20798
20799         [BZ #17702]
20800         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
20801         (modules-names): Add moddummy1 and moddummy2.
20802         ($(objpfx)tst-rec-dlopen): Define.
20803         * dlfcn/moddummy1.c: New file.
20804         * dlfcn/moddummy2.c: New file.
20805         * dlfcn/tst-rec-dlopen.c: New file.
20806         * elf/dl-cache.c (_dl_load_cache_lookup):
20807         Return char*. Copy result with alloca/strcpy/strdup.
20808         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
20809         returns char*. Free cached. If not saving realname
20810         free cached.
20811         * elf/dl-open.c (dl_open_worker): Do not assert that
20812         _r_debug->r_state is RT_CONSISTENT.
20813         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
20814         returns char*.
20815
20816 2015-01-21  Torvald Riegel  <triegel@redhat.com>
20817             Carlos O'Donell  <carlos@redhat.com>
20818
20819         [BZ #12674]
20820         * nptl/sem_waitcommon.c: New file.
20821         * nptl/sem_wait.c: Include sem_waitcommon.c.
20822         (__sem_wait_cleanup, do_futex_wait): Remove.
20823         (__new_sem_wait): Adapt.
20824         (__new_sem_trywait): New function.
20825         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
20826         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
20827         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
20828         (sem_timedwait): Adapt.
20829         * nptl/sem_post.c (__new_sem_post): Adapt.
20830         (futex_wake): New function.
20831         (__old_sem_post): Add release MO fence.
20832         * nptl/sem_open.c (sem_open): Adapt.
20833         * nptl/sem_init.c (__new_sem_init): Adapt.
20834         (futex_private_if_supported): New function.
20835         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
20836         (__old_sem_getvalue): Add using previous code.
20837         * sysdeps/nptl/internaltypes.h: Adapt.
20838         * nptl/tst-sem13.c (do_test): Adapt.
20839         * nptl/tst-sem11.c (main): Adapt.
20840         * nptl/sem_trywait.c: Remove.
20841         * nptl/DESIGN-sem.txt: Remove.
20842         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
20843         (gen-as-const-headers): Remove structsem.sym.
20844         * nptl/structsem.sym: Remove.
20845         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
20846         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
20847         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
20848         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
20849         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
20850         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
20851         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
20852         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
20853         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
20854         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
20855         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
20856         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
20857         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
20858         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
20859         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
20860         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
20861         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
20862         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
20863         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
20864         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
20865         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
20866         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
20867
20868 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
20869
20870         * INSTALL: Regenerated.
20871
20872         * po/libc.pot: Regenerated.
20873
20874 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
20875             Sandra Loosemore  <sandra@codesourcery.com>
20876             Andrew Jenner  <andrew@codesourcery.com>
20877             Joseph Myers  <joseph@codesourcery.com>
20878             Nathan Sidwell  <nathan@codesourcery.com>
20879
20880         * NEWS: Mention new Nios II port.
20881         * sysdeps/nios2/Implies: New file.
20882         * sysdeps/nios2/Makefile: New file.
20883         * sysdeps/nios2/Subdirs: New file.
20884         * sysdeps/nios2/Versions: New file.
20885         * sysdeps/nios2/__longjmp.S: New file.
20886         * sysdeps/nios2/abort-instr.h: New file.
20887         * sysdeps/nios2/backtrace.c: New file.
20888         * sysdeps/nios2/bits/endian.h: New file.
20889         * sysdeps/nios2/bits/fenv.h: New file.
20890         * sysdeps/nios2/bits/link.h: New file.
20891         * sysdeps/nios2/bits/setjmp.h: New file.
20892         * sysdeps/nios2/bsd-_setjmp.S: New file.
20893         * sysdeps/nios2/bsd-setjmp.S: New file.
20894         * sysdeps/nios2/configure: New generated file.
20895         * sysdeps/nios2/configure.ac: New file.
20896         * sysdeps/nios2/crti.S: New file.
20897         * sysdeps/nios2/crtn.S: New file.
20898         * sysdeps/nios2/dl-init.c: New file.
20899         * sysdeps/nios2/dl-machine.h: New file.
20900         * sysdeps/nios2/dl-sysdep.h: New file.
20901         * sysdeps/nios2/dl-tls.h: New file.
20902         * sysdeps/nios2/dl-trampoline.S: New file.
20903         * sysdeps/nios2/gccframe.h: New file.
20904         * sysdeps/nios2/gmp-mparam.h: New file.
20905         * sysdeps/nios2/jmpbuf-offsets.h: New file.
20906         * sysdeps/nios2/jmpbuf-unwind.h: New file.
20907         * sysdeps/nios2/ldsodefs.h: New file.
20908         * sysdeps/nios2/libc-tls.c: New file.
20909         * sysdeps/nios2/libm-test-ulps: New file.
20910         * sysdeps/nios2/machine-gmon.h: New file.
20911         * sysdeps/nios2/math-tests.h: New file.
20912         * sysdeps/nios2/math_private.h: New file.
20913         * sysdeps/nios2/memusage.h: New file.
20914         * sysdeps/nios2/nptl/Makefile: New file.
20915         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
20916         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
20917         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
20918         * sysdeps/nios2/nptl/pthreaddef.h: New file.
20919         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
20920         * sysdeps/nios2/nptl/tls.h: New file.
20921         * sysdeps/nios2/preconfigure: New file.
20922         * sysdeps/nios2/s_fma.c: New file.
20923         * sysdeps/nios2/s_fmaf.c: New file.
20924         * sysdeps/nios2/setjmp.S: New file.
20925         * sysdeps/nios2/sfp-machine.h: New file.
20926         * sysdeps/nios2/sotruss-lib.c: New file.
20927         * sysdeps/nios2/stackguard-macros.h: New file.
20928         * sysdeps/nios2/stackinfo.h: New file.
20929         * sysdeps/nios2/start.S: New file.
20930         * sysdeps/nios2/sysdep.h: New file.
20931         * sysdeps/nios2/tls-macros.h: New file.
20932         * sysdeps/nios2/tst-audit.h: New file.
20933         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
20934         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
20935         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
20936         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
20937         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
20938         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
20939         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
20940         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
20941         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
20942         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
20943         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
20944         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
20945         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
20946         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
20947         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
20948         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
20949         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
20950         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
20951         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
20952         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
20953         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
20954         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
20955         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
20956         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
20957         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
20958         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
20959         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
20960         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
20961         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
20962         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
20963         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
20964         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
20965         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
20966         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
20967         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
20968         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
20969         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
20970         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
20971         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
20972         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
20973         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
20974         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
20975         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
20976         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
20977
20978 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
20979
20980         [BZ #17844]
20981         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
20982         (getutent): Use weak_alias in non SHARED case
20983         and default_symbol_version in SHARED case.
20984         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
20985         (getutent_r, pututline): Likewise.
20986         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
20987         (getutid): Likewise.
20988         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
20989         (getutid_r): Likewise.
20990         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
20991         (getutline): Likewise.
20992         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
20993         (getutline_r): Likewise.
20994         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
20995         (updwtmp): Likewise.
20996
20997 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
20998
20999         [BZ #17848]
21000         * sysdeps/s390/s390-32/memcmp.S
21001         (memcmp_g5): Rename to __memcmp_g5.
21002         * sysdeps/s390/s390-32/memcpy.S
21003         (memcpy_g5): Rename to __memcpy_g5.
21004         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21005         (memcpy_mvcle) Rename to __memcpy_mvcle.
21006         * sysdeps/s390/s390-32/memset.S
21007         (memset_g5): Rename to __memset_g5.
21008         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
21009         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21010         and use prefixed functions.
21011         * sysdeps/s390/s390-32/multiarch/memcmp.S
21012         (memcmp_z196): Rename to __memcmp_z196.
21013         (memcmp_z10): Rename to __memcmp_z10.
21014         (memcmp): Set alias to __memcmp_g5.
21015         (bcmp): Set alias to __memcmp_g5.
21016         * sysdeps/s390/s390-32/multiarch/memcpy.S
21017         (memcpy_z196): Rename to __memcpy_z196.
21018         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21019         (memcpy_z10): Rename to __memcpy_z10.
21020         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21021         (memcpy): Set alias to __memcpy_g5.
21022         * sysdeps/s390/s390-32/multiarch/memset.S
21023         (memset_z196): Rename to __memset_z196.
21024         Jump to __memset_mvcle instead of memset_mvcle.
21025         (memset_z10): Rename to __memset_z10.
21026         Jump to __memset_mvcle instead of memset_mvcle.
21027         (memset_mvcle) Rename to __memset_mvcle.
21028         (memset): Set alias to __memset_g5.
21029         * sysdeps/s390/s390-64/memcmp.S
21030         (memcmp_z900): Rename to __memcmp_z900.
21031         * sysdeps/s390/s390-64/memcpy.S
21032         (memcpy_z900): Rename to __memcpy_z900.
21033         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21034         (memcpy_mvcle) Rename to __memcpy_mvcle.
21035         * sysdeps/s390/s390-64/memset.S
21036         (memset_z900): Rename to __memset_z900.
21037         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
21038         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21039         and use prefixed functions.
21040         * sysdeps/s390/s390-64/multiarch/memcmp.S
21041         (memcmp_z196): Rename to __memcmp_z196.
21042         (memcmp_z10): Rename to __memcmp_z10.
21043         (memcmp): Set alias to __memcmp_z900.
21044         (bcmp): Set alias to __memcmp_z900.
21045         * sysdeps/s390/s390-64/multiarch/memcpy.S
21046         (memcpy_z196): Rename to __memcpy_z196.
21047         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21048         (memcpy_z10): Rename to __memcpy_z10.
21049         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21050         (memcpy): Set alias to __memcpy_z900.
21051         * sysdeps/s390/s390-64/multiarch/memset.S
21052         (memset_z196): Rename to __memset_z196.
21053         Jump to __memset_mvcle instead of memset_mvcle.
21054         (memset_z10): Rename to __memset_z10.
21055         Jump to __memset_mvcle instead of memset_mvcle.
21056         (memset_mvcle) Rename to __memset_mvcle.
21057         (memset): Set alias to __memset_z900.
21058
21059 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
21060
21061         [BZ #17748]
21062         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
21063         __fesetenv instead of fesetenv.
21064
21065 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21066
21067         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
21068         macro.
21069
21070 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21071
21072         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
21073         regression on LE.
21074
21075         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
21076         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
21077         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21078         strncmp-power8 object.
21079         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21080         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
21081         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
21082         * NEWS: Update.
21083
21084 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21085             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21086
21087         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
21088         trailing byte check.
21089
21090 2015-01-13  David S. Miller  <davem@davemloft.net>
21091
21092         * include/signal.h (__sigreturn): Guard with __USE_MISC.
21093
21094 2015-01-13  Roland McGrath  <roland@hack.frob.com>
21095
21096         * login/logout.c (logout): Use memset rather than bzero.
21097         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
21098         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
21099         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
21100         (_gethtbyaddr): Likewise.
21101         * locale/programs/simple-hash.c (bcopy): Macro removed.
21102
21103 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21104
21105         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21106         Add strcmp-power8 object.
21107         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21108         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
21109         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
21110         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
21111         __strcmp_power8 implementation.
21112         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
21113         * NEWS: Update.
21114
21115         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21116         Add strncpy-power8 and stpncpy-power8 objects.
21117         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21118         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
21119         implementations.
21120         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
21121         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
21122         __stpncpy_power8 implementation.
21123         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
21124         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
21125         __strncpy_power8 implementation.
21126         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
21127         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
21128         * NEWS: Update.
21129
21130         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
21131         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
21132         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
21133
21134         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21135         strncat-power8 object.
21136         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
21137         __strcat_power8 implementation.
21138         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21139         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
21140         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
21141         optimized strcat for power8.
21142
21143         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21144         strcpy-power8 and stpcpy-power8 objects.
21145         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21146         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
21147         implementations.
21148         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
21149         multiarch stpcpy implementation for POWER8.
21150         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
21151         multiarch strcpy implementation for POWER8.
21152         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
21153         __strcpy_power8 function.
21154         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
21155         stpcpy for POWER8.
21156         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
21157         strcpy for POWER8.
21158         * NEWS: Update.
21159
21160 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
21161
21162         [BZ #16009]
21163         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
21164         weights and rules. Use do_xfrm_cached if data fits in cache,
21165         do_xfrm otherwise.  Moved former main loop to...
21166         * (do_xfrm_cached): New function.
21167         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
21168         find_idx, find_position and stack_push.
21169         * (find_idx): New function.
21170         * (find_position): Likewise.
21171         * localedata/sort-test.sh: Added test run for do_xfrm.
21172         * localedata/xfrm-test.c (main): Added command line option
21173         -nocache to run the test with strings that are too large for
21174         the STRXFRM cache.
21175
21176 2015-01-13  Torvald Riegel  <triegel@redhat.com>
21177
21178         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
21179         variable to lll_futex_wake call, not the value itself.
21180
21181 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
21182
21183         [BZ #17803]
21184         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
21185         twom64.  Adjust value to 0x1p-64L.
21186         (__scalblnl): Only return standard underflowing result for K <=
21187         -64 not K <= -63; adjust exponent for underflowing result by 64
21188         not 63.
21189         * math/libm-test.inc (scalbn_test_data): Add more tests.
21190         (scalbln_test_data): Likewise.
21191
21192         [BZ #17834]
21193         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
21194         0x1p63L.
21195         (__scalblnl): Get new exponent of adjusted subnormal value from ES
21196         not HX.
21197         * math/libm-test.inc (scalbn_test_data): Add more tests.
21198         (scalbln_test_data): Likewise.
21199
21200 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21201             Stefani Seibold  <stefani@seibold.net>
21202
21203         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
21204         (sysdep_routines): Add dl-vdso here, ...
21205         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
21206         (sysdep_routines): ... not here.
21207         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
21208         fallback when vDSO is not presented.
21209         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
21210         Define with libc_hidden_proto/libc_hidden_data_def definitions.
21211         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
21212         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
21213         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
21214         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
21215         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
21216         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
21217         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
21218         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
21219         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
21220         fallback configurable symbol when vDSO is not available.
21221         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
21222         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
21223         be able to redefine fallback symbol when vDSO is not available.
21224         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
21225         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
21226
21227 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21228
21229         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
21230         (TLS_INIT_TP): Add tm_capable initialization.
21231         (TLS_DEFINE_INIT_TP): Likewise.
21232         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
21233         TCB.
21234         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
21235         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
21236         calculation.
21237         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
21238         transactoion is lock elision is built and TCB tm_capable is set.
21239         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
21240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21241         (INTERNAL_SYSCALL_NCS): Likewise.
21242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
21243         (INTERNAL_SYSCALL_NCS): Likewise.
21244         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
21245
21246         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
21247         for powerpc.
21248         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21249         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
21250         and remove it for 32 bits case.
21251         [pthread_rwlock_t] (__rwelision): New field for lock elision.
21252         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
21253         initialization.
21254         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
21255         Disable lock elision with rdlocks if elision is not available.
21256
21257         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
21258         (sysdep_routines): Add lock elision objects.
21259         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21260         [pthread_mutex_t] (__spins): Rework to add lock elision field.
21261         [pthread_mutex_t] (__elision): Add field.
21262         [__PTHREAD_SPINS]: Adjust to init lock elision field.
21263         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
21264         elision definitions for powerpc.
21265         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
21266         implementation of lock elision for powerpc.
21267         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
21268         implementation of timed lock elision for powerpc.
21269         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
21270         implementation of trylock with lock elision for powerpc.
21271         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
21272         implementaion of unlock for lock elision for powerpc.
21273         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
21274         automatic enable lock elision for mutexes.
21275         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
21276         transaction execution definitions for powerpc.
21277         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
21278         definitions.
21279         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
21280         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
21281         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
21282         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
21283         * NEWS: Update.
21284
21285 2015-01-09  Roland McGrath  <roland@hack.frob.com>
21286
21287         * sysdeps/posix/shm-directory.c: Use <> rather than ""
21288         for #include of <shm-directory.h>.
21289
21290 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
21291
21292         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
21293         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
21294
21295 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
21296
21297         [BZ #17791]
21298         * NEWS: Mention bug fix.
21299         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
21300         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
21301         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
21302
21303 2015-01-09  Torvald Riegel <triegel@redhat.com>
21304
21305         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
21306
21307 2015-01-09  Torvald Riegel <triegel@redhat.com>
21308
21309         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
21310
21311 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21312
21313         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
21314         pointer and cast to uintptr_t.
21315
21316 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21317
21318         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
21319         removed.
21320         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
21321
21322 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21323
21324         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
21325         of 0.
21326
21327 2015-01-08  Roland McGrath  <roland@hack.frob.com>
21328
21329         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
21330         <nptl/pthreadP.h> instead.
21331         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
21332
21333         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
21334         already defined.
21335         [__SIGRTMIN] (init): Function removed.
21336         [__SIGRTMIN] (initialized): Variable removed.
21337         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
21338         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
21339         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
21340         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
21341         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
21342         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
21343         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
21344         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
21345         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
21346         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
21347         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
21348         * sysdeps/nptl/allocrtsig.c: New file.
21349         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
21350         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
21351         * sysdeps/generic/testrtsig.h: File removed.
21352
21353         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
21354         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
21355
21356         * nptl/nptl-init.c (pthread_functions): Conditionalize
21357         .ptr__nptl_setxid initialization on [SIGSETXID].
21358
21359         * sysdeps/nptl/sys/procfs.h: New file.
21360         * nptl_db/Makefile (headers): Add it.
21361         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
21362
21363         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
21364         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
21365         * nptl/pthread_attr_setaffinity.c: Include it.
21366         * nptl/pthread_setattr_default_np.c: Likewise.
21367         * nptl/check-cpuset.h: New file.
21368
21369 2015-01-08  Richard Henderson  <rth@redhat.com>
21370
21371         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
21372         (CFLAGS-tst-execstack-prog.c): Likewise.
21373         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
21374
21375 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
21376             Sandra Loosemore  <sandra@codesourcery.com>
21377             Andrew Jenner  <andrew@codesourcery.com>
21378             Joseph Myers  <joseph@codesourcery.com>
21379             Nathan Sidwell  <nathan@codesourcery.com>
21380
21381         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
21382         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
21383         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
21384         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
21385         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
21386         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
21387         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
21388         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
21389         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
21390         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
21391         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
21392         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
21393         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
21394         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
21395         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
21396         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
21397         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
21398
21399 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21400
21401         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
21402         timespec struct member in syscall macro.
21403         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
21404         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
21405         first timeval struct member in syscall macro.
21406         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
21407
21408 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
21409
21410         [BZ #17748]
21411         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
21412         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
21413         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
21414         __feupdateenv and define as weak alias of __feupdateenv.  Use
21415         libm_hidden_weak.
21416         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
21417         libm_hidden_def.
21418         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
21419         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
21420         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21421         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
21422         libm_hidden_def.
21423         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
21424         __feupdateenv and define as weak alias of __feupdateenv.  Use
21425         libm_hidden_weak.
21426         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
21427         libm_hidden_def.
21428         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
21429         __feupdateenv and define as weak alias of __feupdateenv.  Use
21430         libm_hidden_weak.
21431         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
21432         libm_hidden_def.
21433         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21434         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21435         (__feupdateenv): Likewise.
21436         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
21437         __feupdateenv and define as weak alias of __feupdateenv.  Use
21438         libm_hidden_weak.
21439         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21440         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
21441         libm_hidden_def.
21442         * sysdeps/tile/math_private.h (__feupdateenv): New inline
21443         function.
21444         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
21445         libm_hidden_def.
21446         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
21447         __feupdateenv instead of feupdateenv.
21448         (default_libc_feupdateenv_test): Likewise.
21449         (libc_feresetround_ctx): Likewise.
21450
21451 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21452
21453         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
21454         prototype.
21455
21456 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
21457
21458         * posix/regcomp.c (parse_bracket_exp): Initialize type to
21459         COLL_SYM in a couple of places to avoid uninitialized variable
21460         wanings on tilegx gcc 4.8.2.
21461
21462 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21463
21464         * sysdeps/aarch64/strcpy.S: New file.
21465         * sysdeps/aarch64/stpcpy.S: New file.
21466         * NEWS: Updated.
21467
21468 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21469
21470         * sysdeps/aarch64/strrchr.S: New file.
21471         * NEWS: Updated.
21472
21473 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
21474
21475         [BZ #17658]
21476         * stdlib/setenv.c: Fix memory leak when setting large,
21477         duplicate string.
21478
21479 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
21480
21481         [BZ #17273]
21482         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
21483         and tabs from buffer before parsing fstab entry.
21484         * misc/tst-mntent.c (main): Add test for mount entry with
21485         trailing spaces and tabs.
21486
21487 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
21488
21489         [BZ #17748]
21490         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
21491         * math/fesetround.c (fesetround): Rename to __fesetround and
21492         define as weak alias of __fesetround.  Use libm_hidden_weak.
21493         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
21494         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
21495         * sysdeps/arm/fesetround.c (fesetround): Likewise.
21496         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
21497         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
21498         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
21499         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
21500         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
21501         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
21502         __fesetround_inline.
21503         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
21504         __fesetround_inline instead of __fesetround.
21505         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
21506         __fesetround and define as weak alias of __fesetround.  Use
21507         libm_hidden_weak.  Call __fesetround_inline instead of
21508         __fesetround.
21509         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
21510         __fesetround and define as weak alias of __fesetround.  Use
21511         libm_hidden_weak.
21512         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
21513         Likewise.
21514         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
21515         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
21516         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
21517         * sysdeps/tile/math_private.h (__fesetround): New inline function.
21518         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
21519         __fesetround and define as weak alias of __fesetround.  Use
21520         libm_hidden_weak.
21521         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
21522         __fesetround instead of fesetround.
21523         (default_libc_feholdexcept_setround): Likewise.
21524         (libc_feholdsetround_ctx): Likewise.
21525         (libc_feholdsetround_noex_ctx): Likewise.
21526
21527         [BZ #17748]
21528         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
21529         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
21530         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21531         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21532         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21533         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
21534         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21535         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
21536         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21537         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21538         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21539         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21540         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21541         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21542         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
21543         libm_hidden_def.
21544         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
21545         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
21546         Likewise.
21547         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21548         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21549         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
21550         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21551         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
21552         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21553         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21554         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
21555         __fesetenv instead of fesetenv.
21556         (libc_feresetround_noex_ctx): Likewise.
21557         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
21558         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21559         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
21560         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
21561         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
21562         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
21563         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21564         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21565         (__feupdateenv): Likewise.
21566         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21567         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21568         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
21569         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
21570
21571 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21572
21573         [BZ #17806]
21574         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
21575         addresses have been freed.
21576
21577 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21578
21579         * resolv/res_init.c (__res_vinit): Improve comments about nserv
21580         and nservall.
21581
21582 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
21583
21584         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
21585         Clean up check_pf allocation pattern. addresses
21586
21587 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21588
21589         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
21590         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
21591         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
21592         * nptl/pthread_exit.c (__pthread_exit): Likewise.
21593         * nptl/pthread_join.c (pthread_join): Likewise.
21594         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
21595         * sysdeps/posix/waitid.c (__waitid): Likewise.
21596         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
21597         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
21598         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
21599         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
21600         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
21601         Likewise.
21602         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
21603         (__libc_pread64): Likewise.
21604         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
21605         (__libc_pwrite): Likewise.
21606         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
21607         (__libc_pwrite64): Likewsie.
21608         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
21609         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
21610         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
21611         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
21612         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
21613         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
21614         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
21615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
21616         Likewise.
21617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
21618         (__libc_pread64): Likewise.
21619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
21620         Likewise.
21621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
21622         (__libc_pwrite64): Likewise.
21623         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
21624         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
21625         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
21626         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
21627         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
21628         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
21629         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
21630         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
21631         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
21632         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
21633         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
21634         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
21635         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
21636         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
21637         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
21638         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
21639         Likewise.
21640
21641 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
21642
21643         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
21644         (CFLAGS-test-double.c): Likewise.
21645         (CFLAGS-test-ldouble.c): Likewise.
21646         (CPPFLAGS-test-ifloat.c): Likewise.
21647         (CPPFLAGS-test-idouble.c): Likewise.
21648         (CPPFLAGS-test-ildoubl.c): Likewise.
21649         (CFLAGS-test-test-fenv.c): Remove variable.
21650         (CFLAGS-test-misc.c): Likewise.
21651
21652 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
21653
21654         [BZ #17797]
21655         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
21656         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
21657         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
21658         CLOCKS_PER_SEC == 1000000.
21659         * time/clocktest.c (main): Replace %ld with %jd and cast to
21660         intmax_t.
21661
21662 2015-01-05  Roland McGrath  <roland@hack.frob.com>
21663
21664         * sysdeps/generic/unwind-resume.h: New file.
21665         * sysdeps/gnu/unwind-resume.c: Include it.
21666         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
21667         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
21668         argument list.
21669         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
21670         global rather than static.
21671         (_Unwind_Resume): Update user.
21672         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
21673         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
21674         rather than static.  Add __attribute__ ((cold)).
21675         (_Unwind_Resume, __gcc_personality_v0): Update callers.
21676         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
21677         * sysdeps/arm/arm-unwind-resume.S: New file.
21678         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
21679         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
21680         * sysdeps/arm/Makefile [$(subdir) = csu]
21681         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
21682         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
21683         Add rt-arm-unwind-resume.
21684         [$(subdir) = nptl]
21685         (libpthread-sysdep_routines, libpthread-shared-only-routines):
21686         Add pt-arm-unwind-resume.
21687         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
21688         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
21689
21690 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21691
21692         [BZ #17748]
21693         * include/fenv.h (__feholdexcept): Declare.  Use
21694         libm_hidden_proto.
21695         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
21696         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
21697         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21698         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
21699         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
21700         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
21701         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
21702         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21703         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
21704         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
21705         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21706         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
21707         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
21708         (feholdexcept): Likewise.
21709         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
21710         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
21711         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21712         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21713         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
21714         __feholdexcept instead of feholdexcept.
21715         (default_libc_feholdexcept_setround): Likewise.
21716
21717 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21718
21719         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
21720         to avoid using stl/str to align destination.
21721
21722 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21723
21724         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
21725
21726 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21727
21728         [BZ #17796]
21729         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
21730         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
21731         Define as weak alias not strong alias.
21732
21733 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21734
21735         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
21736         bltzal with addiupc.
21737         (RTLD_START): Ditto.
21738
21739 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
21740
21741         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
21742         for __vdso_* functions in declarations.
21743         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
21744         definitions.
21745         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
21746         INTERNAL_VSYSCALL): Use struct return types to check for error.
21747
21748         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
21749         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
21750         function with cast from llround().
21751         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
21752         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
21753         Define.
21754
21755 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21756
21757         [BZ #17793]
21758         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
21759         Define as weak alias not strong alias.
21760
21761         [BZ #17635]
21762         * ctype/ctype-c99.c: New file.  isblank implementation moved from
21763         ...
21764         * ctype/ctype-extn.c: ... here.
21765         (__isblank_l): Move to ...
21766         * ctype/ctype-c99_l.c: ... here.  New file.
21767         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
21768         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
21769         Remove variable.
21770         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
21771         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
21772         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
21773         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
21774         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
21775
21776         [BZ #17777]
21777         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
21778         (posix_fadvise64): Define as weak alias not strong alias.
21779         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
21780         (posix_fallocate64): Likewise.
21781         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
21782         Remove variable.
21783         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
21784         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
21785         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
21786         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
21787         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
21788
21789 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
21790
21791         [BZ #16191]
21792         * NEWS: Mention bug fix.
21793         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
21794         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
21795         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
21796         (HOST_STACK_END_ADDR): Likewise.
21797
21798 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
21799
21800         [BZ #17748]
21801         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
21802         * math/fegetround.c (fegetround): Rename to __fegetround and
21803         define as weak alias of __fegetround.  Use libm_hidden_weak.
21804         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
21805         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
21806         * sysdeps/arm/fegetround.c (fegetround): Likewise.
21807         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
21808         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
21809         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
21810         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
21811         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
21812         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
21813         Undefine after rather than before function definition; use
21814         parentheses around function name in definition.
21815         (__fegetround): Also undefine macro after function definition.
21816         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
21817         __fegetround and define as weak alias of __fegetround.  Use
21818         libm_hidden_weak.  Do not undefine as macro.
21819         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
21820         Likewise.
21821         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
21822         __fegetround and define as weak alias of __fegetround.  Use
21823         libm_hidden_weak.
21824         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
21825         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
21826         * sysdeps/tile/math_private.h (__fegetround): New inline function.
21827         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
21828         __fegetround and define as weak alias of __fegetround.  Use
21829         libm_hidden_weak.
21830         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
21831         __fegetround instead of fegetround.
21832
21833         [BZ #17782]
21834         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
21835         Condition macro definition on [__USE_MISC].
21836
21837         [BZ #17781]
21838         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
21839         (struct sigaction): Change type of sa_flags field to int.
21840
21841         [BZ #17780]
21842         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
21843         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
21844         __glibc_reserved0.
21845
21846         * nptl/version.c (banner): Use single year in copyright notice.
21847
21848         * NEWS: Update copyright dates.
21849         * catgets/gencat.c (print_version): Likewise.
21850         * csu/version.c (banner): Likewise.
21851         * debug/catchsegv.sh: Likewise.
21852         * debug/pcprofiledump.c (print_version): Likewise.
21853         * debug/xtrace.sh (do_version): Likewise.
21854         * elf/ldconfig.c (print_version): Likewise.
21855         * elf/ldd.bash.in: Likewise.
21856         * elf/pldd.c (print_version): Likewise.
21857         * elf/sotruss.sh: Likewise.
21858         * elf/sprof.c (print_version): Likewise.
21859         * iconv/iconv_prog.c (print_version): Likewise.
21860         * iconv/iconvconfig.c (print_version): Likewise.
21861         * locale/programs/locale.c (print_version): Likewise.
21862         * locale/programs/localedef.c (print_version): Likewise.
21863         * login/programs/pt_chown.c (print_version): Likewise.
21864         * malloc/memusage.sh (do_version): Likewise.
21865         * malloc/memusagestat.c (print_version): Likewise.
21866         * malloc/mtrace.pl: Likewise.
21867         * manual/libc.texinfo: Likewise.
21868         * nptl/version.c (banner): Likewise.
21869         * nscd/nscd.c (print_version): Likewise.
21870         * nss/getent.c (print_version): Likewise.
21871         * nss/makedb.c (print_version): Likewise.
21872         * posix/getconf.c (main): Likewise.
21873         * scripts/test-installation.pl: Likewise.
21874         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
21875
21876 2015-01-02  Will Newton  <will.newton@linaro.org>
21877
21878         * sysdeps/arm/armv7/configure: Removed.
21879         * sysdeps/arm/armv7/configure.ac: Likewise.
21880
21881 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
21882
21883         * All files with FSF copyright notices: Update copyright dates
21884         using scripts/update-copyrights.
21885         * intl/plural.c: Regenerated.
21886         * locale/programs/charmap-kw.h: Likewise.
21887         * locale/programs/locfile-kw.h: Likewise.
21888
21889 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
21890
21891         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
21892
21893 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
21894
21895         [BZ #17748]
21896         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
21897         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
21898         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
21899         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
21900         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21901         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
21902         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21903         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
21904         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21905         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
21906         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21907         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21908         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
21909         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21910         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
21911         libm_hidden_def.
21912         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
21913         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
21914         Likewise.
21915         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
21916         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21917         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
21918         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21919         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
21920         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
21921         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
21922         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
21923         __fegetenv instead of fegetenv.
21924         (libc_feholdsetround_noex_ctx): Likewise.
21925
21926 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
21927
21928         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
21929         (Elf_MIPS_ABIFlags_v0): New structure.
21930         (EF_MIPS_FP64): Define.
21931         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
21932         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
21933         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
21934         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
21935         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
21936         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
21937         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
21938         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
21939         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
21940         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
21941         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
21942         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
21943         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
21944         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
21945         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
21946         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
21947         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
21948         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
21949         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
21950         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
21951         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
21952         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
21953         field.
21954         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
21955         EF_MIPS_FP64.
21956         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
21957         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
21958         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
21959         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
21960         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
21961         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
21962         * sysdeps/mips/tst-abi-interlink.c: Likewise.
21963         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
21964         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
21965         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
21966         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
21967         record the current FP ABI extension.
21968         (mips-mode-switch): Define to show if kernel headers support mode
21969         switching.
21970         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
21971         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
21972         supported SYSV ABI version to 3.
21973         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
21974         feature.
21975
21976 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21977             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21978
21979         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
21980         path.
21981         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
21982
21983 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
21984
21985         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
21986         __fegetround and redefine to call __fegetround.  Remove condition
21987         on [!__NO_MATH_INLINES].
21988         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
21989         function.
21990         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
21991         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
21992         Remove macro.
21993         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
21994         instead of <fenv_libc.h>.
21995         (__llrintl): Call fegetround instead of __fegetround.
21996         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
21997         instead of <fenv_libc.h>.
21998         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
21999         (__lrintl): Call fegetround instead of __fegetround.
22000         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
22001         instead of <fenv_libc.h>.
22002         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
22003         (__rintl): Call fegetround instead of __fegetround.
22004
22005 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
22006
22007         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
22008         arrays.
22009
22010 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22011
22012         [BZ #17775]
22013         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
22014         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
22015         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
22016
22017 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22018
22019         * sysdeps/i386/tls-macros.h: Include <features.h>.
22020         (TLS_LE): Use non-PIC version for GCC >= 5.0.
22021         (TLS_IE): Likewise.
22022         (TLS_LD): Likewise.
22023         (TLS_GD): Likewise.
22024         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
22025         define for GCC >= 5.0.
22026
22027 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
22028
22029         * math/test-fenv.c (test_single_exception, set_single_exc,
22030         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
22031         feexcp_mask_test, feenable_test, fe_single_test): Add
22032         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
22033         case where they are not used.
22034         * math/libm-test.inc: Likewise.
22035         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
22036         unused in the absence of FP rounding/exception support.
22037         * stdio-common/tst-printf-round.c: Likewise.
22038         * stdlib/tst-strtod-round.c: Likewise.
22039         * stdlib/tst-strtod-underflow.c: Likewise.
22040
22041 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
22042
22043         [BZ #17723]
22044         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
22045         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
22046         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22047         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22048         libm_hidden_weak.
22049         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
22050         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22051         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
22052         libm_hidden_def.
22053         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22054         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22055         libm_hidden_weak.
22056         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
22057         Likewise.
22058         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
22059         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22060         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22061         libm_hidden_weak.
22062         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22063         libm_hidden_def.
22064         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
22065         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
22066         (__feraiseexcept): Likewise.
22067         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22068         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22069         libm_hidden_weak.
22070         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22071         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22072         libm_hidden_def.
22073         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
22074         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
22075         Use libm_hidden_def.
22076         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
22077         libm_hidden_def.
22078         (feraiseexcept): Define as weak not strong alias.  Use
22079         libm_hidden_weak.
22080         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
22081         New inline function.  Factored out of ...
22082         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
22083         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
22084         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
22085         feraiseexcept.
22086         * math/w_acos.c (__acos): Likewise.
22087         * math/w_asin.c (__asin): Likewise.
22088         * math/w_ilogb.c (__ilogb): Likewise.
22089         * math/w_j0.c (y0): Likewise.
22090         * math/w_j1.c (y1): Likewise.
22091         * math/w_jn.c (yn): Likewise.
22092         * math/w_log.c (__log): Likewise.
22093         * math/w_log10.c (__log10): Likewise.
22094         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
22095         * sysdeps/aarch64/fpu/math_private.h
22096         (libc_feupdateenv_test_aarch64): Likewise.
22097         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22098         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
22099         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
22100         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22101         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22102         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22103         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
22104         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22105         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22106         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22107
22108 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22109
22110         [BZ #17732]
22111         * io/test-utime.c (main): Replace %ld with %jd and cast to
22112         intmax_t.
22113         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
22114         * nptl/tst-mutex5.c: Include <stdint.h>.
22115         (do_test): Replace %ld with %jd and cast to intmax_t.
22116         * posix/tst-regex.c (run_test): Likewise.
22117         (run_test_backwards): Likewise.
22118         * rt/tst-clock.c: Include <stdint.h>.
22119         (clock_test): Replace %ld with %jd and cast to intmax_t.
22120         * rt/tst-cpuclock1.c: Include <stdint.h>.
22121         (do_test): Replace %lu with %ju and cast to uintmax_t.
22122         * rt/tst-cpuclock2.c: Include <stdint.h>.
22123         (do_test): Replace %lu with %ju and cast to uintmax_t.
22124         * rt/tst-mqueue1.c: Include <stdint.h>.
22125         (check_attrs): Replace %ld with %jd and cast to intmax_t.
22126         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
22127         intmax_t.
22128         * rt/tst-mqueue4.c (do_test): Likewise.
22129         * rt/tst-timer4.c: Include <stdint.h>.
22130         (check_ts): Replace %ld with %jd and cast to intmax_t.
22131         (do_test): Likewise.
22132         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
22133         and cast to intmax_t.
22134         * sysdeps/pthread/tst-timer.c (main): Likewise.
22135         * time/clocktest.c (main): Likewise.
22136         * time/tst-posixtz.c (do_test): Likewise.
22137         * timezone/tst-timezone.c (main): Likewise.
22138
22139 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22140             H.J. Lu  <hongjiu.lu@intel.com>
22141
22142         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
22143         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
22144         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
22145         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
22146         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
22147         version if bit_Fast_Unaligned_Load is set.
22148         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
22149         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
22150         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
22151         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
22152         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
22153         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
22154         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22155         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
22156         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
22157         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
22158         to 4.
22159         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
22160         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
22161         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
22162         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
22163
22164 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
22165
22166         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
22167         instead of #if to avoid a Wundef warning.
22168         * stdlib/tst-limits.c (do_test): Likewise.
22169
22170         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
22171         parallel other exception macros.
22172         (fegetenv): Convert from macro to extern inline so that it applies
22173         retroactively to inline functions already seen by the compiler.
22174         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
22175
22176         * posix/Makefile (before-compile): Use $(objpfx) for
22177         posix-conf-vars-def.h.
22178
22179 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
22180
22181         * posix/getconf.c (main): Use size_t for type of I.
22182         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
22183         NSPEC.
22184
22185         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
22186         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
22187         * posix/posix-envs.def: Likewise.
22188         * sysdeps/posix/sysconf.c: Likewise.
22189         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
22190         (specs): Remove array.
22191         * scripts/gen-posix-conf-vars.awk: Support generation of specs
22192         array.
22193
22194         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
22195         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
22196         (__sysconf): Use CONF_IS_* macros.
22197
22198         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
22199         ($(objpfx)posix-conf-vars-def.h): New target.
22200         * posix/posix-conf-vars.list: New file.
22201         * posix/posix-conf-vars.h: New file.
22202         * posix/confstr.c: Include posix-conf-vars.h.
22203         (confstr): Use CONF_IS_* macros.
22204         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
22205         CONF_IS_* macros.
22206         * scripts/gen-posix-conf-vars.awk: New file.
22207
22208 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
22209
22210         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
22211         fegetround): Add no-op macros to avoid linknamespace issues.
22212
22213         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
22214         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
22215
22216         * sysdeps/unix/sysv/linux/tile/sysdep.h
22217         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
22218         assembly-specific section to avoid a redefinition warning.
22219
22220         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
22221         long before casting to pointer to avoid a cast warning.
22222
22223 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
22224
22225         * sysdeps/tile/tilegx/Implies: New file.
22226
22227 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
22228
22229         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
22230
22231 2014-12-23  Florian Weimer  <fweimer@redhat.com>
22232
22233         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
22234
22235 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22236
22237         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
22238         not define.
22239         * sysdeps/unix/sysv/linux/utimes.c: Do not include
22240         <kernel-features.h>.
22241         (__utimes) [__NR_utimes]: Make code unconditional.
22242         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
22243         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
22244         (__ASSUME_UTIMES): Do not undefine.
22245         * sysdeps/unix/sysv/linux/tile/kernel-features.h
22246         (__ASSUME_UTIMES): Likewise.
22247         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
22248         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
22249         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
22250         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
22251
22252 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22253
22254         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
22255
22256 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
22257
22258         [BZ #17747]
22259         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
22260         alias to weak alias for j0l, y0l.
22261         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
22262         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
22263
22264         [BZ #17746]
22265         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
22266         conversion.
22267
22268 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22269
22270         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
22271         to zero if not already defined.
22272
22273 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22274
22275         [BZ #17724]
22276         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
22277         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
22278         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
22279         (char *) casts added.
22280         * sysdeps/ieee754/k_standardf.c: New file.
22281         * sysdeps/ieee754/k_standardl.c: Likewise.
22282         * math/Makefile (libm-support): Remove k_standard.
22283         (libm-calls): Add k_standard.
22284
22285 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22286
22287         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
22288         Optimize to avoid an unnecessary FPCR read.
22289
22290 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22291
22292         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
22293         Optimize to reduce FPCR/FPSR accesses.
22294
22295 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22296
22297         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
22298         Call libc_fetestexcept_aarch64.
22299
22300 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22301
22302         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
22303         Call libc_fesetround_aarch64.
22304
22305 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22306
22307         [BZ #17733]
22308         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
22309         (__bind): Do not define as weak alias.
22310         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
22311         define.
22312         (__getsockname): Do not define as weak alias.
22313
22314 2014-12-22  Will Newton  <will.newton@linaro.org>
22315
22316         * manual/install.texi: Document that we require bison 2.7
22317         or above.
22318         * INSTALL: Regenerate.
22319         * configure.ac: Use AC_CHECK_PROG_VER instead of
22320         AC_PATH_PROG when checking for bison and check for
22321         version 2.7 or above.
22322         * configure: Regenerate.
22323
22324 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
22325
22326         [BZ #17745]
22327         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
22328         * sysdeps/tile/ffsll.c (ffsll): To here.
22329
22330         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
22331
22332 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22333
22334         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
22335         if not defined.
22336         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
22337         definition.
22338         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22339         hidden ___tls_get_addr.
22340         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22341         hidden __tls_get_addr.
22342         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
22343         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
22344         Likewise.
22345
22346 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22347
22348         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
22349         _dl_init call.
22350
22351 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22352
22353         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
22354         from "call _dl_init@PLT".
22355         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
22356
22357 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
22358
22359         * manual/search.texi: (Array Sort Function): Clarify stable sorting
22360         guarantees.
22361
22362 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
22363
22364         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
22365
22366 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22367
22368         [BZ #17744]
22369         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
22370         strnlen.
22371
22372 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22373
22374         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
22375         of multu on MIPSr6.
22376         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
22377         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
22378         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
22379         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
22380         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
22381
22382 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22383
22384         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
22385         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
22386         (PTR_SUBU): Use subu for mips32r6/mips64r6.
22387         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
22388         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
22389         mips32r6/mips64r6.
22390         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
22391
22392 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
22393
22394         * string/strncat.c (STRNCAT): Simplify implementation.
22395
22396 2014-12-19  David S. Miller  <davem@davemloft.net>
22397
22398         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
22399         access the quad as both a long double and as a series of 4 words.
22400
22401         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
22402         link_map->l_info array access.
22403
22404 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22405
22406         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
22407
22408         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
22409         * math/atest-exp2.c (TIMEOUT): Likewise.
22410         * math/atest-sincos.c (TIMEOUT): Likewise.
22411
22412 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22413
22414         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
22415         -Wno-error with -fno-builtin-lround.
22416
22417 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22418
22419         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
22420         Contains futex constants and functions moved over from ...
22421         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
22422         <lowlevellock-futex.h>.
22423         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22424         (lll_timedwait_tid): Add comments and parentheses around macro
22425         arguments.
22426
22427 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22428
22429         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
22430         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
22431         (__lll_private_flag): Remove.
22432         (lll_futex_wait): Likewise.
22433         (lll_futex_timed_wait): Likewise.
22434         (lll_futex_wake): Likewise.
22435         (lll_futex_requeue): Likewise.
22436         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22437         (__lll_timedwait_tid): Spell out argument names.
22438         (lll_timedwait_tid): Add comments and parentheses around macro
22439         arguments.
22440         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
22441         LLL_SHARED and LLL_PRIVATE usable from assembly code.
22442
22443 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22444
22445         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
22446         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
22447         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
22448         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
22449         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
22450         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
22451         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
22452         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
22453         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
22454         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
22455         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
22456         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
22457         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
22458         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
22459         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
22460         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
22461         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
22462         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
22463         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
22464
22465 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22466
22467         * sysdeps/x86_64/x32/Makefile: New file.
22468
22469 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22470
22471         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
22472         1L with (mp_limb_t) 1.
22473
22474 2014-12-17  Roland McGrath  <roland@hack.frob.com>
22475
22476         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
22477         * nptl/libc_pthread_init.c: ... here.
22478         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
22479         * nptl/register-atfork.c: ... here.
22480
22481         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
22482         Use pthread_sigmask rather than INTERNAL_SYSCALL.
22483         Use assert_perror to check its return value.
22484         (__gai_create_helper_thread): Likewise.
22485
22486         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
22487
22488         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
22489
22490 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
22491
22492         [BZ #17725]
22493         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
22494         __profil_counter.
22495         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
22496         Likewise.
22497         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
22498         Likewise.
22499         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
22500         Likewise.
22501         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
22502         (profil_counter): Likewise.
22503         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
22504         (profil_counter): Likewise.
22505         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
22506         Likewise.
22507         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
22508         Likewise.
22509         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
22510         (profil_counter): Likewise.
22511         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
22512         Likewise.
22513         [!__profil_counter] (profil_counter): Define as weak alias of
22514         __profil_counter.
22515         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
22516         (profil_counter): Rename to __profil_counter.
22517         [!__profil_counter] (profil_counter): Define as weak alias of
22518         __profil_counter.
22519         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
22520         (profil_counter): Rename to __profil_counter.
22521         [!__profil_counter] (profil_counter): Define as weak alias of
22522         __profil_counter.
22523         * sysdeps/posix/profil.c: Update comment referring to
22524         profil_counter.
22525         (__profil): Use __profil_counter instead of profil_counter.
22526         * sysdeps/posix/sprofil.c (profil_counter): Rename to
22527         __profil_counter.  Use __profil_counter_ushort and
22528         __profil_counter_uint in definitions.
22529         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
22530         instead of profil_counter_uint and profil_counter_ushort.
22531
22532         [BZ #17722]
22533         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
22534         define as weak alias of __inet_makeaddr.
22535         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
22536         as weak alias of __inet_addr.
22537         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
22538         as weak alias of __inet_pton.  Use libc_hidden_weak.
22539         * include/arpa/inet.h (__inet_pton): Declare.  Use
22540         libc_hidden_proto.
22541         (inet_makeaddr): Don't use libc_hidden_proto.
22542         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
22543         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
22544         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
22545         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
22546         Remove variable.
22547         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
22548         (test-xfail-POSIX/time.h/linknamespace): Likewise.
22549
22550 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
22551
22552         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
22553
22554 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22555
22556         * stdio-common/bug-vfprintf-nargs.c (do_test):
22557         Cast value to intptr_t to avoid format warning
22558         for usage with PRIdPTR printing macro.
22559
22560 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22561
22562         * libio/tst-widetext.c (do_test):
22563         Use format type %td instead of %Zd for ptrdiff_t
22564         in order to avoid format warning.
22565
22566 2014-12-17  Andreas Schwab  <schwab@suse.de>
22567
22568         * nscd/mem.c (gc): Add size_t cast to match printf format.
22569
22570 2014-12-16  Roland McGrath  <roland@hack.frob.com>
22571
22572         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
22573         (init): Apply PTR_MANGLE to pointers before storing them.
22574         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
22575         before using them.
22576
22577 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
22578
22579         [BZ #17719]
22580         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
22581         define as weak alias of __memrchr.
22582         (__memrchr): Do not define as strong alias of memrchr.
22583         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
22584         Remove variable.
22585         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
22586         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
22587         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
22588
22589         [BZ #17717]
22590         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
22591         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
22592         (if_indextoname): Rename to __if_indextoname and define as weak
22593         alias of __if_indextoname.  Use libc_hidden_weak.
22594         (if_freenameindex): Rename to __if_freenameindex and define as
22595         weak alias of __if_freenameindex.
22596         (if_nameindex): Rename to __if_nameindex and define as weak alias
22597         of __if_nameindex.
22598         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
22599         __if_nametoindex and define as weak alias of __if_nametoindex.
22600         Use libc_hidden_weak.
22601         (if_freenameindex): Rename to __if_freenameindex and define as
22602         weak alias of __if_freenameindex.
22603         (if_nameindex): Rename to __if_nameindex and define as weak alias
22604         of __if_nameindex.
22605         (if_indextoname): Rename to __if_indextoname and define as weak
22606         alias of __if_indextoname.  Use libc_hidden_weak.
22607         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
22608         __if_nametoindex and define as weak alias of __if_nametoindex.
22609         Use libc_hidden_weak.
22610         (if_freenameindex): Rename to __if_freenameindex and define as
22611         weak alias of __if_freenameindex.  Use libc_hidden_weak.
22612         (if_nameindex_netlink): Use __if_freenameindex instead of
22613         if_freenameindex.
22614         (if_nameindex): Rename to __if_nameindex and define as weak alias
22615         of __if_nameindex.  Use libc_hidden_weak.
22616         (if_indextoname): Rename to __if_indextoname and define as weak
22617         alias of __if_indextoname.  Use libc_hidden_weak.
22618         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
22619         libc_hidden_proto.
22620         [!_ISOMAC] (__if_freenameindex): Likewise.
22621         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
22622         if_nametoindex.
22623         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
22624         variable.
22625         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
22626         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
22627         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
22628         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
22629         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
22630         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
22631         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
22632
22633         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
22634         Remove variable.
22635         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
22636         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
22637
22638 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22639
22640         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
22641         subscript above bounds'
22642
22643         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
22644         bounds.
22645
22646 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
22647
22648         * libio/tst-fopenloc.c: Use test-skeleton.c.
22649
22650         * stdlib/tst-bsearch.c: Use test-skeleton.c.
22651         (entry): Rename to ITEM.
22652         (do_test, comp): Adjust.
22653
22654         * stdio-common/tst-fseek.c: Use test-skeleton.c.
22655
22656 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22657
22658         * string/tester.c: Include <libc-internal.h>.
22659         (test_memset): Ignore -Wmemset-transposed-args.
22660
22661 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22662
22663         * misc/tst-mntent2.c (do_test): Fix warning.
22664
22665 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22666
22667         * elf/tst-unique4lib.cc(a): Mark as used.
22668
22669 2014-12-16  Florian Weimer  <fweimer@redhat.com>
22670
22671         [BZ #17630]
22672         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
22673         names.
22674
22675 2014-12-16  Allan McRae  <allan@archlinux.org>
22676
22677         * stdio-common/Makefile (tests): Re-add bug26.
22678
22679 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
22680
22681         [BZ #17657]
22682         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
22683         static array.
22684
22685 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
22686
22687         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
22688         (__lll_lock_wait): Likewise.
22689         (__lll_timedlock_wait): Likewise.
22690         (__lll_timedwait_tid): Likewise.
22691         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
22692         (__lll_robust_timedlock_wait): Likewise.
22693         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
22694         (lll_cond_trylock): Likewise.
22695         (__lll_lock): Likewise.
22696         (__lll_robust_lock): Likewise.
22697         (__lll_cond_lock): Likewise.
22698         (lll_robust_cond_lock): Likewise.
22699         (__lll_timedlock): Likewise.
22700         (__lll_robust_timedlock): Likewise.
22701         (__lll_unlock): Likewise.
22702         (__lll_robust_unlock): Likewise.
22703         (lll_wait_tid): Likewise.
22704         (lll_timedwait_tid): Likewise.
22705
22706 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22707
22708         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
22709
22710 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22711
22712         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
22713
22714 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
22715
22716         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
22717         * stdio-common/tst-sprintf.c: Likewise.
22718
22719 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22720
22721         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
22722
22723 2014-12-15  Jeff Law  <law@redhat.com>
22724
22725         [BZ #16617]
22726         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
22727         on the heap.  (CVE-2012-3406)
22728         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
22729         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
22730         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
22731
22732 2014-12-15  Will Newton  <will.newton@linaro.org>
22733
22734         * manual/install.texi: Bump required version of texinfo
22735         to 4.7 from 4.5.
22736         * INSTALL: Regenerated.
22737         * configure.ac: Check for makeinfo version 4.7 and above.
22738         * configure: Regenerated.
22739
22740 2014-12-12  Roland McGrath  <roland@hack.frob.com>
22741
22742         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
22743         PREFIX, string constant to insert between directory and name.
22744         * sysdeps/posix/shm_open.c: Update caller.
22745         * sysdeps/posix/shm_unlink.c: Likewise.
22746         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
22747         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
22748         (SEM_SHM_PREFIX): New macro.
22749         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
22750         [$(have-thread-library) = no].
22751         * nptl/Makefile (libpthread-routines): Add shm-directory.
22752         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
22753         * sysdeps/nptl/shm-directory.h: New file.
22754         * sysdeps/posix/shm-directory.c
22755         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
22756         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
22757         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
22758         INTERNAL_SYSCALL.
22759         (__where_is_shmfs): Function removed.
22760         (mountpoint, defaultmount, defaultdir, __namedsem_once):
22761         Variables removed.
22762         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
22763         Use SHM_GET_NAME.
22764         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
22765
22766         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
22767         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
22768         unconditional for use inside libpthread.
22769         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
22770
22771 2014-12-12  Roland McGrath  <roland@hack.frob.com>
22772
22773         * nptl/pthread_getaffinity.c: New file.
22774         * nptl/pthread_setaffinity.c: New file.
22775         * nptl/pthread_getname.c: New file.
22776         * nptl/pthread_setname.c: New file.
22777
22778         * nptl/pthread_create.c (START_THREAD_DEFN)
22779         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
22780
22781 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22782             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22783
22784         * resolv/res_send.c (send_vc): Disable warning resplen may
22785         be used uninitialized.
22786
22787 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22788
22789         * nptl/tst-mutex6.c
22790         (ATTR_NULL): New define checks ATTR against NULL.
22791         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
22792         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
22793
22794 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
22795
22796         [BZ #17581]
22797         * malloc/hooks.c
22798         (mem2mem_check): Revert my previous change.
22799         (malloc_check_get_size): Revert my previous change.
22800         (mem2chunk_check): Revert my previous change.
22801
22802 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22803
22804         * sysdeps/posix/shm-directory.c: New file.
22805         * sysdeps/posix/shm-directory.h: New file.
22806         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
22807         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
22808         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
22809         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
22810         Transmute EPERM to EACCES.
22811         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
22812         from ...
22813         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
22814         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
22815
22816 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22817
22818         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
22819         pointer and cast to uintptr_t.
22820         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
22821         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
22822         Add cast to avoid warning.
22823         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
22824
22825 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
22826
22827         * nptl/semaphore.h: Move to ...
22828         * sysdeps/pthread/semaphore.h: ... here.
22829         * Makefile (installed-headers): Change nptl/semaphore.h to
22830         sysdeps/pthread/semaphore.h.
22831
22832 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22833
22834         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
22835         generated error format strings.
22836
22837         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
22838         -Wformat-extra-args warnings for scanf formats.
22839         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
22840         test of zero-length format (duh).
22841         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
22842         corner-case scanf format test.
22843         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
22844         generated fprintf format string.
22845         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
22846         corner-case sprintf format tests.
22847         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
22848         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
22849         -Wformat-extra-args warnings throughout.
22850         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
22851         (CFLAGS-scanf4.c): Likewise.
22852         (CFLAGS-scanf7.c): Likewise.
22853         (CFLAGS-tst-sprintf.c): Likewise.
22854         (CFLAGS-tst-printf.c): Likewise.
22855         (CFLAGS-tst-printfsz.c): Likewise.
22856
22857 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
22858
22859         * include/cpio.h: New file.
22860         * include/fmtmsg.h: Likewise.
22861
22862         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
22863         corresponding format argument to size_t.
22864         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
22865         arguments.
22866         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
22867         corresponding format argument to size_t.
22868         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
22869         arguments.
22870         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
22871         corresponding format argument to size_t.
22872         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
22873         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
22874         (CFLAGS-tst-mbswcs2.c): Likewise.
22875         (CFLAGS-tst-mbswcs3.c): Likewise.
22876         (CFLAGS-tst-mbswcs4.c): Likewise.
22877         (CFLAGS-tst-mbswcs5.c): Likewise.
22878         (CFLAGS-tst-trans.c): Likewise.
22879
22880 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22881
22882         * posix/regexbug1.c (main): Use "%s" format with regerror results,
22883         rather than assuming they won't contain any '%'s.
22884
22885 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
22886
22887         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
22888         inhibit_loop_to_libcall to avoid recursive calls.
22889         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
22890         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
22891
22892 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
22893
22894         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
22895         prototype.
22896
22897 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
22898
22899         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
22900         integer value instead of boolean.
22901
22902 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
22903
22904         * malloc/malloc.c: Fix powerof2 check.
22905
22906 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
22907
22908         * locale/programs/locfile.h (maybe_swap_uint32):
22909         Remove inline and add unused attribute.
22910
22911 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
22912
22913         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
22914         Truncating assembler expression to a .long expression.
22915
22916 2014-12-11  Andreas Schwab  <schwab@suse.de>
22917
22918         * elf/rtld.c (struct map_args): Constify str member.
22919         (do_preload): Constify fname argument.
22920
22921 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22922
22923         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
22924         constants definition.
22925
22926 2014-12-11  Andreas Schwab  <schwab@suse.de>
22927
22928         [BZ #16657]
22929         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
22930         FORCE_ELISION instead of DO_ELISION.
22931         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
22932         Remove.
22933         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
22934         Likewise.
22935
22936         * iconvdata/gconv-modules: Remove duplicate entry.
22937
22938 2014-12-11  Will Newton  <will.newton@linaro.org>
22939
22940         Merge gettext 0.19.3 into intl/.
22941
22942         This involves a number of cosmetic changes to comments
22943         and ANSI function definitions and prototypes throughout
22944         all the files. The gettext copyright header is used but
22945         with the date ranges taken from the glibc copy.
22946
22947         * NEWS: Add gettext merge to 2.21.
22948         * intl/bindtextdom.c: Switch to gettext copyright.
22949         Use ANSI definitions and prototypes.
22950         Use gl_* locking primitives rather than __libc_* ones.
22951         Use __builtin_expect rather than __glibc_likely/unlikely.
22952         * intl/dcgettext.c: Switch to gettext copyright.
22953         Use ANSI definitions and prototypes.
22954         * intl/dcigettext.c: Switch to gettext copyright.
22955         Use ANSI definitions and prototypes.
22956         (INTDIV0_RAISES_SIGFPE): New define.
22957         Use gl_* locking primitives rather than __libc_* ones.
22958         Include eval-plural.h instead of plural-eval.c.
22959         Use __builtin_expect rather than __glibc_likely/unlikely.
22960         * intl/dcngettext.c: Switch to gettext copyright.
22961         Use ANSI definitions and prototypes.
22962         * intl/dgettext.c: Likewise.
22963         * intl/dngettext.c: Likewise.
22964         * intl/plural-eval.c: Renamed to...
22965         * intl/eval-plural.h: ...this.
22966         * intl/explodename.c: Switch to gettext copyright.
22967         Use ANSI definitions and prototypes.
22968         (_nl_explode_name): Use strchr instead of __rawmemchr.
22969         * intl/finddomain.c: Switch to gettext copyright.
22970         Use ANSI definitions and prototypes.
22971         Use gl_* locking primitives rather than __libc_* ones.
22972         (_nl_find_domain): Use malloc rather than alloca for
22973         allocation of temporary locale name.
22974         * intl/gettext.c: Switch to gettext copyright.
22975         Use ANSI definitions and prototypes.
22976         * intl/gettextP.h: Switch to gettext copyright.
22977         Use ANSI definitions and prototypes.
22978         Use gl_* locking primitives rather than __libc_* ones.
22979         * intl/gmo.h: Switch to gettext copyright.
22980         (struct sysdep_string): Move struct segment_pair outside of
22981         struct definition.
22982         * intl/hash-string.c: Use ANSI definitions and prototypes.
22983         * intl/hash-string.h: Switch to gettext copyright.
22984         Use ANSI definitions and prototypes.
22985         * intl/l10nflist.c: Switch to gettext copyright.
22986         Use ANSI definitions and prototypes.
22987         (_nl_normalize_codeset): Avoid integer overflow.
22988         * intl/loadinfo.h: Switch to gettext copyright.
22989         Use ANSI definitions and prototypes.
22990         (LIBINTL_DLL_EXPORTED): New define.
22991         (PATH_SEPARATOR): New define.
22992         * intl/loadmsgcat.c: Switch to gettext copyright.
22993         * intl/localealias.c: Switch to gettext copyright.
22994         Use ANSI definitions and prototypes.
22995         (_nl_expand_alias): Use PATH_SEPARATOR.
22996         * intl/ngettext.c: Switch to gettext copyright.
22997         Use ANSI definitions and prototypes.
22998         * intl/plural-exp.c: Likewise.
22999         * intl/plural-exp.h: Switch to gettext copyright.
23000         Use ANSI definitions and prototypes.
23001         (struct expression): Move definition of enum operator outside
23002         of struct definition.
23003         * intl/plural.c: Regenerate.
23004         * intl/plural.y: Switch to gettext copyright.
23005         Use ANSI definitions and prototypes.
23006         Port to bison 3.0.
23007         * intl/textdomain.c: Switch to gettext copyright.
23008         Use ANSI definitions and prototypes.
23009         Use gl_* locking primitives rather than __libc_* ones.
23010
23011 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
23012
23013         * debug/warning-nop.c: Add used atrribute.
23014
23015 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23016
23017         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
23018
23019         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
23020         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
23021         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
23022
23023 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23024             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23025
23026         [BZ #17634]
23027         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
23028         Undefine after defining function.  Define as weak alias of
23029         __wcschr.  Use libc_hidden_weak.
23030         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
23031         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
23032         (libc_hidden_def): Also define __GI___wcschr alias.
23033         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
23034         __wcschr and define as weak alias of __wcschr.
23035         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
23036         __wcschr.
23037         [!WCSCHR] (DEFAULT_WCSCHR): Define.
23038         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
23039         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
23040         libc_hidden_weak.  Do not use libc_hidden_def.
23041         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
23042         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
23043         __GI___wcschr alias.
23044         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
23045         [IS_IN (libc)] (wcschr): Define as macro expanding to
23046         __redirect_wcschr.
23047         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
23048         [IS_IN (libc)] (__wcschr_power6): Likewise.
23049         [IS_IN (libc)] (__wcschr_power7): Likewise.
23050         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
23051         instead of wcschr.
23052         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
23053         __libc_wcschr.
23054         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
23055         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
23056         __wcschr and define as weak alias of __wcschr.  Use
23057         libc_hidden_builtin_def.
23058         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
23059         as weak alias of __wcschr.  Use libc_hidden_weak.
23060         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
23061         wcschr.
23062         * time/era.c (_nl_init_era_entries): Likewise.
23063         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
23064         variable.
23065         (test-xfail-XPG3/time.h/linknamespace): Likewise.
23066         (test-xfail-XPG4/time.h/linknamespace): Likewise.
23067
23068 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23069
23070         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
23071         format for long int variable.
23072
23073 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
23074
23075         [BZ #10672]
23076         * manual/search.texi: (Array Sort Function): Remove claim how to make
23077         qsort stable.
23078
23079 2014-12-10  Andreas Schwab  <schwab@suse.de>
23080
23081         [BZ #12847]
23082         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
23083         user-controlled locks.
23084
23085 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
23086
23087         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
23088         register.
23089
23090 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23091
23092         * configure.ac (--disable-werror): New configure option.
23093         (enable_werror): New AC_SUBST.
23094         * configure: Regenerated.
23095         * config.make.in (enable-werror): New variable.
23096         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
23097         -Wno-error=undef.
23098         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
23099         * manual/install.texi (Configuring and compiling): Document
23100         --disable-werror.
23101         * INSTALL: Regenerated.
23102         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
23103         (CFLAGS-tst-chk2.c): Likewise.
23104         (CFLAGS-tst-chk3.c): Likewise.
23105         (CFLAGS-tst-chk4.cc): Likewise.
23106         (CFLAGS-tst-chk5.cc): Likewise.
23107         (CFLAGS-tst-chk6.cc): Likewise.
23108         (CFLAGS-tst-lfschk1.c): Likewise.
23109         (CFLAGS-tst-lfschk2.c): Likewise.
23110         (CFLAGS-tst-lfschk3.c): Likewise.
23111         (CFLAGS-tst-lfschk4.cc): Likewise.
23112         (CFLAGS-tst-lfschk5.cc): Likewise.
23113         (CFLAGS-tst-lfschk6.cc): Likewise.
23114
23115         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
23116         (main): Disable -Wdeprecated-declarations around calls to
23117         register_printf_function.
23118
23119         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
23120         (do_test): Disable -Wdiv-by-zero around some calls to
23121         fwrite_unlocked and fread_unlocked.
23122
23123         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
23124         (DIAG_POP_NEEDS_COMMENT): Likewise.
23125         (_DIAG_STR1): Likewise.
23126         (_DIAG_STR): Likewise.
23127         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
23128         * stdio-common/bug21.c: Include <libc-internal.h>.
23129         (do_test): Disable -Wformat around call to sscanf.
23130         * stdio-common/scanf14.c: Include <libc-internal.h>.
23131         (main): Disable -Wformat around some calls to scanf functions.
23132
23133 2014-12-09  Torvald Riegel  <triegel@redhat.com>
23134
23135         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
23136
23137 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23138
23139         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
23140         stack variable alignment.
23141
23142 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
23143
23144         [BZ #17682]
23145         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
23146         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
23147         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
23148         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
23149         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
23150         __getrlimit instead of getrlimit.
23151         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
23152         __gettimeofday instead of gettimeofday.
23153         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23154         Likewise.
23155         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
23156         Likewise.
23157         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
23158         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
23159         Remove variable.
23160         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
23161         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
23162
23163 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23164
23165         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
23166         for wide-character tests.
23167
23168 2014-12-04  Roland McGrath  <roland@hack.frob.com>
23169
23170         * io/openat64.c: #include <libc-internal.h>
23171         (__openat64): Prototypify.  Use ignore_value on MODE.
23172         * io/openat.c: Likewise.
23173         * misc/reboot.c: #include <libc-internal.h>
23174         (reboot): Prototypify.  Use ignore_value on HOWTO.
23175         * misc/ptrace.c: #include <libc-internal.h>
23176         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
23177
23178 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
23179
23180         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
23181         XPG4, UNIX98 and XOPEN2K.
23182         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
23183         Remove variable.
23184         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
23185
23186 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23187
23188         * libio/fileops.c: Use ISO C style for function definitions.
23189         * libio/iofopen.c: Likewise.
23190         * libio/wfileops.c: Likewise.
23191
23192         [BZ #17653]
23193         * libio/fileops.c (_IO_new_file_underflow): Unset cached
23194         offset on EOF.
23195         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
23196         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
23197         (fgets_func): Function pointer to fgets and fgetws.
23198         (do_ftell_test): Add test to verify ftell value after read
23199         EOF.
23200         (do_test): Set fgets_func.
23201
23202         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
23203         O_TRUNC flag for w and w+ modes.
23204         (do_rewind_test): Likewise.
23205         (do_ftell_test): Likewise.
23206         (do_write_test): Likewise.
23207
23208         [BZ #17647]
23209         * libio/fileops.c (do_ftell): Seek only when there are
23210         unflushed writes.
23211         * libio/wfileops.c (do_ftell_wide): Likewise.
23212         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
23213         test case.
23214         (do_one_test): Call it.
23215
23216 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
23217
23218         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
23219         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
23220         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
23221         Remove variable.
23222         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
23223         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
23224         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
23225
23226 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23227
23228         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
23229         Remove variable.
23230         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
23231
23232         [BZ #17668]
23233         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
23234         as weak alias of __getifaddrs.  Use libc_hidden_weak.
23235         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23236         __freeifaddrs.  Use libc_hidden_weak.
23237         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
23238         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
23239         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23240         __freeifaddrs.  Use libc_hidden_weak.
23241         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
23242         __getifaddrs and define as weak alias of __getifaddrs.  Use
23243         libc_hidden_weak.
23244         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23245         __freeifaddrs.  Use libc_hidden_weak.
23246         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
23247         Remove variable.
23248         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
23249         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
23250
23251 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23252
23253         [BZ #17601]
23254         * sysdeps/mips/start.S (__start): Use indirect jump to call
23255         __libc_start_main.
23256
23257 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23258
23259         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
23260
23261         * nptl/tst-mutex1.c: Include <stdbool.h>.
23262         [!ATTR] (ATTR_NULL): New macro.
23263         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
23264         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
23265         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
23266
23267         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
23268         to char *.
23269
23270         [BZ #17665]
23271         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
23272         Change conditional to [__USE_MISC].
23273
23274         [BZ #17664]
23275         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
23276         fgets_unlocked.
23277         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
23278         __fgets_unlocked.
23279         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
23280         fgets_unlocked.
23281         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
23282         Remove variable.
23283         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
23284         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
23285         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
23286         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
23287         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
23288         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
23289         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
23290         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
23291         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
23292
23293         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
23294
23295 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23296
23297         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23298         Remove strpbrk objects.
23299         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23300         (__libc_ifunc_impl_list): Remove strpbrk implementation.
23301         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
23302         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
23303         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
23304         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
23305
23306         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23307         Remove strcspn objects.
23308         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23309         (__libc_ifunc_impl_list): Remove strcspn implementation.
23310         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
23311         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
23312         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
23313         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
23314
23315         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23316         Remove strspn objetcs.
23317         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23318         (__libc_ifunc_impl_list): Remove strspn implementation.
23319         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
23320         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23321         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
23322         * sysdeps/powerpc/powerpc64/strspn.S: New file.
23323
23324 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
23325
23326         [BZ #17581]
23327         * malloc/hooks.c
23328         (mem2mem_check): Add a terminator to the chain of checking blocks.
23329         (malloc_check_get_size): Use it here.
23330         (mem2chunk_check): Ditto.
23331
23332 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23333
23334         * sysdeps/powerpc/powerpc64/strtok.S: New file.
23335         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
23336
23337 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
23338
23339         * bits/ioctl-types.h: Indent preprocessor directives correctly.
23340
23341         * nptl/nptl-init.c: Include libc-internal.h.
23342         (__pthread_initialize_minimal_internal): Use ROUND_UP.
23343
23344         * elf/ldconfig.c (search_dir): Expand comment.
23345
23346 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
23347
23348         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
23349         variable.
23350         (linknamespace-symlist-stdlibs-tests): Likewise.
23351         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
23352         instead of $(objpfx)symlist-stdlibs.
23353         (linknamespace-libs-isoc): New variable.
23354         (linknamespace-libs): Use $(linknamespace-libs-isoc).
23355         (linknamespace-libs-ISO): New variable.
23356         (linknamespace-libs-ISO99): Likewise.
23357         (linknamespace-libs-ISO11): Likewise.
23358         (linknamespace-libs-XPG3): Likewise.
23359         (linknamespace-libs-XPG4): Likewise.
23360         (linknamespace-libs-POSIX): Likewise.
23361         (linknamespace-libs-UNIX98): Likewise.
23362         (linknamespace-libs-XOPEN2K): Likewise.
23363         (linknamespace-libs-POSIX2008): Likewise.
23364         (linknamespace-libs-XOPEN2K8): Likewise.
23365         ($(objpfx)symlist-stdlibs): Replace by
23366         $(linknamespace-symlist-stdlibs-tests).  Use
23367         $(linknamespace-libs-$*) as set of libraries.
23368         ($(linknamespace-header-tests)): Update dependencies.  Use
23369         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
23370         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
23371         * conform/linknamespace.pl: Remove comment about considering
23372         definitions of symbols from irrelevant libraries.
23373
23374 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
23375
23376         [BZ #13862]
23377         * elf/dl-tls.c: Include <atomic.h>.
23378         (oom): Remove #ifdef SHARED/#endif.
23379         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
23380         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
23381         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
23382         big enough.
23383         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
23384         * nptl/Makefile (tests): Add tst-stack4.
23385         (modules-names): Add tst-stack4mod.
23386         ($(objpfx)tst-stack4): New.
23387         (tst-stack4mod.sos): Likewise.
23388         ($(objpfx)tst-stack4.out): Likewise.
23389         ($(tst-stack4mod.sos)): Likewise.
23390         (clean): Likewise.
23391         * nptl/tst-stack4.c: New file.
23392         * nptl/tst-stack4mod.c: Likewise.
23393
23394 2014-11-27  J. Brown  <jb999@gmx.de>
23395
23396         * sysdeps/x86/bits/string.h: Add recent CPUs.
23397
23398 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23399
23400         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
23401         sigblock.
23402
23403         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
23404         feof.
23405
23406         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
23407         variable.
23408
23409 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
23410
23411         * nscd/connections.c: Include libc-internal.h because of macro
23412         usage ignore_value.
23413
23414 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23415
23416         * string/bits/string3.h (__warn_memset_zero_len): Don't
23417         declare for gcc newer than 5.0.
23418         (memset): Don't test for zero-length __LEN for gcc newer than
23419         5.0.
23420
23421 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23422
23423         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
23424         size_t for %zu format.
23425
23426         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
23427         difference, not %ju.
23428
23429 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23430
23431         * include/libc-internal.h (ignore_value): New macro.
23432         * nscd/connections.c (restart): Wrap calls to setuid and setgid
23433         with ignore_value.
23434
23435         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
23436         definition.
23437
23438         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
23439         pthread_cleanup_push to void *.
23440
23441         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
23442         Undefine.
23443
23444         [BZ #16619]
23445         [BZ #16740]
23446         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
23447         instead of 1L << 52.
23448
23449         * libio/bug-rewind.c (do_test): Check fwscanf return values.
23450         * libio/bug-rewind2.c (do_test): Likewise.
23451
23452         * debug/test-stpcpy_chk-ifunc.c: Remove file.
23453         * debug/test-strcpy_chk-ifunc.c: Likewise.
23454         * wcsmbs/test-wcschr-ifunc.c: Likewise.
23455         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
23456         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
23457         * wcsmbs/test-wcslen-ifunc.c: Likewise.
23458         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
23459         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
23460         * Rules [$(multi-arch) = no] (tests): Do not filter out
23461         $(tests-ifunc).
23462         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
23463         * debug/Makefile (tests-ifunc): Remove variable.
23464         (tests): Do not add $(tests-ifunc).
23465         * wcsmbs/Makefile (tests-ifunc): Remove variable.
23466         (tests): Do not add $(tests-ifunc).
23467         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
23468         [TEST_IFUNC]: Remove conditionals.
23469         * string/test-string.h (TEST_IFUNC): Remove macro.
23470         [TEST_IFUNC]: Remove conditionals.
23471
23472         * string/test-strchr.c [!WIDE] (L): New macro.
23473         [WIDE] (L): Likewise.
23474         (check1): Use CHAR instead of char.  Use L on string and character
23475         constants.
23476
23477 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
23478
23479         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
23480         tests.
23481         * sysdeps/powerpc/bits/atomic.h
23482         (__arch_atomic_exchange_and_add_32_acq): Add definition.
23483         (__arch_atomic_exchange_and_add_32_rel): Likewise.
23484         (atomic_exchange_and_add_acq): Likewise.
23485         (atomic_exchange_and_add_rel): Likewise.
23486         * sysdeps/powerpc/powerpc32/bits/atomic.h
23487         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23488         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23489         * sysdeps/powerpc/powerpc64/bits/atomic.h
23490         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23491         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23492
23493 2014-11-26  Torvald Riegel  <triegel@redhat.com>
23494
23495         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
23496         Change synchronization of __sched_fifo_min_prio and
23497         __sched_fifo_max_prio.
23498         * nptl/pthread_mutexattr_getprioceiling.c
23499         (pthread_mutexattr_getprioceiling): Likewise.
23500         * nptl/pthread_mutexattr_setprioceiling.c
23501         (pthread_mutexattr_setprioceiling): Likewise.
23502         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23503         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
23504         Likewise.
23505
23506 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23507
23508         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
23509         void.
23510
23511 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23512
23513         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
23514         third argument const.
23515
23516 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23517
23518         fnmatch: work around GCC compiler warning bug with uninit var
23519         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
23520         This works around a bug with x86-64 GCC 4.9.2 and earlier
23521         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
23522         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
23523         used uninitialized in this function [-Wmaybe-uninitialized]".
23524
23525 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23526
23527         * posix/bug-regex31.c (main): Return RES not 0.
23528
23529 2014-11-25  Anton Blanchard <anton@samba.org>
23530
23531         * sysdeps/powerpc/bits/atomic.h
23532         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
23533
23534 2014-11-24  Sterling Augustine  <saugustine@google.com>
23535
23536         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
23537
23538 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
23539
23540         [BZ #17608]
23541         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
23542
23543 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
23544
23545         [BZ #17633]
23546         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
23547         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
23548         variable.
23549         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
23550         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
23551
23552 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23553
23554         * string/strncpy.c (strncpy): Improve performance by using memset.
23555
23556 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23557
23558         * string/strcpy.c (strcpy):
23559         Improve performance by using strlen and memcpy.
23560
23561 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
23562
23563         * string/strcoll_l.c (get_next_seq): __always_inline.
23564         * string/strcoll_l.c (do_compare): __always_inline.
23565
23566 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
23567
23568         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
23569         defined.
23570         * include/mqueue.h: Likewise.
23571         * include/stdlib.h: Likewise.
23572
23573         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
23574         (get_null_defines): Adjust.
23575         * sunrpc/Makefile: Adjust comment.
23576         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
23577         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
23578         (CFLAGS-interp.c): Likewise.
23579         (CFLAGS-ldconfig.c): Likewise.
23580         (CPPFLAGS-.os): Likewise.
23581         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
23582         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
23583         * extra-modules.mk (extra-modules.mk): Likewise.
23584         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
23585         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
23586         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
23587         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
23588         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
23589         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
23590         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
23591         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
23592         * iconvdata/Makefile (CPPFLAGS): Likewise.
23593         (cpp-srcs-left): Add libof for all iconvdata routines.
23594         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
23595         * include/assert.h: Likewise.
23596         * include/ctype.h: Likewise.
23597         * include/errno.h: Likewise.
23598         * include/libc-symbols.h: Likewise.
23599         * include/math.h: Likewise.
23600         * include/netdb.h: Likewise.
23601         * include/resolv.h: Likewise.
23602         * include/stdio.h: Likewise.
23603         * include/stdlib.h: Likewise.
23604         * include/string.h: Likewise.
23605         * include/sys/stat.h: Likewise.
23606         * include/wctype.h: Likewise.
23607         * intl/l10nflist.c: Likewise.
23608         * libidn/idn-stub.c: Likewise.
23609         * libio/libioP.h: Likewise.
23610         * nptl/libc_multiple_threads.c: Likewise.
23611         * nptl/pthreadP.h: Likewise.
23612         * posix/regex_internal.h: Likewise.
23613         * resolv/res_hconf.c: Likewise.
23614         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
23615         * sysdeps/arm/memmove.S: Likewise.
23616         * sysdeps/arm/sysdep.h: Likewise.
23617         * sysdeps/generic/_itoa.h: Likewise.
23618         * sysdeps/generic/symbol-hacks.h: Likewise.
23619         * sysdeps/gnu/errlist.awk: Likewise.
23620         * sysdeps/gnu/errlist.c: Likewise.
23621         * sysdeps/i386/i586/memcpy.S: Likewise.
23622         * sysdeps/i386/i586/memset.S: Likewise.
23623         * sysdeps/i386/i686/memcpy.S: Likewise.
23624         * sysdeps/i386/i686/memmove.S: Likewise.
23625         * sysdeps/i386/i686/mempcpy.S: Likewise.
23626         * sysdeps/i386/i686/memset.S: Likewise.
23627         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
23628         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
23629         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
23630         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
23631         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
23632         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
23633         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
23634         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
23635         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
23636         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
23637         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
23638         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
23639         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
23640         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
23641         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
23642         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
23643         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
23644         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
23645         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
23646         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
23647         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
23648         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
23649         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
23650         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
23651         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
23652         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
23653         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
23654         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
23655         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
23656         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
23657         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
23658         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
23659         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
23660         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
23661         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
23662         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
23663         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
23664         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
23665         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
23666         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
23667         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
23668         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
23669         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
23670         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
23671         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
23672         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
23673         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
23674         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
23675         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
23676         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
23677         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
23678         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
23679         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
23680         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
23681         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
23682         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
23683         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
23684         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
23685         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
23686         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
23687         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
23688         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
23689         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
23690         * sysdeps/nptl/bits/libc-lock.h: Likewise.
23691         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
23692         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
23693         * sysdeps/posix/closedir.c: Likewise.
23694         * sysdeps/posix/opendir.c: Likewise.
23695         * sysdeps/posix/readdir.c: Likewise.
23696         * sysdeps/posix/rewinddir.c: Likewise.
23697         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
23698         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
23699         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
23700         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
23701         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
23702         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
23703         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
23704         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
23705         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
23706         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
23707         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
23708         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
23709         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
23710         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
23711         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
23712         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
23713         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
23714         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
23715         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
23716         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
23717         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
23718         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
23719         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
23720         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
23721         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
23722         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
23723         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
23724         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
23725         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
23726         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
23727         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
23728         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
23729         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
23730         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
23731         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
23732         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
23733         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
23734         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
23735         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
23736         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
23737         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
23738         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
23739         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
23740         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23741         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
23742         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
23743         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
23744         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
23745         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
23746         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
23747         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
23748         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
23749         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
23750         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
23751         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
23752         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
23753         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
23754         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
23755         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
23756         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
23757         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23758         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
23759         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
23760         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
23761         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
23762         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23763         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
23764         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
23765         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
23766         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
23767         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23768         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
23769         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
23770         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
23771         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
23772         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
23773         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
23774         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
23775         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23776         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
23777         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
23778         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
23779         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
23780         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
23781         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
23782         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
23783         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
23784         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
23785         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
23786         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
23787         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
23788         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
23789         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
23790         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
23791         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
23792         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
23793         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
23794         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
23795         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
23796         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
23797         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23798         * sysdeps/unix/alpha/sysdep.S: Likewise.
23799         * sysdeps/unix/alpha/sysdep.h: Likewise.
23800         * sysdeps/unix/make-syscalls.sh: Likewise.
23801         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23802         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23803         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23804         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
23805         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23806         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
23807         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
23808         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
23809         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
23810         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
23811         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
23812         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
23813         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23814         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
23815         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
23816         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
23817         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23818         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
23819         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
23820         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
23821         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
23822         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
23823         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
23824         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
23825         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
23826         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
23827         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
23828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
23829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
23830         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
23831         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
23832         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
23833         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
23834         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23835         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
23836         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
23837         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
23838         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23839         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
23840         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
23841         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23842         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
23843         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23844         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
23845         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
23846         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
23847         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23848         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
23849         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
23850         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23851         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
23852         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
23853         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
23854         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
23855         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
23856         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
23857         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
23858         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23859         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
23860         * sysdeps/x86_64/memcpy.S: Likewise.
23861         * sysdeps/x86_64/memmove.c: Likewise.
23862         * sysdeps/x86_64/memset.S: Likewise.
23863         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
23864         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
23865         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
23866         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
23867         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
23868         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
23869         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
23870         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
23871         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
23872         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
23873         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
23874         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
23875         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
23876         * sysdeps/x86_64/multiarch/memset.S: Likewise.
23877         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
23878         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
23879         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
23880         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
23881         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
23882         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
23883         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
23884         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
23885         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
23886         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
23887         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
23888         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
23889         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
23890         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
23891         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
23892         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
23893         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
23894         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
23895         * sysdeps/x86_64/strcmp.S: Likewise.
23896
23897         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
23898
23899         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
23900         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
23901         * elf/rtld-Rules: Likewise.
23902         * elf/setup-vdso.h: Likewise.
23903         * include/assert.h: Likewise.
23904         * include/bits/stdlib-float.h: Likewise.
23905         * include/errno.h: Likewise.
23906         * include/sys/stat.h: Likewise.
23907         * include/unistd.h: Likewise.
23908         * sysdeps/aarch64/setjmp.S: Likewise.
23909         * sysdeps/alpha/setjmp.S: Likewise.
23910         * sysdeps/arm/__longjmp.S: Likewise.
23911         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
23912         * sysdeps/arm/setjmp.S: Likewise.
23913         * sysdeps/arm/sysdep.h: Likewise.
23914         * sysdeps/generic/_itoa.h: Likewise.
23915         * sysdeps/generic/dl-sysdep.h: Likewise.
23916         * sysdeps/generic/ldsodefs.h: Likewise.
23917         * sysdeps/i386/dl-tls.h: Likewise.
23918         * sysdeps/i386/setjmp.S: Likewise.
23919         * sysdeps/m68k/setjmp.c: Likewise.
23920         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
23921         * sysdeps/mach/hurd/opendir.c: Likewise.
23922         * sysdeps/posix/getcwd.c: Likewise.
23923         * sysdeps/posix/opendir.c: Likewise.
23924         * sysdeps/posix/profil.c: Likewise.
23925         * sysdeps/powerpc/dl-procinfo.h: Likewise.
23926         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
23927         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
23928         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
23929         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
23930         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
23931         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
23932         * sysdeps/s390/dl-tls.h: Likewise.
23933         * sysdeps/s390/s390-32/setjmp.S: Likewise.
23934         * sysdeps/s390/s390-64/setjmp.S: Likewise.
23935         * sysdeps/sh/sh3/setjmp.S: Likewise.
23936         * sysdeps/sh/sh4/setjmp.S: Likewise.
23937         * sysdeps/unix/alpha/sysdep.h: Likewise.
23938         * sysdeps/unix/arm/sysdep.S: Likewise.
23939         * sysdeps/unix/i386/sysdep.S: Likewise.
23940         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23941         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
23942         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
23943         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
23944         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23945         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
23946         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
23947         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23948         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
23949         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
23950         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
23951         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
23952         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
23953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
23954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23955         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
23956         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23957         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23958         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23959         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23960         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
23961         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23962         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23963         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
23964         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
23965         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
23966         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23967         * sysdeps/unix/x86_64/sysdep.S: Likewise.
23968         * sysdeps/x86_64/setjmp.S: Likewise.
23969
23970         * include/math.h: Use IS_IN instead of IS_IN_libm.
23971         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
23972         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
23973         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
23974         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
23975         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
23976         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
23977         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
23978         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
23979         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
23980         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
23981         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
23982         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
23983         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
23984         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
23985         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
23986         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
23987         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
23988         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
23989         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
23990         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
23991         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
23992         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
23993         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
23994         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
23995         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
23996         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
23997         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
23998         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
23999         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
24000         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
24001         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
24002         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
24003         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
24004         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
24005         Likewise.
24006         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
24007         Likewise.
24008         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
24009         Likewise.
24010         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
24011         Likewise.
24012         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
24013         Likewise.
24014         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
24015         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
24016         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
24017         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
24018         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
24019         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
24020         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
24021         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
24022         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
24023         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
24024         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
24025         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
24026         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
24027         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
24028         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
24029         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
24030         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
24031         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
24032         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
24033         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
24034         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
24035         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
24036         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
24037         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
24038         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
24039         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
24040         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
24041
24042         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
24043         * nptl/pthreadP.h: Likewise.
24044         * nptl_db/structs.def: Likewise.
24045         * sysdeps/arm/sysdep.h: Likewise.
24046         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24047         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24048         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
24049         * sysdeps/unix/alpha/sysdep.h: Likewise.
24050         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24051         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24052         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24053         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24054         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24055         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24056         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24057         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24058         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24059         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24060         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24061         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24062         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24063         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24064         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24066         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24067         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24068         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24069         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24070         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24071         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24072         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24073         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24074         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
24075         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24076
24077         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
24078         * nptl/pthreadP.h: Likewise.
24079         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24080         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24081         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24082         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24083         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24084         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24085         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24086         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24087         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24088         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24089         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24090         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24091         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
24092         Likewise.
24093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
24094         Likewise.
24095         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24096         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24097         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24098         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24099         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24100         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24101         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24102         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24103
24104         * dlfcn/dladdr.c: Use IS_IN.
24105         * dlfcn/dladdr1.c: Likewise.
24106         * dlfcn/dlclose.c: Likewise.
24107         * dlfcn/dlerror.c: Likewise.
24108         * dlfcn/dlinfo.c: Likewise.
24109         * dlfcn/dlmopen.c: Likewise.
24110         * dlfcn/dlopen.c: Likewise.
24111         * dlfcn/dlsym.c: Likewise.
24112         * dlfcn/dlvsym.c: Likewise.
24113
24114         * include/ifaddrs.h: Use IS_IN.
24115         * inet/check_pf.c: Likewise.
24116         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
24117         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
24118
24119         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
24120         IS_IN_ldconfig.
24121         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
24122         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
24123
24124         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
24125         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
24126         IS_IN (libc).
24127
24128         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
24129
24130         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
24131         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24132         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24133         * include/libc-symbols.h (IS_IN_LIB): New macro.
24134         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
24135         * include/netdb.h: Likewise.
24136         * include/stap-probe.h: Remove all uses of IN_LIB.
24137
24138         * Makeconfig (module-cppflags-real): Define MODULE_NAME
24139         instead of IN_MODULE.
24140         * include/libc-symbols.h (IN_MODULE): Define using
24141         MODULE_NAME.
24142         (PASTE_NAME, PASTE_NAME1): New macros.
24143         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
24144         of IN_LIB.
24145         (STAP_PROBE_ASM): Likewise.
24146
24147 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24148
24149         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
24150         __mach_init in dlopened libc.
24151
24152 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
24153
24154         * sysdeps/arm/preconfigure.ac: Delete EABI check.
24155         * sysdeps/arm/preconfigure: Regenerate.
24156
24157 2014-11-21  Roland McGrath  <roland@hack.frob.com>
24158
24159         * nptl/pthread_create.c (__pthread_create_2_1): Set
24160         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
24161         when copying values from IATTR into PD.
24162
24163 2014-11-21  Will Newton  <will.newton@linaro.org>
24164             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
24165
24166         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
24167         Refactor inline-asm.  Also add comment.
24168
24169         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
24170         ElfW macro instead of hardcoded Elf64 types.
24171         (la_aarch64_gnu_pltenter): Likewise.
24172         * sysdeps/aarch64/dl-machine.h
24173         (elf_machine_runtime_setup): Use ElfW(Addr).
24174
24175         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
24176         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
24177         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
24178         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
24179         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
24180         (R_AARCH64_TLS_DTPMOD64): Rename to ..
24181         (R_AARCH64_TLS_DTPMOD): This.
24182         (R_AARCH64_TLS_DTPREL64): Rename to ...
24183         (R_AARCH64_TLS_DTPREL): This.
24184         (R_AARCH64_TLS_TPREL64): Rename to ...
24185         (R_AARCH64_TLS_TPREL): This.
24186         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
24187         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
24188         R_AARCH64_TLS_TPREL64.
24189         (elf_machine_rela): Likewise.
24190
24191 2014-11-21  Torvald Riegel  <triegel@redhat.com>
24192
24193         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
24194         by setting it to 0.  64b atomics are not supported currently.
24195
24196 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24197
24198         [BZ #16469]
24199         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
24200         search domain names.
24201
24202 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24203
24204         [BZ #16469]
24205         * NEWS: Update.
24206         * resolv/res_query.c (__libc_res_nquerydomain): Retain
24207         trailing dot.
24208         * posix/tst-getaddrinfo5.c: New.
24209         * posix/Makefile (tests): Add it.
24210
24211 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24212
24213         [BZ #14498]
24214         * NEWS: Fixed.
24215         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
24216         after parsing line but before break_if_match.
24217         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
24218         if there is a protocol mismatch.
24219
24220 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
24221
24222         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
24223         because the potential race is on the user-supplied stream.
24224
24225 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24226
24227         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
24228         string literal if not passed a buffer.
24229         * manual/job.texi (ctermid): Update reasoning, note deviation
24230         from posix, suggest mtasurace when not passed a buffer, for
24231         future non-preliminary safety notes.
24232
24233 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24234
24235         * manual/users.texi (cuserid): Fix MT-Safety note for the case
24236         of not passing it a buffer.
24237         Reported by Peng Haitao.
24238
24239 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24240
24241         * manual/Makefile ($(objpfx)stamp-summary): Require
24242         check-safety.sh to pass.
24243         * manual/check-safety.sh: Wish for verification that every
24244         @deftypefn and @deftypefun is followed by a @safety remark.
24245
24246 2014-11-20  Roland McGrath  <roland@hack.frob.com>
24247
24248         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
24249
24250         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
24251         PTHREAD_CANCEL_ASYNCHRONOUS.
24252         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
24253         send SIGCANCEL.
24254
24255         * nptl/default-sched.h: New file.
24256         * sysdeps/unix/sysv/linux/default-sched.h: New file.
24257         * nptl/pthread_create.c: Include it.
24258         (__pthread_create_2_1): Use collect_default_sched instead of making
24259         Linux syscalls here directly.
24260
24261 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24262
24263         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
24264         __pthread_once): Use C11 atomics.
24265
24266 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24267
24268         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
24269
24270 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24271
24272         * include/atomic.h (__atomic_link_error, __atomic_check_size,
24273         atomic_thread_fence_acquire, atomic_thread_fence_release,
24274         atomic_thread_fence_seq_cst, atomic_load_relaxed,
24275         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
24276         atomic_compare_exchange_weak_relaxed,
24277         atomic_compare_exchange_weak_acquire,
24278         atomic_compare_exchange_weak_release,
24279         atomic_exchange_acquire, atomic_exchange_release,
24280         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
24281         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
24282         atomic_fetch_and_acquire,
24283         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
24284
24285 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24286
24287         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
24288         USE_ATOMIC_COMPILER_BUILTINS): Define.
24289         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
24290         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24291         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
24292         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24293         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
24294         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24295         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
24296         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24297         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
24298         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24299         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
24300         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24301         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
24302         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24303         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
24304         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24305         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24306         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24307         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24308         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24309         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
24310         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24311         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24312         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24313         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
24314         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24315         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24316         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24317         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
24318         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24319         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
24320         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24321         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
24322         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24323         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
24324         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24325         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
24326         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24327         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
24328         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24329
24330 2014-11-19  Roland McGrath  <roland@hack.frob.com>
24331
24332         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
24333         the sched_priority value here.  It was already checked when the user
24334         called pthread_attr_setschedparam.
24335
24336         * nptl/tst-bad-schedattr.c: New file.
24337         * nptl/Makefile (tests): Add it.
24338
24339 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
24340             Florian Weimer  <fweimer@redhat.com>
24341             Joseph Myers  <joseph@codesourcery.com>
24342             Adam Conrad  <adconrad@0c3.net>
24343             Andreas Schwab  <schwab@suse.de>
24344             Brooks  <bmoses@google.com>
24345
24346         [BZ #17625]
24347         * wordexp-test.c (__dso_handle): Add prototype.
24348         (__register_atfork): Likewise.
24349         (__app_register_atfork): New function.
24350         (registered_forks): New global.
24351         (register_fork): New function.
24352         (test_case): Add 3 new tests for WRDE_CMDSUB.
24353         (main): Call __app_register_atfork.
24354         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
24355         fork count is non-zero fail the test.
24356         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
24357         is set.
24358         (parse_dollars): Remove check for WRDE_NOCMD.
24359         (parse_dquote): Likewise.
24360
24361 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24362
24363         * Makeconfig (built-modules): List non-library modules to be
24364         built.
24365         (module-cppflags): Include libc-modules.h for
24366         everything except shlib-versions.v.i.
24367         (CPPFLAGS): Use it.
24368         (before-compile): Add libc-modules.h.
24369         ($(common-objpfx)libc-modules.h,
24370         $(common-objpfx)libc-modules.stmp): New targets.
24371         (common-generated): Add libc-modules.h and libc-modules.stmp.
24372         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
24373         * include/libc-symbols.h: Don't include libc-modules.h.
24374         * include/libc-modules.h: Remove file.
24375         * scripts/gen-libc-modules.awk: New script to generate
24376         libc-modules.h.
24377         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
24378         Depend on libc-modules.stmp.
24379
24380         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
24381
24382         * Makeconfig (in-module): Get value of libof set for the
24383         translation unit.
24384         (CPPFLAGS): Use $(in-module).
24385         * Makerules: Don't suffix routine names for nonlib.
24386         * include/libc-modules.h: New file.
24387         * include/libc-symbols.h: Include libc-modules.h
24388         (IS_IN): New macro to replace IS_IN_* macros.
24389         * elf/Makefile: Set libof-* for each routine.
24390         * elf/rtld-Rules: Likewise.
24391         * extra-modules.mk: Likewise.
24392         * iconv/Makefile: Likewise.
24393         * iconvdata/Makefile: Likewise.
24394         * locale/Makefile: Likewise.
24395         * malloc/Makefile: Likewise.
24396         * nss/Makefile: Likewise.
24397         * sysdeps/gnu/Makefile: Likewise.
24398         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
24399         * sysdeps/unix/sysv/linux/Makefile: Likewise.
24400         * sysdeps/s390/s390-64/Makefile: Likewise.
24401         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
24402         CPPFLAGS for nscd instead of nonlib.
24403
24404 2014-11-18  Roland McGrath  <roland@hack.frob.com>
24405
24406         * nptl/createthread.c: New file.
24407
24408         * nptl/createthread.c: Moved ...
24409         * sysdeps/unix/sysv/linux/createthread.c: ... here.
24410
24411         * nptl/createthread.c: Add proper top-line comment.
24412         (do_clone): Folded into ...
24413         (create_thread): ... here.  Take new arguments STOPPED_START and
24414         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
24415         increment __nptl_threads, do event-reporting logic, do
24416         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
24417         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
24418         resource cleanup if sched_setaffinity or sched_setscheduler fails,
24419         just send SIGCANCEL.
24420         * nptl/pthread_create.c: Forward-declare create_thread before
24421         including createthread.c.
24422         (start_thread): Use new macro START_THREAD_DEFN to replace defining
24423         declaration, and new macro START_THREAD_SELF to replace argument.
24424         Remove return statement.
24425         (report_thread_creation): New function.
24426         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
24427         synchronization logic, and __nptl_nthreads increment here, around
24428         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
24429         PD->parent_cancelhandling here, before create_thread.  When
24430         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
24431         __deallocate_stack, and ENOMEM translation here.
24432
24433 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
24434
24435         [BZ #17616]
24436         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
24437         (mptwo): Rename to __mptwo.
24438         (__inv): Use __mptwo instead of mptwo.
24439         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
24440         (mptwo): Rename to __mptwo.
24441         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
24442         of mpone and __mptwo instead of mptwo.
24443         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
24444         instead of mpone.
24445         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
24446         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
24447         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
24448         of mpone and __mptwo instead of mptwo.
24449         (__mpranred): Use __mpone instead of mpone.
24450         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
24451         variable.
24452         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24453         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24454         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24455         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24456         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24457         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24458         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24459         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24460         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24461         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24462         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24463         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24464         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24465         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24466         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24467         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24468         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24469         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24470         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24471
24472 2014-11-18  Tom de Vries  <tom@codesoucery.com>
24473
24474         * manual/signal.texi (Primitives Interrupted by Signals): In section,
24475         replace BSD Handler xref with BSD Signal Handling.
24476
24477 2014-11-17  Richard Henderson  <rth@redhat.com>
24478
24479         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
24480         (_FP_PACK_RAW_2): Remove.
24481         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
24482         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
24483         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
24484         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
24485         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
24486         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
24487         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
24488         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
24489         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
24490         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
24491         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
24492         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
24493         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
24494         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
24495         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
24496         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
24497
24498 2014-11-14  Roland McGrath  <roland@hack.frob.com>
24499
24500         * signal/signal.h [__USE_MISC]
24501         (struct sigvec): Remove type.
24502         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
24503         (sigvec): Remove declaration.
24504         * sysdeps/posix/sigvec.c: Moved ...
24505         * signal/sigvec.c: ... here, replacing old file.
24506         (struct sigvec): New type, copied from old signal.h definition.
24507         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
24508         (__sigvec): Convert definition to prototype.
24509         (sigvec): Replace weak_alias with compat_symbol.
24510         * signal/Versions (libc: GLIBC_2.21): New version set.
24511         * include/signal.h: Remove __sigvec declaration.
24512         * sysdeps/unix/bsd/sigvec.c: Remove file.
24513         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
24514         * manual/signal.texi (BSD Handler): Remove subsection.
24515         Move siginterrupt up to ...
24516         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
24517         (Blocking in BSD): Fold subsection into its parent.
24518         * NEWS: Mention sigvec removal.
24519
24520 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24521
24522         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
24523         (DLA_FMS): Make definition conditional only on [__FMA4__].
24524         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
24525         definition.
24526
24527         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
24528         Make definition conditional only on [PROF].
24529         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
24530         definition.
24531         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
24532         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
24533
24534         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
24535         !__GNUC__].
24536         * include/signal.h (__sigpause): Move declaration above call to
24537         libc_hidden_proto.
24538         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
24539         variable.
24540         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24541         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24542
24543 2014-11-14  David S. Miller  <davem@davemloft.net>
24544
24545         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
24546         Define before including <string/memcpy.c> and <string/mempcpy.c>.
24547
24548 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24549
24550         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
24551         * configure: Regenerated.
24552         * manual/install.texi (Tools for Compilation): Document a
24553         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
24554         compiler verified to work.
24555         * INSTALL: Regenerated.
24556
24557         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
24558         redeclare with asm name.
24559         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
24560         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
24561         including <string.h>.
24562         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24563         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
24564         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24565         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
24566         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24567         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
24568         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24569
24570 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
24571
24572         * stdlib/strtol.c (__strtol): Use prototype definition.
24573
24574         [BZ #17594]
24575         * stdlib/strtol.c (SYM__): New macro.
24576         (SYM__1): Likewise.
24577         (__strtol): Likewise.
24578         (strtol): Rename to __strtol and define as weak alias of
24579         __strtol.  Use libc_hidden_weak.
24580
24581 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24582
24583         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
24584         Use numbered labels in inline assembly.
24585
24586 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24587
24588         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
24589         Add setjmp LIBC_PROBE.
24590         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
24591         Likewise.
24592         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
24593         Add longjmp, longjmp_target LIBC_PROBE.
24594         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
24595         Likewise.
24596
24597 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24598
24599         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
24600         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
24601         to get rid of unused variable warning.
24602
24603 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24604
24605         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
24606         Check for unwind_backtrace ==  NULL only in SHARED case.
24607         (__backchain_backtrace): Compile only in SHARED case.
24608         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
24609         Likewise.
24610         (__backchain_backtrace): Declare as static.
24611
24612 2014-11-12  Roland McGrath  <roland@hack.frob.com>
24613
24614         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
24615         (__libc_multiple_threads_ptr): Variable moved ...
24616         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
24617
24618 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
24619
24620         * conform/GlibcConform.pm: New file.
24621         * conform/conformtest.pl: Use GlibcConform module.
24622         * conform/linknamespace.pl: New file.
24623         * conform/list-header-symbols.pl: Likewise.
24624         * conform/Makefile (linknamespace-symlists-base): New variable.
24625         (linknamespace-symlists-tests): Likewise.
24626         (linknamespace-header-base): Likewise.
24627         (linknamespace-header-tests): Likewise.
24628         (tests-special): Add new tests.
24629         ($(linknamespace-symlists-tests)): New rule.
24630         (linknamespace-libs): New variable.
24631         ($(objpfx)symlist-stdlibs): New rule.
24632         ($(linknamespace-header-tests)): Likewise.
24633         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
24634         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
24635         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
24636         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
24637         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
24638         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
24639         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
24640         (test-xfail-ISO/math.h/linknamespace): Likewise.
24641         (test-xfail-ISO/signal.h/linknamespace): Likewise.
24642         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
24643         (test-xfail-ISO/time.h/linknamespace): Likewise.
24644         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24645         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
24646         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24647         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24648         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
24649         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24650         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24651         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
24652         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24653         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24654         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
24655         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24656         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
24657         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
24658         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
24659         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24660         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
24661         (test-xfail-XPG3/search.h/linknamespace): Likewise.
24662         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
24663         (test-xfail-XPG3/time.h/linknamespace): Likewise.
24664         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
24665         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
24666         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
24667         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
24668         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
24669         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
24670         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
24671         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
24672         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24673         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
24674         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
24675         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
24676         (test-xfail-XPG4/search.h/linknamespace): Likewise.
24677         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
24678         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
24679         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
24680         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
24681         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
24682         (test-xfail-XPG4/time.h/linknamespace): Likewise.
24683         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
24684         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
24685         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
24686         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
24687         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
24688         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24689         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
24690         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
24691         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
24692         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
24693         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
24694         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
24695         (test-xfail-POSIX/time.h/linknamespace): Likewise.
24696         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
24697         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
24698         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
24699         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
24700         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
24701         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
24702         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
24703         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
24704         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
24705         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24706         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
24707         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
24708         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
24709         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
24710         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
24711         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
24712         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
24713         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
24714         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
24715         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
24716         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
24717         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
24718         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
24719         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
24720         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
24721         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
24722         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
24723         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
24724         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24725         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
24726         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
24727         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
24728         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
24729         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
24730         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
24731         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24732         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
24733         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
24734         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
24735         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
24736         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
24737         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
24738         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
24739         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
24740         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
24741         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
24742         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
24743         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
24744         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
24745         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
24746         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
24747         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24748         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
24749         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
24750         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
24751         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
24752         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
24753         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24754         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
24755         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
24756         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
24757         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
24758         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24759         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
24760         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
24761         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
24762         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
24763         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
24764         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
24765         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
24766         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
24767         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
24768         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24769         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
24770         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
24771         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
24772         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24773         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
24774         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
24775         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
24776         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
24777         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
24778         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24779         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
24780         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
24781         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
24782         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
24783         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
24784         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
24785         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
24786         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
24787         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
24788         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
24789         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
24790         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
24791         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24792         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
24793         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
24794
24795         [BZ #17589]
24796         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
24797         of fgets_unlocked.
24798
24799         [BZ #17585]
24800         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
24801         (memmem): Rename to __memmem and define as weak alias of
24802         __memmem.  Use libc_hidden_weak.
24803         (__memmem): Use libc_hidden_def.
24804         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
24805         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
24806         memmem.
24807
24808         [BZ #17582]
24809         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
24810         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
24811         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
24812         and define as weak alias of __fgets_unlocked.  Use
24813         libc_hidden_weak.
24814         (__fgets_unlocked): Use libc_hidden_def.
24815         * include/stdio.h (__fgets_unlocked): Declare.  Use
24816         libc_hidden_proto.
24817         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
24818         __fgets_unlocked instead of fgets_unlocked.
24819         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
24820         (GET_NPROCS_CONF_PARSER): Likewise.
24821         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
24822         (GET_NPROCS_CONF_PARSER): Likewise.
24823
24824         [BZ #17574]
24825         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
24826         weak alias of __wmemset.  Use libc_hidden_weak.
24827         (__wmemset): Use libc_hidden_def.
24828         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
24829         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
24830         of wmemset.
24831
24832         [BZ #17573]
24833         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
24834         with asm name __mempcpy.
24835         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
24836
24837         [BZ #17572]
24838         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
24839         and define as weak alias of __rawmemchr.
24840         (__rawmemchr): Do not define as strong alias of rawmemchr.
24841
24842         [BZ #17571]
24843         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
24844         alias of __qsort_r.
24845         (qsort): Call __qsort_r instead of qsort_r.
24846         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
24847         (__qsort_r): Declare.  Call libc_hidden_proto.
24848         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
24849         instead of qsort_r.
24850         * nscd/gai.c (__qsort_r): Define to qsort_r.
24851         * posix/tst-rfc3484.c (__qsort_r): Likewise.
24852         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
24853         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
24854
24855         [BZ #17570]
24856         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
24857         define as weak alias of __malloc_info.
24858
24859         [BZ #17584]
24860         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
24861         as weak alias of __rewinddir.  Don't use libc_hidden_def.
24862         (__rewinddir): Use libc_hidden_def.
24863         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
24864         as weak alias of __rewinddir.  Don't use libc_hidden_def.
24865         (__rewinddir): Use libc_hidden_def.
24866         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
24867         weak alias of __rewinddir.  Don't use libc_hidden_def.
24868         (__rewinddir): Use libc_hidden_def.
24869         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
24870         (__rewinddir): Use libc_hidden_proto.
24871         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
24872         rewinddir.
24873         (__getcwd): Use __rewinddir instead of rewinddir.
24874
24875         [BZ #17583]
24876         * libio/fileno.c (fileno): Rename to __fileno and define as weak
24877         alias of __fileno.  Use libc_hidden_weak.
24878         (__fileno): Use libc_hidden_def.
24879         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
24880         * libio/ftello.c (ftello): Rename to __ftello and define as weak
24881         alias of __ftello.
24882         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
24883         __ftello.
24884         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
24885         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
24886         libc_hidden_def.
24887         (fread_unlocked): Don't use libc_hidden_ver.
24888         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
24889         and define as weak alias of __fread_unlocked.  Don't use
24890         libc_hidden_def.
24891         (__fread_unlocked): Use libc_hidden_def.
24892         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
24893         (ftello): Don't use libc_hidden_proto.
24894         (__ftello): Declare.  Use libc_hidden_proto.
24895         (fread_unlocked): Don't use libc_hidden_proto.
24896         (__fread_unlocked): Declare.  Use libc_hidden_proto.
24897         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
24898         and __ftello instead of fileno, fread_unlocked and ftello.
24899
24900 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
24901
24902         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
24903         GOT12.
24904         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
24905         Likewise.
24906         (_dl_start_user): Likewise.
24907         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
24908
24909 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
24910             Siddhesh Poyarekar  <siddhesh@redhat.com>
24911
24912         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
24913         Move argv and envp down instead of moving argc up.
24914         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
24915
24916 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
24917
24918         [BZ #17506]
24919         * test-skeleton.c (main): Return successful if one of
24920         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
24921         * string/tst-strcoll-overflow.c: Define expected status.
24922
24923 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
24924
24925         [BZ #17475]
24926         * locale/iso-639.def: Define Bhili and Tulu language codes.
24927
24928 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
24929
24930         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
24931
24932 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
24933
24934         [BZ #17555]
24935         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
24936
24937 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
24938
24939         * configure.ac: Updated check of minimal required version to
24940         2.22.
24941         * manual/install.texi (Tools for Compilation): Updated version
24942         number.
24943         * configure: Regenerated.
24944         * INSTALL: Likewise.
24945
24946 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
24947
24948         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
24949         __tls_get_addr.
24950
24951 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
24952
24953         * include/sys/wait.h (__libc_waitpid): Remove declaration.
24954         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
24955         (__waitpid): Don't define as alias.  Use libc_hidden_def not
24956         libc_hidden_weak.
24957         (waitpid): Define as alias of __waitpid.
24958         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
24959         __waitpid.
24960         (__waitpid): Don't define as alias.  Use libc_hidden_def not
24961         libc_hidden_weak.
24962         (waitpid): Define as alias of __waitpid.
24963         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
24964         __libc_waitpid alias.
24965         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
24966         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
24967         Likewise.
24968         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
24969         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
24970         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
24971         alias.
24972         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
24973         __waitpid.
24974         (__waitpid): Don't define as alias.  Use libc_hidden_def not
24975         libc_hidden_weak.
24976         (waitpid): Define as alias of __waitpid.
24977
24978 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
24979
24980         * manual/llio.texi: Add comment that write safety has been
24981         fixed in Linux.
24982
24983         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
24984         (localplt-build-dso): Add elf/ld.so.
24985         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
24986         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
24987         and free for ld.so.
24988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
24989         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
24990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
24991         Likewise.
24992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
24993         Likewise.
24994         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
24995         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
24996         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
24997         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
24998         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
24999         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
25000         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
25001         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
25002         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
25003         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
25004         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
25005
25006 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
25007
25008         [BZ #14132]
25009         * include/libc-symbols.h (INTUSE): Remove macro.
25010         (INTDEF): Likewise.
25011         (INTVARDEF): Likewise.
25012         (_INTVARDEF): Likewise.
25013         (INTDEF2): Likewise.
25014         (INTVARDEF2): Likewise.
25015         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
25016         rtld_hidden_def instead of INTVARDEF.
25017         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
25018         (_dl_starting_up_internal): Remove declaration.
25019         (_dl_starting_up): Use rtld_hidden_proto.
25020         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
25021         declaration.
25022         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
25023         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
25024         _dl_starting_up.
25025         * elf/dl-writev.h (_dl_writev): Likewise.
25026         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
25027         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
25028         _dl_starting_up_internal.
25029
25030 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25031
25032         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
25033         test-skeleton.c.
25034
25035 2014-11-05  Will Newton  <will.newton@linaro.org>
25036
25037         * benchtests/Makefile: (bench-malloc): Add malloc thread
25038         scalability benchmark.
25039         * benchtests/bench-malloc-threads.c: New file.
25040
25041 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
25042
25043         * sysdeps/aarch64/strchrnul.S: New file.
25044
25045 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25046
25047         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
25048         definition.
25049         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
25050         Likwise.
25051         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
25052         Likewise.
25053         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
25054         Likewise.
25055         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
25056         Likewise.
25057         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
25058         Likewise.
25059
25060 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
25061
25062         * catgets/test-gencat.c: Use test-skeleton.c.
25063         * catgets/tst-catgets.c: Likewise.
25064         * csu/tst-empty.c: Likewise.
25065         * elf/tst-audit2.c: Likewise.
25066         * elf/tst-global1.c: Likewise.
25067         * elf/tst-pathopt.c: Likewise.
25068         * elf/tst-piemod1.c: Likewise.
25069         * elf/tst-tls10.c: Likewise.
25070         * elf/tst-tls11.c: Likewise.
25071         * elf/tst-tls12.c: Likewise.
25072         * gnulib/tst-gcc.c: Likewise.
25073         * iconvdata/tst-e2big.c: Likewise.
25074         * iconvdata/tst-loading.c: Likewise.
25075         * iconv/tst-iconv1.c: Likewise.
25076         * iconv/tst-iconv2.c: Likewise.
25077         * inet/test-inet6_opt.c: Likewise.
25078         * inet/tst-gethnm.c: Likewise.
25079         * inet/tst-network.c: Likewise.
25080         * inet/tst-ntoa.c: Likewise.
25081         * intl/tst-codeset.c: Likewise.
25082         * intl/tst-gettext2.c: Likewise.
25083         * intl/tst-gettext3.c: Likewise.
25084         * intl/tst-ngettext.c: Likewise.
25085         * intl/tst-translit.c: Likewise.
25086         * io/test-stat.c: Likewise.
25087         * libio/test-fmemopen.c: Likewise.
25088         * libio/tst-freopen.c: Likewise.
25089         * libio/tst-sscanf.c: Likewise.
25090         * libio/tst-ungetwc1.c: Likewise.
25091         * libio/tst-ungetwc2.c: Likewise.
25092         * libio/tst-widetext.c: Likewise.
25093         * localedata/tst-ctype.c: Likewise.
25094         * localedata/tst-digits.c: Likewise.
25095         * localedata/tst-leaks.c: Likewise.
25096         * localedata/tst-mbswcs1.c: Likewise.
25097         * localedata/tst-mbswcs2.c: Likewise.
25098         * localedata/tst-mbswcs3.c: Likewise.
25099         * localedata/tst-mbswcs4.c: Likewise.
25100         * localedata/tst-mbswcs5.c: Likewise.
25101         * localedata/tst-setlocale.c: Likewise.
25102         * localedata/tst-trans.c: Likewise.
25103         * localedata/tst-wctype.c: Likewise.
25104         * localedata/tst-xlocale1.c: Likewise.
25105         * login/tst-grantpt.c: Likewise.
25106         * malloc/tst-calloc.c: Likewise.
25107         * malloc/tst-malloc.c: Likewise.
25108         * malloc/tst-mallocstate.c: Likewise.
25109         * malloc/tst-mcheck.c: Likewise.
25110         * malloc/tst-mtrace.c: Likewise.
25111         * malloc/tst-obstack.c: Likewise.
25112         * math/atest-exp2.c: Likewise.
25113         * math/atest-exp.c: Likewise.
25114         * math/atest-sincos.c: Likewise.
25115         * math/test-matherr.c: Likewise.
25116         * math/test-misc.c: Likewise.
25117         * math/test-powl.c: Likewise.
25118         * math/tst-definitions.c: Likewise.
25119         * misc/tst-dirname.c: Likewise.
25120         * misc/tst-efgcvt.c: Likewise.
25121         * misc/tst-fdset.c: Likewise.
25122         * misc/tst-hsearch.c: Likewise.
25123         * misc/tst-mntent2.c: Likewise.
25124         * nptl/tst-sem7.c: Likewise.
25125         * nptl/tst-sem8.c: Likewise.
25126         * nptl/tst-sem9.c: Likewise.
25127         * nss/test-netdb.c: Likewise.
25128         * posix/tst-fnmatch.c: Likewise.
25129         * posix/tst-getlogin.c: Likewise.
25130         * posix/tst-gnuglob.c: Likewise.
25131         * posix/tst-mmap.c: Likewise.
25132         * pwd/tst-getpw.c: Likewise.
25133         * resolv/tst-inet_ntop.c: Likewise.
25134         * rt/tst-timer.c: Likewise.
25135         * stdio-common/test-fseek.c: Likewise.
25136         * stdio-common/test-popen.c: Likewise.
25137         * stdio-common/test-vfprintf.c: Likewise.
25138         * stdio-common/tst-cookie.c: Likewise.
25139         * stdio-common/tst-fileno.c: Likewise.
25140         * stdio-common/tst-gets.c: Likewise.
25141         * stdio-common/tst-obprintf.c: Likewise.
25142         * stdio-common/tst-perror.c: Likewise.
25143         * stdio-common/tst-sprintf2.c: Likewise.
25144         * stdio-common/tst-sprintf3.c: Likewise.
25145         * stdio-common/tst-sprintf.c: Likewise.
25146         * stdio-common/tst-swprintf.c: Likewise.
25147         * stdio-common/tst-tmpnam.c: Likewise.
25148         * stdio-common/tst-unbputc.c: Likewise.
25149         * stdio-common/tst-wc-printf.c: Likewise.
25150         * stdlib/tst-environ.c: Likewise.
25151         * stdlib/tst-fmtmsg.c: Likewise.
25152         * stdlib/tst-limits.c: Likewise.
25153         * stdlib/tst-rand48-2.c: Likewise.
25154         * stdlib/tst-rand48.c: Likewise.
25155         * stdlib/tst-random2.c: Likewise.
25156         * stdlib/tst-random.c: Likewise.
25157         * stdlib/tst-strtol.c: Likewise.
25158         * stdlib/tst-strtoll.c: Likewise.
25159         * stdlib/tst-tls-atexit.c: Likewise.
25160         * stdlib/tst-xpg-basename.c: Likewise.
25161         * string/test-ffs.c: Likewise.
25162         * string/tst-bswap.c: Likewise.
25163         * string/tst-inlcall.c: Likewise.
25164         * string/tst-strtok.c: Likewise.
25165         * string/tst-strxfrm.c: Likewise.
25166         * sysdeps/x86_64/tst-audit10.c: Likewise.
25167         * sysdeps/x86_64/tst-audit3.c: Likewise.
25168         * sysdeps/x86_64/tst-audit4.c: Likewise.
25169         * sysdeps/x86_64/tst-audit5.c: Likewise.
25170         * time/tst-ftime_l.c: Likewise.
25171         * time/tst-getdate.c: Likewise.
25172         * time/tst-mktime3.c: Likewise.
25173         * time/tst-mktime.c: Likewise.
25174         * time/tst-posixtz.c: Likewise.
25175         * time/tst-strptime2.c: Likewise.
25176         * time/tst-strptime3.c: Likewise.
25177         * wcsmbs/tst-btowc.c: Likewise.
25178         * wcsmbs/tst-mbrtowc.c: Likewise.
25179         * wcsmbs/tst-mbsrtowcs.c: Likewise.
25180         * wcsmbs/tst-wchar-h.c: Likewise.
25181         * wcsmbs/tst-wcpncpy.c: Likewise.
25182         * wcsmbs/tst-wcrtomb.c: Likewise.
25183         * wcsmbs/tst-wcsnlen.c: Likewise.
25184         * wcsmbs/tst-wcstof.c: Likewise.
25185
25186 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
25187
25188         [BZ #14132]
25189         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
25190         INTDEF.
25191         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
25192         declaration.
25193         (_dl_mcount): Use rtld_hidden_proto.
25194         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
25195         _dl_mcount.
25196         * elf/rtld.c (_rtld_global_ro): Likewise.
25197
25198         [BZ #14132]
25199         * elf/dl-init.c (_dl_init): Don't use INTDEF.
25200         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
25201         of _dl_init_internal.
25202         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
25203         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
25204         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
25205         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
25206         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
25207         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
25208         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
25209         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
25210         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
25211         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
25212         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
25213         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
25214         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
25215         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
25216         * sysdeps/tile/dl-start.S (_start): Likewise.
25217         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
25218         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
25219
25220         [BZ #14132]
25221         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
25222         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
25223         (rtld_progname): Make macro definition unconditional.
25224         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
25225         INTDEF.
25226         (dlmopen_doit): Do not use INTUSE with _dl_argv.
25227         (dl_main): Likewise.
25228         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
25229         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
25230         instead of _dl_argv_internal.
25231         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
25232         __GI__dl_argv instead of INTUSE(_dl_argv).
25233         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
25234         __GI__dl_argv instead of _dl_argv_internal.
25235
25236         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
25237         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
25238         macro.
25239         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
25240         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
25241         New macro.
25242         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
25243         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
25244         macro.
25245         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
25246         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
25247
25248 2014-11-04  Andreas Schwab  <schwab@suse.de>
25249
25250         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
25251
25252 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25253
25254         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
25255         mtvsrd instruction in binary form.
25256
25257 2014-11-03  Andreas Schwab  <schwab@suse.de>
25258
25259         [BZ #17522]
25260         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
25261         for less than MB_LEN_MAX use a local buffer of that size.
25262         * libio/tst-fputws.c: New file.
25263         * libio/Makefile (tests): Add tst-fputws.
25264
25265 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
25266
25267         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
25268         the size of the fpu_fr.fpu_dregs[] array.
25269
25270 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
25271
25272         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
25273         (__nanosleep): Do not define as alias.
25274         (nanosleep): Define as alias of __nanosleep.
25275         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
25276         __libc_nanosleep name.
25277
25278 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25279
25280         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
25281         install.texi in comment.
25282
25283 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25284
25285         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
25286         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
25287         ... add here and use lwsync or sync ...
25288         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
25289         ... and add here using lwsync.
25290
25291 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
25292
25293         * elf/dl-machine-reject-phdr.h: New file.
25294         * elf/dl-load.c: #include that.
25295         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
25296         if that returned true.
25297
25298 2014-10-31  Roland McGrath  <roland@hack.frob.com>
25299
25300         [BZ #17496]
25301         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
25302         gen-as-const-headers chunk.  Add a big scare comment after the last
25303         safe place to touch before-compile.
25304
25305 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25306
25307         * manual/install.texi (Tools for Compilation): Update autoconf
25308         version requirements.
25309         * INSTALL: Regenerated.
25310
25311         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
25312         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
25313         (__libc_pselect): Likewise.
25314
25315         [BZ #14138]
25316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
25317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
25318         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
25319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
25320
25321 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25322
25323         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
25324         correct barrier instruction.
25325         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
25326         Likewise.
25327         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
25328         Likewise.
25329
25330 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25331
25332         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
25333         after defining inlines.  Instead, just use parens to defeat macro
25334         expansion of __isctype in its declaration.
25335
25336 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25337
25338         * include/sys/uio.h (__libc_readv): Remove declaration.
25339         (__libc_writev): Likewise.
25340         * misc/readv.c (__libc_readv): Rename to __readv.
25341         (__readv): Do not define as alias.
25342         (readv): Define as alias of __readv.
25343         * misc/writev.c (__libc_writev): Rename to __writev.
25344         (__writev): Do not define as alias.
25345         (writev): Define as alias of __writev.
25346         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
25347         (__readv): Do not define as alias.
25348         (readv): Define unconditionally as alias of __readv.
25349         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
25350         (__writev): Do not define as alias.
25351         (writev): Define unconditionally as alias of __writev.
25352         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
25353         name.
25354         (writev): Do not define __libc_writev name.
25355
25356 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25357
25358         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
25359         (convert_charseq): New function, broken out of ...
25360         (use_from_charmap): ... here.  Call it.
25361         (use_to_charmap): Use convert_charseq and free instead of duplicating
25362         its code with a variable-length stack struct.
25363
25364 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25365
25366         * include/fcntl.h (__libc_creat): Remove declaration.
25367         * io/creat.c (__libc_creat): Rename to creat.
25368         (creat): Do not define as alias.
25369         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
25370         of creat instead of __libc_creat.
25371         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
25372         to creat.
25373         (creat): Do not define as alias.
25374         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
25375         __libc_creat.
25376         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
25377         __libc_creat name.
25378         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
25379         Likewise.
25380
25381 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
25382
25383         * manual/llio.texi: Add comments discussing why write() may be
25384         considered MT-unsafe on Linux.
25385
25386 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
25387
25388         * dl-load.c (local_strdup): Remove.
25389         (expand_dynamic_string_token): Use __strdup.
25390         (decompose_rpath): Likewise.
25391         (_dl_map_object): Likewise.
25392
25393 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
25394
25395         [BZ #14132]
25396         * sysdeps/generic/unwind-dw2-fde.c
25397         (__register_frame_info_bases_internal): Do not declare.
25398         (__register_frame_info_table_bases_internal): Likewise.
25399         (__deregister_frame_info_bases_internal): Likewise.
25400         (__register_frame_info_bases): Declare and use hidden_proto before
25401         definition.  Use hidden_def instead of INTDEF.
25402         (__register_frame_info_table_bases): Likewise.
25403         (__deregister_frame_info_bases): Likewise.
25404         (__register_frame_info): Do not use INTUSE.
25405         (__register_frame): Likewise.
25406         (__register_frame_info_table): Likewise.
25407         (__register_frame_table): Likewise.
25408         (__deregister_frame_info): Likewise.
25409         (__deregister_frame): Likewise.
25410
25411 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
25412
25413         * sysdeps/unix/sysv/linux/arm/kernel-features.h
25414         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
25415         not undefine.
25416         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
25417         Likewise.
25418         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
25419         Likewise.
25420
25421 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
25422
25423         [BZ #14138]
25424         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
25425         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
25426         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
25427         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
25428         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
25429         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
25430         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
25431         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
25432         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
25433         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
25434         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
25435         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
25436         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
25437         syscall.
25438         (setfsuid): Likewise.
25439         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
25440         (setfsuid): Likewise.
25441         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
25442         (setfsuid): Likewise.
25443         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
25444         Likewise.
25445         (setfsuid): Likewise.
25446         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
25447         (setfsuid): Likewise.
25448         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
25449         Likewise.
25450         (setfsuid): Likewise.
25451
25452 2014-10-27  Andreas Schwab  <schwab@suse.de>
25453
25454         [BZ #17501]
25455         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
25456         check for Slow_SSE4_2 feature bit.
25457         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
25458         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
25459         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
25460         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
25461
25462 2014-10-24  Roland McGrath  <roland@hack.frob.com>
25463
25464         * configure.ac: Validate compiler version with a empirical test of
25465         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
25466         $CC -v output.
25467         * configure: Regenerated.
25468
25469         * inet/htons.c (htons): Prototypify.
25470         * inet/htonl.c (htonl): Likewise.
25471
25472 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25473
25474         * string/strncat.c (strncat): Improve performance by using strlen.
25475
25476 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25477
25478         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
25479
25480 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25481
25482         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
25483         Call libc_fetestexcept_aarch64.
25484
25485 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25486
25487         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
25488         Call libc_feholdexcept_aarch64.
25489
25490 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25491
25492         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
25493         Call get_rounding_mode.
25494
25495 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25496
25497         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
25498         Simplify logic.
25499
25500 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25501
25502         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
25503         Simplify logic.
25504
25505 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
25506
25507         [BZ #14138]
25508         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
25509         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
25510         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
25511         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
25512         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
25513         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
25514         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
25515         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
25516         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
25517         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
25518         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
25519         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
25520         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
25521         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
25522         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
25523         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
25524         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
25525         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
25526         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
25527         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
25528         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
25529         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
25530         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
25531         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
25532         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
25533         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
25534         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
25535         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
25536         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
25537         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
25538         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
25539         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
25540         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
25541         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
25542         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
25543         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
25544         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
25545         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
25546         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
25547         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
25548         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
25549         syscall.
25550         (geteuid): Likewise.
25551         (getgid): Likewise.
25552         (getuid): Likewise.
25553         (getresgid): Likewise.
25554         (getresuid): Likewise.
25555         (getgroups): Likewise.
25556         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
25557         (geteuid): Likewise.
25558         (getgid): Likewise.
25559         (getuid): Likewise.
25560         (getresgid): Likewise.
25561         (getresuid): Likewise.
25562         (getgroups): Likewise.
25563         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
25564         (geteuid): Likewise.
25565         (getgid): Likewise.
25566         (getuid): Likewise.
25567         (getresgid): Likewise.
25568         (getresuid): Likewise.
25569         (getgroups): Likewise.
25570         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
25571         Likewise.
25572         (geteuid): Likewise.
25573         (getgid): Likewise.
25574         (getuid): Likewise.
25575         (getresgid): Likewise.
25576         (getresuid): Likewise.
25577         (getgroups): Likewise.
25578         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
25579         (geteuid): Likewise.
25580         (getgid): Likewise.
25581         (getuid): Likewise.
25582         (getresgid): Likewise.
25583         (getresuid): Likewise.
25584         (getgroups): Likewise.
25585         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
25586         Likewise.
25587         (geteuid): Likewise.
25588         (getgid): Likewise.
25589         (getuid): Likewise.
25590         (getgroups): Likewise.
25591
25592         [BZ #14138]
25593         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
25594         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
25595         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
25596         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
25597         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
25598         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
25599         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
25600         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
25601         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
25602         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
25603         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
25604         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
25605         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
25606         __chown.
25607         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
25608         (lchown): Likewise.
25609         (fchown): Likewise.
25610         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
25611         Likewise.
25612         (lchown): Likewise.
25613         (fchown): Likewise.
25614         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
25615         (lchown): Likewise.
25616         (fchown): Likewise.
25617         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
25618         Likewise.
25619         (lchown): Likewise.
25620         (fchown): Likewise.
25621
25622 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25623
25624         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
25625         Simplify logic.
25626
25627 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25628
25629         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25630         Cleanup logic.
25631
25632 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25633
25634         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25635         Remove unused include.
25636
25637 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25638
25639         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
25640         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
25641         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
25642         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
25643
25644 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
25645             Helge Deller <deller@gmx.de>
25646
25647         [BZ #17508]
25648         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
25649         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
25650         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
25651
25652 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
25653
25654         [BZ #14132]
25655         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
25656         Remove macro definition.
25657         (__ashrdi3_v_glibc20): Likewise.
25658         (__lshrdi3_v_glibc20): Likewise.
25659         (__cmpdi2_v_glibc20): Likewise.
25660         (__ucmpdi2_v_glibc20): Likewise.
25661         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
25662         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
25663         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
25664         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
25665         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
25666         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
25667
25668 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25669
25670         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
25671         old GNU extension [0] syntax.
25672         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
25673         alloca rather than an array member with variable length.
25674         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
25675         * nscd/nscd.c (invalidate_db): New function, broken out of ...
25676         (parse_opt): ... here.  Likewise use alloca there.
25677         Validate the -i argument before checking for rootness.
25678         (send_shutdown): New function, broken out of ...
25679         (parse_opt): ... here.
25680
25681 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25682
25683         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
25684         macro to get at the _rt_local_ro field.
25685         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
25686         ([PIC] case) or _dl_hwcap ([!PIC] case).
25687         * sysdeps/arm/setjmp.S: Likewise.
25688
25689         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
25690         * sysdeps/arm/configure.ac: New check to define it.
25691         * sysdeps/arm/configure: Regenerated.
25692         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
25693         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
25694         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
25695         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
25696         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
25697         Use move/movt pair instead of a load.
25698         (LDST_GLOBAL): Macro removed.
25699         (LDR_GLOBAL): New macro replaces it.
25700         (LDR_HIDDEN): New macro.
25701         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
25702         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
25703
25704         * setjmp/tst-setjmp-static.c: New file.
25705         * setjmp/Makefile (tests): Add it.
25706         (tests-static): New variable.
25707
25708 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
25709
25710         [BZ #17485]
25711         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
25712
25713 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
25714
25715         [BZ #14132]
25716         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
25717
25718 2014-10-21  Roland McGrath  <roland@hack.frob.com>
25719
25720         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
25721
25722 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25723
25724         * io/fts.c (dirent_not_directory): New function.
25725         (fts_build): Call it.
25726
25727 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25728
25729         * nptl/version.c (__nptl_main): Use normal __write rather than
25730         INTERNAL_SYSCALL.
25731         (banner): Update copyright years.
25732
25733         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
25734         gettimeofday.
25735         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
25736         * nptl/pthread_cond_timedwait.c: Likewise.
25737         * nptl/pthread_mutex_timedlock.c: Likewise.
25738         * nptl/sem_timedwait.c: Likewise.
25739
25740         * sysdeps/nptl/bits/libc-lock.h
25741         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
25742         (__libc_lock_init_recursive): Return void, not 0.
25743         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
25744         (__libc_rwlock_init): Likewise.
25745         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
25746
25747 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25748
25749         [BZ #15215]
25750         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
25751         (__pthread_once_slow): ... here.
25752         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
25753         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
25754
25755 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25756
25757         [BZ #15215]
25758         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
25759         __PTHREAD_ONCE_FORK_GEN_INCR): New.
25760         * sysdeps/nptl/fork.c (__libc_fork): Use them.
25761         * nptl/pthread_once.c (__pthread_once): Likewise.
25762         Update comments.
25763
25764 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
25765
25766         [BZ #14138]
25767         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
25768         name.
25769         (writev): Use __libc_writev as strong name.
25770         * sysdeps/unix/sysv/linux/readv.c: Remove file.
25771         * sysdeps/unix/sysv/linux/writev.c: Likewise.
25772
25773 2014-10-17  Roland McGrath  <roland@hack.frob.com>
25774
25775         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
25776
25777         * sysdeps/i386/nptl/tls.h
25778         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
25779         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
25780         New macros.
25781         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
25782         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
25783         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
25784         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
25785         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
25786         Call CHECK_THREAD_SYSINFO instead of doing an assert.
25787
25788         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25789         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
25790         on [__NR_futex].
25791         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
25792         broken out of ...
25793         (__pthread_mutex_init): ... here.  Call it.
25794         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
25795         Conditionalize PI cases on [__NR_futex].
25796         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
25797         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
25798         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
25799
25800         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
25801         conditional on [SIGSETXID].
25802         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
25803         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
25804         is defined.  Likewise for SIGSETXID.
25805         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
25806         Conditionalize definitions on [SIGSETXID].
25807         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
25808         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
25809         unblocking on [SIGCANCEL].
25810
25811         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
25812         [__NR_set_robust_list].
25813
25814 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
25815
25816         * string/strcoll_l.c (get_next_seq): Fix up formatting.
25817         (do_compare): Likewise.
25818
25819 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
25820
25821         [BZ #15884]
25822         * string/strcoll_l.c: Don't include stdio.h.
25823         (coll_seq): Remove members idxarr and rulearr.
25824         (get_next_seq_cached): Remove function.
25825         (get_next_seq): Likewise.
25826         (get_next_seq_nocache): Rename to get_next_seq.
25827         (do_compare): Remove function.
25828         (do_compare_nocache): Rename to do_compare.
25829         (STRCOLL): Remove weight and rules cache.
25830
25831 2014-10-16  Roland McGrath  <roland@hack.frob.com>
25832
25833         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
25834         * sysdeps/arm/sfp-machine.h: ... to here.
25835         * sysdeps/arm/Implies: Remove arm/soft-fp.
25836
25837 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
25838
25839         * conform/data/sys/utsname.h-data (*_t): Allow.
25840         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
25841         [POSIX] (WEXITED): Do not expect constant.
25842         [POSIX] (WSTOPPED): Likewise.
25843         [POSIX] (WNOHANG): Likewise.
25844         [POSIX] (WNOWAIT): Likewise.
25845         [POSIX] (siginfo_t): Do not expect type or elements.
25846         [POSIX] (pid_t): Do not expect type.
25847         [POSIX] (signal.h): Do not allow header.
25848         [POSIX] (sys/resource.h): Likewise.
25849         [POSIX] (si_*): Do not allow pattern.
25850         [POSIX] (W*): Likewise.
25851         [POSIX] (P_*): Likewise.
25852         [POSIX] (BUS_*): Likewise.
25853         [POSIX] (CLD_*): Likewise.
25854         [POSIX] (FPE_*): Likewise.
25855         [POSIX] (ILL_*): Likewise.
25856         [POSIX] (POLL_*): Likewise.
25857         [POSIX] (SEGV_*): Likewise.
25858         [POSIX] (SI_*): Likewise.
25859         [POSIX] (TRAP_*): Likewise.
25860         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
25861         variable.
25862
25863 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
25864
25865         [BZ #12926]
25866         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
25867         infinite loop when __recvmsg returns 0.
25868
25869 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
25870
25871         * CANCEL-FCT-WAIVE: Remove file.
25872         * CANCEL-FILE-WAIVE: Likewise.
25873
25874         [BZ #14132]
25875         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
25876         instead of INTVARDEF.
25877         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
25878         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
25879         rtld_hidden_data_def instead of INTVARDEF.
25880         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
25881         * elf/dl-deps.c (expand_dst): Likewise.
25882         * elf/dl-load.c (_dl_dst_count): Likewise.
25883         (_dl_dst_substitute): Likewise.
25884         (decompose_rpath): Likewise.
25885         (_dl_init_paths): Likewise.
25886         (open_path): Likewise.
25887         (_dl_map_object): Likewise.
25888         * elf/rtld.c (dl_main): Likewise.
25889         (process_dl_audit): Likewise.
25890         (process_envvars): Likewise.
25891         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
25892         Remove declaration.
25893         (__libc_enable_secure): Use rtld_hidden_proto.
25894
25895 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
25896
25897         * elf/dl-load.c
25898         (add_path): New function broken out of _dl_rtld_di_serinfo.
25899         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
25900
25901 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
25902
25903         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
25904         parentheses around macro arguments.
25905         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
25906         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
25907         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
25908         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
25909         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
25910         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
25911         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
25912         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
25913         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
25914         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
25915         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
25916         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
25917         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
25918         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
25919         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
25920         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
25921         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
25922         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
25923         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
25924         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
25925         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
25926         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
25927         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
25928         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
25929         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
25930         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
25931         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
25932         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
25933         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
25934         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
25935         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
25936         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
25937         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
25938         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
25939         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
25940         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
25941         Likewise.
25942         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
25943         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
25944         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
25945         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
25946         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
25947         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
25948         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
25949         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
25950         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
25951         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
25952         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
25953         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
25954         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
25955         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
25956         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
25957         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
25958         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
25959         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
25960         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
25961         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
25962         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
25963         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
25964         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
25965         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
25966         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
25967         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
25968         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
25969         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
25970         (_FP_FRAC_SRS_1): Likewise.
25971         (_FP_FRAC_CLZ_1): Likewise.
25972         (_FP_MUL_MEAT_1_imm): Likewise.
25973         (_FP_MUL_MEAT_1_wide): Likewise.
25974         (_FP_MUL_MEAT_1_hard): Likewise.
25975         (_FP_SQRT_MEAT_1): Likewise.
25976         (_FP_FRAC_ASSEMBLE_1): Likewise.
25977         (_FP_FRAC_DISASSEMBLE_1): Likewise.
25978         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
25979         (__FP_CLZ_2): Likewise.
25980         (_FP_MUL_MEAT_2_wide): Likewise.
25981         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
25982         (_FP_MUL_MEAT_2_gmp): Likewise.
25983         (_FP_MUL_MEAT_2_120_240_double): Likewise.
25984         (_FP_SQRT_MEAT_2): Likewise.
25985         (_FP_FRAC_ASSEMBLE_2): Likewise.
25986         (_FP_FRAC_DISASSEMBLE_2): Likewise.
25987         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
25988         (_FP_FRAC_CLZ_4): Likewise.
25989         (_FP_MUL_MEAT_4_wide): Likewise.
25990         (_FP_MUL_MEAT_4_gmp): Likewise.
25991         (_FP_SQRT_MEAT_4): Likewise.
25992         (_FP_FRAC_ASSEMBLE_4): Likewise.
25993         (_FP_FRAC_DISASSEMBLE_4): Likewise.
25994         * soft-fp/op-common.h (_FP_CMP): Likewise.
25995         (_FP_CMP_EQ): Likewise.
25996         (_FP_CMP_UNORD): Likewise.
25997         (_FP_TO_INT): Likewise.
25998         (_FP_FROM_INT): Likewise.
25999         [!__FP_CLZ] (__FP_CLZ): Likewise.
26000         (_FP_DIV_HELP_imm): Likewise.
26001         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
26002         Likewise.
26003         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
26004         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
26005         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
26006         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
26007         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
26008         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26009         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26010         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
26011         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
26012         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
26013         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
26014         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
26015         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
26016         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
26017         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
26018         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
26019         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
26020         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
26021         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
26022         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
26023         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
26024         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
26025         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
26026         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26027         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26028         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
26029         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
26030         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
26031         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
26032         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
26033         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
26034         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
26035         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
26036         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
26037         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
26038         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
26039         (FP_UNPACK_RAW_SP): Likewise.
26040         (FP_PACK_RAW_S): Likewise.
26041         (FP_PACK_RAW_SP): Likewise.
26042         (FP_UNPACK_S): Likewise.
26043         (FP_UNPACK_SP): Likewise.
26044         (FP_UNPACK_SEMIRAW_S): Likewise.
26045         (FP_UNPACK_SEMIRAW_SP): Likewise.
26046         (FP_PACK_S): Likewise.
26047         (FP_PACK_SP): Likewise.
26048         (FP_PACK_SEMIRAW_S): Likewise.
26049         (FP_PACK_SEMIRAW_SP): Likewise.
26050         (_FP_SQRT_MEAT_S): Likewise.
26051         (FP_CMP_S): Likewise.
26052         (FP_CMP_EQ_S): Likewise.
26053         (FP_CMP_UNORD_S): Likewise.
26054         (FP_TO_INT_S): Likewise.
26055         (FP_FROM_INT_S): Likewise.
26056
26057         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
26058
26059         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
26060         (FP_EX_INVALID_IMZ): Likewise.
26061         (FP_EX_INVALID_IMZ_FMA): Likewise.
26062         (FP_EX_INVALID_ISI): Likewise.
26063         (FP_EX_INVALID_ZDZ): Likewise.
26064         (FP_EX_INVALID_IDI): Likewise.
26065         (FP_EX_INVALID_SQRT): Likewise.
26066         (FP_EX_INVALID_CVI): Likewise.
26067         (FP_EX_INVALID_VC): Likewise.
26068         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
26069         "invalid" exceptions.
26070         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
26071         (_FP_ADD_INTERNAL): Likewise.
26072         (_FP_MUL): Likewise.
26073         (_FP_FMA): Likewise.
26074         (_FP_DIV): Likewise.
26075         (_FP_CMP_CHECK_NAN): Likewise.
26076         (_FP_SQRT): Likewise.
26077         (_FP_TO_INT): Likewise.
26078         (FP_EXTEND): Likewise.
26079
26080 2014-10-09  Allan McRae  <allan@archlinux.org>
26081
26082         * po/fr.po: Update French translation from translation project.
26083
26084 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26085
26086         [BZ #14132]
26087         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
26088         of INTDEF.
26089         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
26090         (__cxa_atexit): Use libc_hidden_proto.
26091         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
26092
26093         [BZ #14132]
26094         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
26095         declaration.
26096         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
26097         [!_ISOMAC] (__iswspace_l_internal): Likewise.
26098         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
26099         [!_ISOMAC] (__iswctype_internal): Likewise.
26100         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
26101         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
26102         alias.
26103         (fcntl): Remove __fcntl_internal alias.
26104         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
26105         __connect_internal alias.
26106         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
26107         Likewise.
26108
26109         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
26110         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
26111         FP_DENORM_ZERO.
26112         (_FP_CHECK_FLUSH_ZERO): New macro.
26113         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
26114         (_FP_CMP): Likewise.
26115         (_FP_CMP_EQ): Likewise.
26116         (_FP_TO_INT): Do not set inexact for subnormal arguments if
26117         FP_DENORM_ZERO.
26118         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
26119         (FP_TRUNC): Likewise.
26120
26121         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
26122         treated as invalid conversion, not as normal exponent.
26123
26124         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
26125         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
26126         (_FP_CMP_EQ): Likewise.
26127         (_FP_CMP_UNORD): Likewise.
26128         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
26129         (FP_CMP_EQ_D): Likewise.
26130         (FP_CMP_UNORD_D): Likewise.
26131         * soft-fp/extended.h (FP_CMP_E): Likewise.
26132         (FP_CMP_EQ_E): Likewise.
26133         (FP_CMP_UNORD_E): Likewise.
26134         * soft-fp/quad.h (FP_CMP_Q): Likewise.
26135         (FP_CMP_EQ_Q): Likewise.
26136         (FP_CMP_UNORD_Q): Likewise.
26137         * soft-fp/single.h (FP_CMP_S): Likewise.
26138         (FP_CMP_EQ_S): Likewise.
26139         (FP_CMP_UNORD_S): Likewise.
26140         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
26141         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
26142         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
26143         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
26144         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
26145         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
26146         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
26147         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
26148         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
26149         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
26150         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
26151         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
26152         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
26153         to FP_CMP_Q.
26154         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
26155         FP_CMP_Q.
26156         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
26157         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
26158         FP_CMP_EQ_Q.
26159         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
26160         FP_CMP_Q.
26161         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
26162         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
26163         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
26164         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
26165         FP_CMP_EQ_Q.
26166         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
26167         FP_CMP_Q.
26168         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
26169         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
26170         FP_CMP_EQ_Q.
26171         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
26172         FP_CMP_Q.
26173         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
26174         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
26175         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
26176         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
26177         FP_CMP_EQ_Q.
26178
26179         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
26180         a subnormal result, set the underflow exception if trapping on
26181         underflow is enabled.
26182         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
26183         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
26184         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
26185         redefine to 0.
26186         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
26187         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26188         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26189         * soft-fp/extendxftf2.c (__extendxftf2): Use
26190         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
26191
26192         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
26193         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
26194         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26195         FP_HANDLE_EXCEPTIONS.
26196         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
26197         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26198         FP_HANDLE_EXCEPTIONS.
26199         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
26200         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26201         FP_HANDLE_EXCEPTIONS.
26202         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
26203         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26204         FP_HANDLE_EXCEPTIONS.
26205
26206 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
26207
26208         [BZ #14132]
26209         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
26210         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
26211         use INTUSE.
26212         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
26213         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
26214         Remove alias.
26215         (__adjtimex): Define using libc_hidden_ver.
26216         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
26217         Remove declaration.
26218         (ntp_gettime): Call __adjtimex directly.
26219         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
26220         Remove declaration.
26221         (ntp_gettimex): Call __adjtimex directly.
26222         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
26223         __adjtimex_internal alias.
26224
26225 2014-10-08  Roland McGrath  <roland@hack.frob.com>
26226
26227         [BZ #17460]
26228         * nscd/nscd.c (more_help): Rewrite list of tables collection
26229         using xstrdup and asprintf.
26230
26231         * nscd/nscd_conf.c: Remove local xstrdup declaration.
26232
26233 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26234             Roland McGrath  <roland@hack.frob.com>
26235
26236         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
26237         (do_lookup_unique): ... local function 'enter' here; update callers.
26238
26239 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
26240
26241         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
26242         compat_symbol calls on [SHARED].
26243         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
26244         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
26245         Remove.
26246         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26247         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
26248         (oldsetrlimit): Remove.
26249         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26250         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26251         (lchown): New syscall entry.
26252         (oldsetrlimit): Remove.
26253         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26254         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
26255         (oldsetrlimit): Remove.
26256         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26257
26258         [BZ #14138]
26259         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
26260         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
26261         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
26262         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
26263         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
26264         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
26265         (fchown): Likewise.
26266         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
26267         (fchown): Likewise.
26268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
26269         Likewise.
26270
26271 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26272
26273         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
26274         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
26275         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
26276         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
26277         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
26278         Likewise.
26279         (__old_sem_post): Likewise.
26280
26281 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
26282
26283         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
26284         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
26285         HAVE_CLOCK_GETTIME_VSYSCALL macros.
26286         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
26287         Use INLINE_VSYSCALL macro.
26288         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
26289         __vdso_clock_gettime.
26290         * sysdeps/unix/sysv/linux/tile/init-first.c
26291         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
26292         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
26293         __vdso_clock_gettime.
26294
26295         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
26296         to set up frame more cleanly.
26297
26298         * sysdeps/tile/memcmp.c: New file.
26299
26300         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
26301
26302         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
26303         * sysdeps/tile/tilegx/strcasestr.c: New file.
26304         * sysdeps/tile/tilegx/strnlen.c: New file.
26305         * sysdeps/tile/tilegx/strstr.c: New file.
26306
26307         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
26308
26309 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
26310
26311         * nptl/tst-setuid3.c: Write errors to stdout.
26312
26313 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26314
26315         * elf/dl-deps.c
26316         (preload): New functions broken out of _dl_map_object_deps.
26317         (_dl_map_object_deps):  Remove a nested function. Update call sites.
26318
26319 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
26320
26321         [BZ #14138]
26322         * sysdeps/unix/sysv/linux/execve.c: Remove file.
26323         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
26324
26325 2014-10-01  Steve Ellcey  <sellcey@mips.com>
26326
26327         * sysdeps/mips/strcmp.S: New.
26328
26329 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
26330
26331         [BZ #14138]
26332         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
26333         (linkat): Likewise.
26334         (mkdirat): Likewise.
26335         (readlinkat): Likewise.
26336         (renameat): Likewise.
26337         (symlinkat): Likewise.
26338         (unlinkat): Likewise.
26339         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
26340         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
26341         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
26342         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
26343         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
26344         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
26345         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
26346
26347 2014-09-30  Will Newton  <will.newton@linaro.org>
26348
26349         * math/math.h: Define long double math functions if
26350         _LIBC_TEST is defined.
26351         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
26352
26353         * localedata/Makefile: Move assignment to tests-special
26354         into an ifdef testing run-built-tests.
26355         * timezone/Makefile: Likewise.
26356
26357 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
26358
26359         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
26360         with $(BASH) not $(SHELL).
26361
26362 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
26363             Matthew LeGendre  <legendre1@llnl.gov>
26364
26365         [BZ #17411]
26366         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
26367         l_reloc_result.
26368
26369 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26370
26371         * stdio-common/printf_fp.c
26372         (hack_digit): New function, broken out of ...
26373         (__printf_fp): ... local function here.  Update call sites.
26374         hack_digit now takes an additional parameter that is a pointer
26375         to a struct of the referenced locals.  Those locals moved inside
26376         the struct and references updated.
26377
26378 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
26379
26380         * aclocal.m4: Require autoconf 2.69.
26381         * configure: Regenerated.
26382         * sysdeps/aarch64/configure: Likewise.
26383         * sysdeps/alpha/configure: Likewise.
26384         * sysdeps/arm/armv7/configure: Likewise.
26385         * sysdeps/arm/configure: Likewise.
26386         * sysdeps/ia64/configure: Likewise.
26387         * sysdeps/mach/configure: Likewise.
26388         * sysdeps/mips/configure: Likewise.
26389         * sysdeps/s390/configure: Likewise.
26390         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
26391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
26392
26393         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
26394         file.
26395         * sysdeps/ia64/configure.ac: Likewise.
26396
26397 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
26398
26399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
26400         specify symbol version for ld.so.  Do not include entry for
26401         libpthread.
26402         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26403         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26404         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26405
26406         [BZ #14171]
26407         * Makeconfig [$(build-shared) = yes]
26408         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
26409         makefiles.
26410         [$(build-shared) = yes && $(soversions.mk-done) = t]
26411         ($(common-objpfx)gnu/lib-names.h): Remove rule.
26412         [$(build-shared) = yes && $(soversions.mk-done) = t]
26413         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
26414         to Makerules.
26415         [$(build-shared) = yes && $(soversions.mk-done) = t]
26416         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
26417         here.
26418         [$(build-shared) = yes && $(soversions.mk-done) = t]
26419         (common-generated): Don't append gnu/lib-names.h and
26420         gnu/lib-names.stmp here.
26421         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
26422         (lib-names-h-abi): New variable.
26423         [$(build-shared) = yes && $(soversions.mk-done) = t]
26424         (lib-names-stmp-abi): Likewise.
26425         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26426         abi-variants] (before-compile): Append
26427         $(common-objpfx)$(lib-names-h-abi).
26428         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26429         abi-variants] (common-generated): Append gnu/lib-names.h.
26430         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26431         abi-variants] (install-others-nosubdir): Depend on
26432         $(inst_includedir)/$(lib-names-h-abi).
26433         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26434         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
26435         [$(build-shared) = yes && $(soversions.mk-done) = t]
26436         ($(common-objpfx)$(lib-names-h-abi)): New rule.
26437         [$(build-shared) = yes && $(soversions.mk-done) = t]
26438         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
26439         [$(build-shared) = yes && $(soversions.mk-done) = t]
26440         (common-generated): Append $(lib-names-h-abi) and
26441         $(lib-names-stmp-abi).
26442         * scripts/lib-names.awk: Do not handle multi being set.
26443         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
26444         Remove variable.
26445         (abi-lp64_be-ld-soname): Likewise.
26446         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
26447         Likewise.
26448         (abi-hard-ld-soname): Likewise.
26449         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
26450         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
26451         Remove variable.
26452         (abi-o32_hard-ld-soname): Likewise.
26453         (abi-o32_soft_2008-ld-soname): Likewise.
26454         (abi-o32_hard_2008-ld-soname): Likewise.
26455         (abi-n32_soft-ld-soname): Likewise.
26456         (abi-n32_hard-ld-soname): Likewise.
26457         (abi-n32_soft_2008-ld-soname): Likewise.
26458         (abi-n32_hard_2008-ld-soname): Likewise.
26459         (abi-n64_soft-ld-soname): Likewise.
26460         (abi-n64_hard-ld-soname): Likewise.
26461         (abi-n64_soft_2008-ld-soname): Likewise.
26462         (abi-n64_hard_2008-ld-soname): Likewise.
26463         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
26464         Likewise.
26465         (abi-64-v2-ld-soname): Likewise.
26466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
26467         ld.so entries.
26468         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
26469         variable.
26470         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
26471         entry.
26472         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
26473         variable.
26474         (abi-64-ld-soname): Likewise.
26475         (abi-x32-ld-soname): Likewise.
26476         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
26477         entry.
26478         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26479
26480 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
26481
26482         [BZ #14138]
26483         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
26484         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
26485         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
26486         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
26487         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
26488         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
26489         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
26490         syscall entry for GLIBC_2.2 symbol version.
26491         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
26492         Likewise.
26493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26494         (setrlimit): Likewise.
26495         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
26496         Likewise.
26497
26498 2014-09-23  Will Newton  <will.newton@linaro.org>
26499
26500         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
26501         _LINUX_ARM_SYSDEP_H include guard too.
26502         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
26503         define.
26504
26505 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
26506
26507         * sysdeps/unix/sysv/linux/eventfd.c:
26508         Make first argument unsigned.
26509         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
26510         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
26511
26512 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
26513
26514         [BZ #16852]
26515         * socket/recvmmsg.c (recvmmsg): Drop const argument.
26516         * socket/sys/socket.h: Likewise.
26517         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
26518
26519 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26520
26521         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
26522
26523 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
26524
26525         * time/tst-ftime.c: New test.
26526         * time/Makefile (tests): Add tst-ftime.
26527
26528 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
26529
26530         * soft-fp/extended.h: Fix comment formatting.
26531         * soft-fp/op-1.h: Likewise.
26532         * soft-fp/op-2.h: Likewise.
26533         * soft-fp/op-4.h: Likewise.
26534         * soft-fp/op-8.h: Likewise.
26535         * soft-fp/op-common.h: Likewise.
26536         * soft-fp/soft-fp.h: Likewise.
26537
26538         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
26539
26540 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
26541
26542         [BZ #6652]
26543         * Makeconfig (soversions-default-setname): Remove variable.
26544         ($(common-objpfx)soversions.i): Don't pass default_setname to
26545         soversions.awk.
26546         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
26547         oldest_abi to abi-versions.awk.
26548         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
26549         * config.make.in (oldest-abi): Remove variable.
26550         * configure.ac (--enable-oldest-abi): Remove configure option.
26551         * configure: Regenerated.
26552         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
26553         text.
26554         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
26555         * scripts/soversions.awk: Do not handle default_setname variable.
26556         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
26557         variable.
26558         * sysdeps/mach/hurd/configure: Regenerated.
26559         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
26560         variable.
26561         * sysdeps/unix/sysv/linux/configure: Regenerated.
26562
26563 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26564
26565         * elf/Makefile (CFLAGS-interp.c): Remove.
26566         ($(elf-objpfx)runtime-linker.h): Generate header with linker
26567         path string.
26568         * elf/interp.c: Include generated runtime-linker.h
26569
26570         * Makerules (lib%.so): Don't include $(+interp) in
26571         prerequisites.
26572         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
26573         * dlfcn/eval.c: Remove file.
26574
26575         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
26576         macros.
26577
26578         [BZ #17266]
26579         * misc/sys/cdefs.h: Define __extern_always_inline for clang
26580         4.2 and newer.
26581
26582         [BZ #17370]
26583         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
26584
26585 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26586             Jakub Jelinek  <jakub@redhat.com>
26587
26588         [BZ #17266]
26589         * libio/stdio.h: Check definition of __fortify_function
26590         instead of __extern_always_inline to include bits/stdio2.h.
26591         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
26592         check if __extern_always_inline is defined.
26593         [__USE_MISC || __USE_XOPEN]: Likewise.
26594         [__USE_ISOC99] Likewise.
26595         * misc/sys/cdefs.h (__fortify_function): Define only if
26596         __extern_always_inline is defined.
26597         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
26598         __extern_always_inline and __extern_inline only for g++-4.3
26599         and newer or a compatible gcc.
26600
26601 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
26602
26603         [BZ #17371]
26604         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
26605         last change to handle zero prefix length.
26606
26607 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
26608
26609         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
26610         _SC_REGEX_VERSION.
26611
26612         * posix/getconf.c (vars): Add _POSIX_IPV6 and
26613         _POSIX_RAW_SOCKETS.
26614
26615 2014-09-13  Allan McRae  <allan@archlinux.org>
26616
26617         * po/ru.po: Update Russian translation from translation project.
26618
26619 2014-09-12  Roland McGrath  <roland@hack.frob.com>
26620
26621         * locale/programs/locale.c (show_locale_vars): Inline local function
26622         into its sole call site.  Clean up some style nits.
26623         (print_item): New function, broken out of ...
26624         (show_info): ... local function here.  Clean up style nits.
26625
26626         * locale/programs/ld-ctype.c (set_one_default): New function, broken
26627         out of ...
26628         (set_class_defaults): ... local function set_default here.
26629         Define set_default as a macro locally to pass constant parameters.
26630         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
26631         rather than a shared local.
26632
26633         * stdlib/rpmatch.c (try): New function, broken out of ...
26634         (rpmatch): ... local function here.  Also, prototypify definition.
26635
26636 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
26637
26638         * scripts/soversions.awk: Do not handle configuration names.
26639         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
26640         vendor and os variables to soversions.awk.
26641         * configure.ac: Do not modify gnu-* host_os.
26642         * configure: Regenerated
26643         * shlib-versions: Remove first column with configuration names.
26644         * nptl/shlib-versions: Likewise.
26645         * nptl_db/shlib-versions: Likewise.
26646         * sysdeps/hppa/shlib-versions: Likewise.
26647         * sysdeps/m68k/shlib-versions: Likewise.
26648         * sysdeps/mach/hurd/shlib-versions: Likewise.
26649         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
26650         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
26651         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
26652         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
26653         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
26654         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
26655         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
26656         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
26657         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26658         Likewise.
26659         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26660         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26661         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26662         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26663         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26664         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
26665         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26666         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26667
26668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
26669         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
26670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
26671         Regenerated.
26672         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
26673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26674         Condition symbol version definitions on [HAVE_ELFV2_ABI].
26675
26676         * shlib-versions: Remove OS-specific entries.  Moved to files in
26677         sysdeps.
26678         * sysdeps/mach/hurd/shlib-versions: New file.
26679         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26680
26681         * nptl/shlib-versions: Remove architecture-specific entries.
26682         Moved to files in sysdeps.
26683         * shlib-versions: Likewise.
26684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
26685         file.
26686         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26687         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26688         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26689         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26690
26691         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
26692         (UDP_NO_CHECK6_RX): Likewise.
26693
26694 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26695
26696         * sysdeps/posix/sysconf.c (__sysconf): Spell
26697         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
26698
26699 2014-08-12  Florian Weimer  <fweimer@redhat.com>
26700
26701         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
26702         loading.
26703         * iconv/Versions (__gconv_transliterate): Export for use from
26704         gconv modules.
26705         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
26706         (struct __gconv_trans_data, __gconv_trans_fct,
26707         __gconv_trans_context_fct, __gconv_trans_query_fct,
26708         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
26709         definitions.
26710         (struct __gconv_step_data): Remove __trans member.
26711         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
26712         longer hidden.  Remove unused trans_data argument.
26713         * iconv/gconv_int.h (struct trans_struct): Remove definition.
26714         (__gconv_translit_find): Remove declaration.
26715         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
26716         prototype.
26717         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
26718         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
26719         trans_data argument.  Add hidden definition.
26720         (__gconv_translit_find): Remove.
26721         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
26722         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
26723         * iconv/skeleton.c: Remove transliteration initialization.
26724         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
26725         __gconv_step_data initialization.
26726         * libio/iofwide.c (__libio_translit_): Remove.
26727         (_IO_fwide): Adjust struct __gconv_step_data initialization.
26728         * wcsmbs/btowc.c (__btowc): Likewise.
26729         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
26730         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
26731         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
26732         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
26733         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
26734         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
26735         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
26736         * wcsmbs/wctob.c (wctob): Likewise.
26737
26738 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26739
26740         [BZ #16194]
26741         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
26742         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
26743         register usage.
26744         * sysdeps/x86/Makefile: Adjust.
26745
26746 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26747             Roland McGrath  <roland@hack.frob.com>
26748
26749         * locale/weight.h: Add include guard.
26750         (findidx): Make static rather than auto; take new parameters
26751         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
26752         * locale/weightwc.h: Likewise.
26753         * posix/fnmatch_loop.c
26754         (FCT): Change type of EXTRA from int32_t to wint_t.
26755         Don't include either header inside the function.
26756         Call FINDIDX rather than findidx, and pass new arguments.
26757         #undef FINDIDX at the end of the file.
26758         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
26759         FINDIDX before including fnmatch_loop.c for the non-wide version.
26760         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
26761         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
26762         for the wide version.
26763         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
26764         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
26765         Pass new arguments to findidx.
26766         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
26767         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
26768         Don't #include it inside the function.  Pass new arguments to findidx.
26769         * posix/regex_internal.h
26770         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
26771         (re_string_elem_size_at): Don't #include it inside the function.
26772         Pass new arguments to findidx.
26773         * string/strcoll_l.c: #include WEIGHT_H at top level.
26774         (get_next_seq): Don't #include it inside the function.
26775         Pass new arguments to findidx.
26776         (get_next_seq_nocache): Likewise.
26777         * string/strxfrm_l.c: #include WEIGHT_H at top level.
26778         (STRXFRM): Don't #include it inside the function.
26779         Pass new arguments to findidx.
26780
26781 2014-09-11  Florian Weimer  <fweimer@redhat.com>
26782
26783         [BZ #17344]
26784         * malloc/malloc.c (unlink): Turn asserts into a call to
26785         malloc_printerr.
26786
26787 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
26788
26789         [BZ #17370]
26790         * libio/wfileops (do_ftell_wide): Free OUT.
26791
26792 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
26793
26794         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
26795
26796 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
26797
26798         [BZ #17363]
26799         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
26800         group if the current group is empty.
26801
26802 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26803
26804         * benchtests/bench-memset.c (test_main): Add more test from size
26805         from 32 to 512 bytes.
26806         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26807         Add POWER8 memset object.
26808         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26809         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
26810         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
26811         implementation.
26812         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
26813         Likewise.
26814         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
26815         multiarch POWER8 memset optimization.
26816         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
26817         POWER8 memset optimization.
26818
26819         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26820         Remove bzero multiarch objects.
26821         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
26822         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
26823         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
26824         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
26825         Remove define.
26826         [__bzero]: Redefine to specific name.
26827         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
26828         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
26829         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
26830         define.
26831         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
26832         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
26833
26834 2014-09-10  Florian Weimer  <fweimer@redhat.com>
26835
26836         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
26837         warnings into errors.
26838
26839         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
26840         __cxa_thread_atexit_impl prototype.
26841
26842 2014-09-09  Steve Ellcey  <sellcey@mips.com>
26843
26844         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
26845         Fix capitalization of error message.
26846
26847 2014-09-09  Steve Ellcey  <sellcey@mips.com>
26848
26849         * sysdeps/mips/preconfigure: Modify ABI tests.
26850
26851 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
26852
26853         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
26854
26855 2014-09-07  Roland McGrath  <roland@hack.frob.com>
26856             Carlos O'Donell  <carlos@systemhalted.org>
26857
26858         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
26859         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
26860         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
26861         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
26862         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
26863         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
26864         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
26865         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
26866         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
26867         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
26868         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
26869         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
26870         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
26871         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
26872         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
26873         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
26874         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
26875         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
26876         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
26877         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
26878         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
26879         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
26880         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
26881         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
26882         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
26883         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
26884         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
26885         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
26886         Deconditionalize the code that was previously under [RESET_PID].
26887         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
26888         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
26889         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
26890         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
26891         include sysdep.h.
26892
26893 2014-09-08  Allan McRae  <allan@archlinux.org>
26894
26895         * version.h (RELEASE): Set to "development".
26896         (VERSION): Set to "2.20.90"
26897
26898 2014-09-07  Allan McRae  <allan@archlinux.org
26899
26900         * version.h (RELEASE): Set to "stable".
26901         (VERSION): Set to "2.20"
26902         * include/features.h (__GLIBC_MINOR__): Set to 20.
26903
26904         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
26905         Liebler.
26906
26907         * po/ko.po: Update Korean translation from translation project.
26908
26909 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
26910
26911         [BZ #17354]
26912         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
26913         macro for handling signed relocations.
26914
26915 2014-09-03  Florian Weimer  <fweimer@redhat.com>
26916
26917         [BZ #17325]
26918         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
26919         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
26920         assert.
26921         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
26922         * iconvdata/ibm935.c (BODY): Likewise.
26923         * iconvdata/ibm937.c (BODY): Likewise.
26924         * iconvdata/ibm939.c (BODY): Likewise.
26925         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
26926         assert.
26927         * iconvdata/Makefile (iconv-test.out): Pass module list to test
26928         script.
26929         * iconvdata/run-iconv-test.sh: New test loop for checking for
26930         decoder crashers.
26931
26932 2014-09-02  Khem Raj  <raj.khem@gmail.com>
26933
26934         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
26935         libm_hidden_ver.
26936
26937 2014-09-01  Allan McRae  <allan@archlinux.org>
26938
26939         * po/eo.po: Update Esperanto translation from translation project.
26940
26941         * po/ca.po: Update Catalan translation from translation project.
26942
26943 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26944
26945         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
26946         __proc_dostop call.
26947
26948 2014-08-27  Mark Wielaard  <mjw@redhat.com>
26949
26950         [BZ #17319]
26951         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
26952         to call set_thread_area instead of hand written asm.
26953         (__NR_set_thread_area): Removed define.
26954         (TLS_FLAG_WRITABLE): Likewise.
26955         (__ASSUME_SET_THREAD_AREA): Remove check.
26956         (TLS_EBX_ARG): Remove define.
26957         (TLS_LOAD_EBX): Likewise.
26958
26959 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26960
26961         Simplify atomicity of socket creation in bind.
26962
26963         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
26964         looking up the name after linking the file.
26965
26966 2014-08-27  Allan McRae  <allan@archlinux.org>
26967
26968         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
26969
26970 2014-08-26  Florian Weimer  <fweimer@redhat.com>
26971
26972         [BZ #17187]
26973         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
26974         trans_compare, open_translit, __gconv_translit_find):
26975         Remove module loading code.
26976
26977 2014-08-26  Allan McRae  <allan@archlinux.org>
26978
26979         * po/vi.po: Update Vietnamese translation from translation project.
26980
26981         * po/uk.po: Update Ukrainian translation from translation project.
26982
26983         * po/fr.po: Update French translation from translation project.
26984
26985         * po/ru.po: Update Russian translation from translation project.
26986
26987         * po/pl.po: Update Polish translation from translation project.
26988
26989         * po/cs.po: Update Czech translation from translation project.
26990
26991         * po/de.po: Update German translation from translation project.
26992
26993         * po/bg.po: Update Bulgarian translation from translation project.
26994
26995         * po/sv.po: Update Sweedish translation from translation project.
26996
26997         * po/nl.po: Update Dutch translation from translation project.
26998
26999         * po/es.po: Update Spanish translation from translation project.
27000
27001 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
27002
27003         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
27004
27005         * catgets/Makefile (CPPFLAGS-gencat): Remove.
27006         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
27007         (CPPFLAGS-iconvconfig): Likewise.
27008         * timezone/Makefile (CPPFLAGS-zic): Likewise.
27009
27010         * include/libc-symbols.h: Remove unnecessary check for
27011         NOT_IN_libc.
27012         * nptl/pthreadP.h: Likewise.
27013         * sysdeps/aarch64/setjmp.S: Likewise.
27014         * sysdeps/alpha/setjmp.S: Likewise.
27015         * sysdeps/arm/sysdep.h: Likewise.
27016         * sysdeps/i386/setjmp.S: Likewise.
27017         * sysdeps/m68k/setjmp.c: Likewise.
27018         * sysdeps/posix/getcwd.c: Likewise.
27019         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
27020         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
27021         * sysdeps/s390/s390-32/setjmp.S: Likewise.
27022         * sysdeps/s390/s390-64/setjmp.S: Likewise.
27023         * sysdeps/sh/sh3/setjmp.S: Likewise.
27024         * sysdeps/sh/sh4/setjmp.S: Likewise.
27025         * sysdeps/unix/alpha/sysdep.h: Likewise.
27026         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
27027         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
27028         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
27029         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
27031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
27032         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
27033         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
27034         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
27035         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
27036         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
27037         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
27038         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
27039         * sysdeps/x86_64/setjmp.S: Likewise.
27040
27041 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
27042
27043         [BZ #17263]
27044         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
27045         <stdint.h>.
27046         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
27047         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
27048
27049 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
27050
27051         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
27052
27053         [BZ #17262]
27054         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
27055         and __x86_64__ when disabling x87 inline functions.
27056
27057 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
27058
27059         [BZ #17259]
27060         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
27061         asm statement with __cpuid_count.
27062
27063 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
27064
27065         * configure.ac: Change __ehdr_start code to dereference the struct.
27066         Run readelf on the output to look for relocations.
27067         * configure: Regenerated.
27068
27069 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
27070
27071         [BZ #17261]
27072         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
27073         value to 0.
27074         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
27075
27076 2014-08-12  Roland McGrath  <roland@hack.frob.com>
27077
27078         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
27079
27080 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
27081
27082         [BZ #16892]
27083         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
27084         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
27085
27086 2014-08-12  Sean Anderson  <seanga2@gmail.com>
27087
27088         * malloc/malloc.c: Fix typo in comment.
27089
27090 2014-08-09  Allan McRae  <allan@archlinux.org>
27091
27092         * Regenerate libc.po.
27093
27094 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
27095
27096         * intl/tst-gettext2.sh: Check every lang file for creation.
27097
27098 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27099
27100         * sysdeps/aarch64/fpu/math_private.h
27101         (libc_feholdsetround_noex_aarch64_ctx): New function.
27102
27103 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27104
27105         * sysdeps/arm/armv6/strcpy.S (strcpy):
27106         Fix performance issue in misaligned cases.
27107
27108 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27109
27110         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
27111         Move definition from termios.h.
27112         (struct termio): Likewise.
27113         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27114         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27115         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27116         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27117         Likewise.
27118         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
27119         Move definition to ioctl-types.h
27120         (struct termio): Likewise.
27121         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27122         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27123         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27124         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27125         Likewise.
27126
27127 2014-08-05  Richard Henderson  <rth@redhat.com>
27128
27129         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
27130         exceptions.
27131         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
27132         Add fraiseexcpt.
27133         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
27134         Use __feraiseexcept.
27135         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
27136         Protect libm symbols with IS_IN_libm.
27137
27138         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
27139
27140 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
27141
27142         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
27143
27144 2014-08-04  Will Newton  <will.newton@linaro.org>
27145
27146         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
27147         file.
27148
27149 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
27150
27151         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
27152         variants for each function.
27153
27154 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27155
27156         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
27157         appended ...
27158         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
27159         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
27160         appended ...
27161         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
27162         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
27163         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
27164         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
27165         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
27166         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
27167         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
27168         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
27169         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
27170         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
27171         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
27172         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
27173         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
27174         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
27175         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
27176         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
27177         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
27178         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
27179         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
27180         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
27181         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
27182         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
27183         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
27184         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
27185         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
27186         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
27187         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
27188         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
27189         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
27190         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
27191         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
27192         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
27193         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
27194         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
27195         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
27196         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
27197         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
27198         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
27199         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
27200         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
27201         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
27202         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
27203         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
27204         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
27205         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
27206         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
27207         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
27208         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
27209         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
27210         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
27211         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
27212         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
27213         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
27214         Update #include.
27215         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
27216         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
27217
27218 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27219
27220         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
27221         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
27222         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
27223         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
27224         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
27225         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
27226
27227 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27228
27229         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
27230         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
27231         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
27232         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
27233
27234 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27235
27236         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
27237         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
27238         (__libc_vfork): Define function under this name.
27239         (__vfork): Define as an alias.
27240         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
27241         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
27242
27243 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27244
27245         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
27246         that was previously under [RESET_PID].
27247         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
27248
27249 2014-08-04  Andreas Schwab  <schwab@suse.de>
27250
27251         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
27252
27253 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
27254
27255         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
27256         (main): Likewise.
27257
27258 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27259
27260         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
27261
27262 2014-08-01  Richard Henderon  <rth@redhat.com>
27263
27264         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
27265         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
27266         typo in exact zero test.
27267         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27268         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27269         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27270
27271 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27272
27273         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
27274         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
27275         * sysdeps/arm/sysdep.h: ... here.
27276         [!__ASSEMBLER__]: Include <stdint.h>.
27277
27278 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27279
27280         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
27281         (HAVE_WCTYPE_H): Likewise.
27282         (HAVE_ISWCTYPE): Likewise.
27283         (ENABLE_NLS): Likewise.
27284         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
27285         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
27286
27287         * posix/regex_internal.c: Check if DEBUG is defined and is
27288         set.
27289
27290         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
27291         (HAVE_MBSRTOWCS): Likewise.
27292         * posix/fnmatch.c: Include string.h unconditionally.
27293
27294 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
27295
27296         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
27297         reversal.
27298
27299 2014-07-31  Roland McGrath  <roland@hack.frob.com>
27300
27301         * sysdeps/generic/safe-fatal.h: New file.
27302         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
27303         * nptl/forward.c: Include it.
27304         (__pthread_unwind): Use __safe_fatal as default action, rather
27305         than a bogus use of INTERNAL_SYSCALL that could never work.
27306
27307         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
27308         * configure.ac (libc_cv_builtin_trap): New test.
27309         * configure: Regenerated.
27310         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
27311         (ABORT_INSTRUCTION): Define using __builtin_trap.
27312
27313         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
27314         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
27315         * sysdeps/nptl/nptl-signals.h: New file.
27316         * nptl/pthreadP.h: Include <nptl-signals.h>.
27317
27318 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27319
27320         * sysdeps/s390/s390-64/utf16-utf32-z9.c
27321         (ONE_DIRECTION): Define.
27322         * sysdeps/s390/s390-64/utf8-utf16-z9.c
27323         (ONE_DIRECTION): Define.
27324         * sysdeps/s390/s390-64/utf8-utf32-z9.c
27325         (ONE_DIRECTION): Define.
27326
27327 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27328
27329         * sysdeps/s390/Makefile: Delete file.
27330         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
27331         * sysdeps/s390/__longjmp.c: Delete file.
27332         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
27333         Remove fields __flags and __reserved.
27334         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
27335         and add versioning.
27336         * sysdeps/s390/rtld-__longjmp.c: Delete file.
27337         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
27338         * sysdeps/s390/rtld-setjmp.S: Likewise.
27339         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
27340         * sysdeps/s390/s390-32/__longjmp.c: ... here.
27341         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
27342         * sysdeps/s390/s390-32/setjmp.S: ... here.
27343         Add versioning.
27344         (__sigsetjmp): Remove setting __flags field.
27345         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
27346         * sysdeps/s390/s390-64/__longjmp.c: ... here.
27347         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
27348         * sysdeps/s390/s390-64/setjmp.S: ... here.
27349         Add versioning.
27350         (__sigsetjmp): Remove setting __flags field.
27351         * sysdeps/s390/setjmp.S: Delete file.
27352         * sysdeps/s390/sigjmp.c: Likewise.
27353         * sysdeps/s390/v1-longjmp.c: Likewise.
27354         * sysdeps/s390/v1-setjmp.h: Likewise.
27355         * sysdeps/s390/v1-sigjmp.c: Likewise.
27356         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
27357         Remove v1-longjmp_chk.
27358         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
27359         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
27360         Include debug/longjmp_chk.c and add versioning.
27361         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
27362         Include nptl/pt-longjmp.c and add versioning.
27363         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
27364         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
27365         Include __longjmp.c.
27366         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
27367         Move to ...
27368         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
27369         (__getcontext): Remove setting __flags field.
27370         Add versioning.
27371         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
27372         Don't restore upper high grps.
27373         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
27374         Likewise.
27375         (__swapcontext): Remove setting uc_flags field.
27376         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
27377         Delete file.
27378         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
27379         Include __longjmp.c.
27380         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
27381         Move to ...
27382         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
27383         (__getcontext): Remove setting __flags field.
27384         Add versioning.
27385         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
27386         (__swapcontext): Remove setting uc_flags field.
27387         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
27388         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
27389         Remove fields uc_high_gprs and __reserved.
27390         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
27391         New file with reverted content.
27392         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
27393         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
27394         Regenerated.
27395         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
27396         Regenerated.
27397
27398 2014-07-31  Andreas Schwab  <schwab@suse.de>
27399
27400         * config.h.in (HAVE_IFUNC): Define to 0.
27401         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
27402         definedness.
27403
27404 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
27405
27406         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27407         memmove-avx-unaligned, memcpy-avx-unaligned and
27408         mempcpy-avx-unaligned.
27409         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27410         Add tests for AVX memcpy functions.
27411         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
27412         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
27413         memcpy_chk.
27414         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
27415         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
27416         memmove_chk.
27417         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
27418         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
27419         mempcpy_chk.
27420         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
27421         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
27422         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
27423
27424 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27425
27426         [BZ #17213]
27427         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
27428         powerpc64le.
27429
27430 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
27431
27432         [BZ #16839]
27433         * manual/llio.texi: Add section about open file description locks.
27434         * manual/examples/ofdlocks.c: Example of open file description
27435         lock usage.
27436         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
27437         F_OFD_SETLK, and F_OFD_SETLKW.
27438
27439 2014-07-23  Allan McRae  <allan@archlinux.org>
27440
27441         * po/es.po: Update Spanish translation from translation project.
27442
27443 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
27444
27445         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
27446
27447 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
27448
27449         [BZ #17078]
27450         * sysdeps/arm/dl-machine.h (elf_machine_rela)
27451         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
27452         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
27453
27454 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
27455
27456         [BZ #17088]
27457         * math/fesetenv.c (__fesetenv)
27458         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
27459         * math/feupdateenv.c (__feupdateenv)
27460         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
27461
27462         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
27463         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
27464         (__ASSUME_SOCKETCALL): Do not define.
27465
27466         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
27467         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
27468         (__ASSUME_SOCKETCALL): Do not define.
27469         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
27470         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27471         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27472         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27473         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27474         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
27475         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27476         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27477
27478         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
27479         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
27480         (__ASSUME_SOCKETCALL): Do not define.
27481         (__ASSUME_IPC64): Define unconditionally.
27482         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27483         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27484         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27485         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27486         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
27487         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27488         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
27489         Likewise.
27490
27491         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
27492         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
27493         (__ASSUME_SOCKETCALL): Do not define.
27494         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
27495         (__ASSUME_FUTEX_LOCK_PI): Likewise.
27496         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27497         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
27498         (__ASSUME_REQUEUE_PI): Define unconditionally.
27499         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
27500         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
27501         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27502         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
27503         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27504         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27505
27506         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
27507         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
27508         (__ASSUME_SOCKETCALL): Do not define.
27509         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
27510         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27511         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27512         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
27513         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27514         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27515
27516         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
27517         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
27518         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27519         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
27520         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27521         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
27522         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27523         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
27524         (__ASSUME_GETCPU_SYSCALL): Likewise.
27525
27526         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
27527         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
27528         cases for individual architectures.
27529         * sysdeps/gnu/configure: Regenerated.
27530         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
27531         LIBC_SLIBDIR_RTLDDIR.
27532         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
27533         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
27534         LIBC_SLIBDIR_RTLDDIR.
27535         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
27536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
27537         LIBC_SLIBDIR_RTLDDIR.
27538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
27539         Regenerated.
27540         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
27541         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
27542         file.
27543         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
27544         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
27545         file.
27546         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
27547         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
27548         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
27549         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
27550
27551         * sysdeps/aarch64/shlib-versions: Move to ...
27552         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
27553         * sysdeps/alpha/shlib-versions: Move to ...
27554         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
27555         * sysdeps/arm/shlib-versions: Move to ...
27556         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
27557         * sysdeps/hppa/shlib-versions: Move all contents except for
27558         libgcc_s entry to ...
27559         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
27560         entry from ...
27561         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
27562         * sysdeps/ia64/shlib-versions: Move to ...
27563         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
27564         entry from ...
27565         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
27566         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
27567         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
27568         * sysdeps/microblaze/shlib-versions: Move to ...
27569         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
27570         * sysdeps/mips/shlib-versions: Move to ...
27571         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
27572         entry from ...
27573         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
27574         * sysdeps/tile/shlib-versions: Move to ...
27575         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
27576         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
27577         from ...
27578         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
27579         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
27580         entry from ...
27581         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
27582
27583 2014-07-17  Will Newton  <will.newton@linaro.org>
27584
27585         * sysdeps/arm/bits/atomic.h
27586         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
27587         (__arch_compare_and_exchange_bool_16_int): Likewise.
27588         (__arch_compare_and_exchange_bool_64_int): Likewise.
27589
27590         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
27591         into an #else block.
27592
27593 2014-07-16  Roland McGrath  <roland@hack.frob.com>
27594
27595         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
27596         just Linux configurations.  Test empirically that the compiler sets
27597         __ARM_EABI__, rather than using the tuple to decide.
27598         * sysdeps/arm/preconfigure: Regenerated.
27599         * sysdeps/unix/sysv/linux/arm/configure: File removed.
27600         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
27601         contents appended ...
27602         * sysdeps/arm/configure.ac: ... here.
27603         * sysdeps/arm/configure: Regenerated.
27604
27605 2014-07-15  Roland McGrath  <roland@hack.frob.com>
27606
27607         * nptl/pthread_kill.c: New file.
27608         * nptl/pthread_sigmask.c: New file.
27609         * nptl/pthread_sigqueue.c: New file.
27610
27611         * sysdeps/nptl/lowlevellock.h: New file.
27612         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
27613         * sysdeps/nptl/lowlevellock-futex.h: New file.
27614
27615         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
27616         Remove dead declarations.
27617
27618 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
27619
27620         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
27621         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
27622         config-cflags-avx2.
27623         * sysdeps/x86_64/configure.ac: Likewise.
27624         * sysdeps/i386/configure: Regenerated.
27625         * sysdeps/x86_64/configure: Likewise.
27626         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27627         memset-avx2 only if config-cflags-avx2 is yes.
27628         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27629         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
27630         defined.
27631         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
27632         only if HAVE_AVX2_SUPPORT is defined.
27633         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27634
27635 2014-07-14  Alan Modra  <amodra@gmail.com>
27636
27637         [BZ #17153]
27638         * elf/elf.h (DT_PPC64_NUM): Correct value.
27639         * NEWS: Add to fixed bug list.
27640
27641 2014-07-13  Jim Meyering  <meyering@fb.com>
27642
27643         [BZ 17150]
27644         regex: don't deref NULL upon heap allocation failure
27645         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
27646         failure in one more place.
27647         To trigger the segfault, configure grep -with-included-regex,
27648         build it, and run these commands:
27649         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
27650
27651 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
27652
27653         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
27654
27655 2014-07-11  Richard Henderson  <rth@redhat.com>
27656
27657         * sysdeps/aarch64/libm-test-ulps: Update.
27658
27659 2014-07-10  Florian Weimer  <fweimer@redhat.com>
27660
27661         [BZ #17135]
27662         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
27663         * nptl/allocatestack.c (__nptl_setxid_error): New function.
27664         (__nptl_setxid): Initialize error member.  Call
27665         __nptl_setxid_error.
27666         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
27667         * nptl/descr.h (struct xid_command): Add error member.
27668         * nptl/tst-setuid3.c: New file.
27669         * nptl/Makefile (tests): Add it.
27670
27671 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27672
27673         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
27674         New define.
27675         (__lll_trylock): Use __lll_base_trylock.
27676         (__lll_cond_trylock): Likewise.
27677
27678 2014-07-10  Roland McGrath  <roland@hack.frob.com>
27679
27680         * nptl/pthread_create.c (start_thread): Use atomic_or and
27681         lll_futex_wake directly rather than lll_robust_dead.
27682         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27683         (lll_robust_dead): Macro removed.
27684         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
27685         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27686         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27687         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27688         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27689         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27690         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27691         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27692         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27693         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27694         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27695         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27696         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27697         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27698         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27699
27700         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
27701         Use atomic_compare_and_exchange_val_acq directly rather than
27702         lll_robust_trylock.
27703         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27704         (__lll_robust_trylock, lll_robust_trylock): Removed.
27705         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27706         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27707         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27708         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27709         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27710         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27711         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27712         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27713         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27714         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27715         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27716         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27717         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27718         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27719
27720 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27721
27722         * manual/locale.texi (Locale Names): New section documenting
27723         locale name syntax.  Adjust menu and node chaining accordingly.
27724         (Choosing Locale): Reference Locale Names, Locale Categories.
27725         Mention setting LC_ALL=C.  Reflect that name syntax is now
27726         documented.
27727         (Locale Categories): New section title.  Reference Locale Names.
27728         LC_ALL is an environment variable, but not a category.
27729         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
27730         description, now in Locale Name.  Reference that section.  Locale
27731         name syntax is now documented.
27732
27733 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27734
27735         [BZ #17137]
27736         * locale/findlocale.c (name_present, valid_locale_name): New
27737         functions.
27738         (_nl_find_locale): Use the loc_name variable to store name
27739         candidates.  Call name_present and valid_locale_name to check and
27740         validate locale names.  Return an error if the locale is invalid.
27741
27742 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27743
27744         * locale/setlocale.c (setlocale): Use strdup for allocating
27745         composite name copy.
27746
27747 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27748
27749         Sync up with gnulib.
27750         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
27751         [!_LIBC && ENABLE_NLS]: Include gettext.h.
27752         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
27753         and _GL_ARG_NONNULL.
27754         [USE_UNLOCKED_IO]: Include unlocked-io.h.
27755         [!_LIBC]: Include code for Windows and Cygwin.
27756         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
27757         Include prototype for int strerror_r.
27758         [!_LIBC] (is_open): New function.
27759         (flush_stdout): New function.
27760         (print_errno_message): Use it.
27761         (error): Likewise.
27762         (error_at_line): Likewise.
27763         (error_tail) Add function attribute macros.  Use
27764         __builtin_expect.
27765
27766         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
27767
27768         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
27769
27770         * io/ftw.c: Include sys/param.h unconditionally.
27771
27772         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
27773
27774         [BZ #17125]
27775         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
27776         libc_freeres_ptr.
27777         (freecache): New function to free CACHE on exit.
27778
27779         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
27780         initialization.
27781
27782 2014-07-09  David S. Miller  <davem@davemloft.net>
27783
27784         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27785
27786         * sysdeps/sparc/nptl/internaltypes.h: Delete.
27787         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
27788         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
27789         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
27790         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
27791         * sysdeps/sparc/nptl/sem_init.c: Likewise.
27792         * sysdeps/sparc/nptl/sem_post.c: Likewise.
27793         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
27794         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
27795         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
27796         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
27797         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
27798         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
27799
27800 2014-07-09  Andreas Schwab  <schwab@suse.de>
27801
27802         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
27803         output.
27804         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
27805         (do_test): Likewise.
27806
27807         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27808
27809 2014-07-09  Will Newton  <will.newton@linaro.org>
27810
27811         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
27812         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
27813         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
27814         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
27815         * sysdeps/hppa/start.S (_start): Likewise.
27816
27817 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
27818
27819         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
27820
27821         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
27822         defined.
27823
27824 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
27825
27826         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
27827         after checking that it is non-NULL.
27828
27829         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
27830
27831 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27832
27833         * sysdeps/powerpc/memmove.c: Remove file.
27834         * sysdeps/powerpc/powerpc32/power4/memcopy.h
27835         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
27836         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
27837         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
27838         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
27839         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
27840         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
27841         string memmove instead of removed powerpc one.
27842
27843         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
27844         [weak_alias]: Fix compiler warning due trailing data.
27845         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
27846         [weak_alias]: Likewise.
27847         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
27848         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
27849
27850         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
27851         (__libc_ifunc_impl_list): Add memmove functions.
27852
27853 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
27854
27855         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
27856         Remove code.
27857         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
27858         Likewise.
27859         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
27860         Likewise.
27861         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
27862         Likewise.
27863         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
27864         Likewise.
27865         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
27866         Likewise.
27867         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
27868         Likewise.
27869         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
27870         Likewise.
27871         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
27872         Likewise.
27873         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
27874         Likewise.
27875         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
27876         Likewise.
27877         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
27878         Likewise.
27879         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
27880         Likewise.
27881         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
27882         Likewise.
27883         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
27884         Likewise.
27885         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
27886         Likewise.
27887         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
27888         Likewise.
27889
27890 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27891
27892         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
27893         to avoid alignment traps in non-cacheable memory.
27894         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
27895
27896         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
27897         multiarch objects.
27898         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
27899         file: multiarch power7 memmove.
27900         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
27901         multiarch default memmove.
27902         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
27903         multiarch memove for powerpc32/power4.
27904
27905         * string/bcopy.c: Use full path to include memmove.c.
27906         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
27907         multiarch objects.
27908         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
27909         bcopy for powerpc64.
27910         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
27911         bcopy for powerpc64.
27912         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
27913         and memmove implementations.
27914         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
27915         optimized multiarch memmove for POWER7/powerpc64.
27916         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
27917         default multiarch memmove for powerpc64.
27918         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
27919         multiarch for powerpc64.
27920         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
27921         for POWER7/powerpc64.
27922         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
27923         memmove for POWER7/powerpc64.
27924
27925         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
27926         glibc default one.
27927
27928         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
27929         __ELF_NATIVE_CLASS equal to 64.
27930
27931 2014-07-07  Roland McGrath  <roland@hack.frob.com>
27932
27933         * sysdeps/nptl/lowlevellock.h: File removed.
27934
27935         * NEWS: NPTL is no longer an add-on!
27936         * nptl/internaltypes.h: Moved ...
27937         * sysdeps/nptl/internaltypes.h: ... here.
27938         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
27939         * sysdeps/nptl/fork.c: Likewise.
27940         * sysdeps/nptl/gai_misc.h: Likewise.
27941         * sysdeps/nptl/librt-cancellation.c: Likewise.
27942         * sysdeps/nptl/jmp-unwind.c: Likewise.
27943         * sysdeps/nptl/setxid.h: Likewise.
27944         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
27945         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
27946         * sysdeps/unix/sysv/linux/arm/Implies: New file.
27947         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
27948         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
27949         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
27950         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
27951         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
27952         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
27953         * sysdeps/unix/sysv/linux/mips/Implies: New file.
27954         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
27955         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
27956         * sysdeps/unix/sysv/linux/sh/Implies: New file.
27957         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
27958         * sysdeps/unix/sysv/linux/tile/Implies: New file.
27959         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
27960         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
27961         * nptl/Makeconfig: Moved ...
27962         * sysdeps/nptl/Makeconfig: ... here.
27963         * nptl/configure: File removed.
27964         * nptl/ANNOUNCE: File removed.
27965         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
27966         * sysdeps/unix/sysv/linux/configure: Regenerated.
27967
27968         * nptl/Makefile (routines): Add libc_pthread_init,
27969         libc_multiple_threads, register-atfork and unregister-atfork.
27970         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
27971         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
27972         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
27973         pthread-pi-defines.sym, structsem.sym.
27974         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
27975         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
27976         [$(subdir) = nptl] (tests): Add tst-setgetname.
27977         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
27978         * sysdeps/unix/sysv/linux/sigaction.c: Just include
27979         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
27980         [!LIBC_SIGACTION]: Remove aliases.
27981         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
27982         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
27983         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
27984         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
27985         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
27986         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
27987         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
27988         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
27989         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
27990         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
27991         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
27992         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
27993         __libc_allocate_rtsig_private.
27994         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
27995         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
27996         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
27997         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
27998         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
27999         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
28000         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
28001         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
28002         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
28003         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
28004         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
28005         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
28006         * nptl/internaltypes.h: ... here.
28007         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
28008         * sysdeps/nptl/jmp-unwind.c: ... here.
28009         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
28010         * nptl/libc-lowlevellock.c: ... here.
28011         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
28012         * nptl/libc_multiple_threads.c: ... here.
28013         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
28014         * nptl/libc_pthread_init.c: ... here.
28015         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
28016         * nptl/lowlevelbarrier.sym: ... here.
28017         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
28018         * nptl/lowlevelcond.sym: ... here.
28019         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
28020         * nptl/lowlevellock.c: ... here.
28021         * nptl/lowlevellock.h: Moved ...
28022         * sysdeps/nptl/lowlevellock.h: ... here.
28023         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
28024         * nptl/lowlevelrobustlock.c: ... here.
28025         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
28026         * nptl/lowlevelrobustlock.sym: ... here.
28027         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
28028         * nptl/lowlevelrwlock.sym: ... here.
28029         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
28030         * nptl/pt-fork.c: ... here.
28031         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
28032         * nptl/pthread-pi-defines.sym: ... here.
28033         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
28034         * nptl/pthread_attr_getaffinity.c: ... here.
28035         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
28036         * nptl/pthread_attr_setaffinity.c: ... here.
28037         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
28038         * nptl/pthread_mutex_cond_lock.c: ... here.
28039         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
28040         Update #include.
28041         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
28042         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
28043         * nptl/pthread_once.c: ... here, replacing old file.
28044         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
28045         * nptl/pthread_yield.c: ... here.
28046         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
28047         * nptl/register-atfork.c: ... here.
28048         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
28049         * nptl/sem_post.c: ... here.
28050         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
28051         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
28052         * nptl/sem_timedwait.c: ... here.
28053         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
28054         * nptl/sem_trywait.c: ... here.
28055         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
28056         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
28057         * nptl/sem_wait.c: ... here.
28058         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
28059         * nptl/structsem.sym: ... here.
28060         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
28061         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
28062         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
28063         * nptl/unregister-atfork.c: ... here.
28064         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
28065         * nptl/unwindbuf.sym: ... here.
28066         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
28067         * sysdeps/nptl/fork.c: ... here.
28068         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
28069         * sysdeps/nptl/fork.h: ... here.
28070         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
28071         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
28072         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
28073         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
28074         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
28075         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
28076         * sysdeps/unix/sysv/linux/getpid.c: ... here.
28077         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
28078         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
28079         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
28080         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
28081         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
28082         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
28083         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
28084         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
28085         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
28086         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
28087         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
28088         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
28089         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
28090         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
28091         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
28092         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
28093         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
28094         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
28095         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
28096         * sysdeps/unix/sysv/linux/raise.c: ... here.
28097         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
28098         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
28099         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
28100         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
28101         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
28102         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
28103         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
28104         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
28105         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
28106         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
28107         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
28108         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
28109         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
28110         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
28111         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
28112
28113 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
28114
28115         * sysdeps/generic/memcopy.h: Add comment for
28116         MEMCPY_OK_FOR_FWD_MEMMOVE.
28117
28118 2014-07-04  Will Newton  <will.newton@linaro.org>
28119
28120         * string/memchr.c: Merge from gnulib.
28121         [_LIBC]: Remove conditionals.
28122         (__ptr_t): Remove define.
28123         (LONG_MAX_32_BITS): Likewise.
28124         (LONG_MAX): Likewise.
28125         (MEMCHR): Use ANSI prototype and optimize algorithm.
28126
28127         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
28128
28129 2014-07-03  Roland McGrath  <roland@hack.frob.com>
28130
28131         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
28132         (lll_futex_timed_wait_bitset): Fix syscall argument count.
28133
28134         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
28135         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
28136         in a bare environment with no <stdlib.h> installed.
28137         * sysdeps/nptl/configure: Regenerated.
28138
28139         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
28140
28141         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
28142         AC_EGREP_CPP for kernel header checks, so they only succeed if
28143         including <linux/version.h> actually works right.
28144         * sysdeps/unix/sysv/linux/configure: Regenerated.
28145
28146         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
28147         value so it's not diagnosed as unused.
28148
28149         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
28150         thing) with "ifeq ($(subdir),rt)".
28151
28152 2014-07-03  Richard Henderson  <rth@redhat.com>
28153
28154         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
28155         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
28156         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
28157
28158         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
28159         (math_force_eval): New.
28160
28161         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
28162         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
28163
28164         * sysdeps/alpha/fpu/s_round.c: Remove file.
28165         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
28166
28167         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
28168         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
28169         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
28170         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
28171         (_dl_start, print_statistics): Likewise.
28172         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
28173         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
28174
28175         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28176         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28177         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28178         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28179         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28180         (HP_SMALL_TIMING_AVAIL): Define.
28181         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28182         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28183         (HP_SMALL_TIMING_AVAIL): Define.
28184         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28185         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28186
28187         * sysdeps/aarch64/hp-timing.h: New file.
28188
28189         * sysdeps/generic/hp-timing.h: Remove dead comment.
28190         * sysdeps/generic/hp-timing-common.h: New file.
28191         * sysdeps/alpha/hp-timing.h: Include it.
28192         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
28193         * sysdeps/i386/i686/hp-timing.h: Likewise.
28194         * sysdeps/ia64/hp-timing.h: Likewise.
28195         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28196         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28197         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28198         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28199         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
28200         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
28201         (hp_timing_t): New.
28202
28203         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
28204         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
28205         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
28206         * elf/rtld.c (_dl_start_final): Likewise.
28207         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
28208         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28209         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28210         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28211         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28212         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28213         (HP_TIMING_DIFF_INIT): Remove.
28214         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28215         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28216         (HP_TIMING_DIFF_INIT): Remove.
28217         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28218         * sysdeps/i386/i686/hp-timing.c: Remove file.
28219         * sysdeps/x86_64/hp-timing.c: Remove file.
28220         * sysdeps/ia64/hp-timing.c: Remove file.
28221         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
28222         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
28223         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
28224         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
28225
28226         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
28227         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
28228         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
28229         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28230         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28231         (HP_TIMING_ACCUM): Remove.
28232         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28233         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
28234         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28235
28236         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
28237         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
28238         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
28239         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
28240         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
28241         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28242         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
28243         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28244
28245         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
28246
28247 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
28248
28249         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
28250
28251 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28252
28253         Sync up with gettext.
28254         * intl/loadmsgcat.c: Define O_BINARY if not defined.
28255         [_MSC_VER]: Include malloc.h
28256         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
28257         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
28258         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
28259         TEMP_FAILURE_RETRY.  Cast return of alloca.
28260         [!_LIBC] Call gl_rwlock_init.
28261         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
28262
28263 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28264
28265         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
28266         before checking its value.
28267
28268 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28269
28270         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
28271
28272         * debug/memcpy_chk.c: Don't include pagecopy.h.
28273         * debug/mempcpy_chk.c: Likewise.
28274         * string/memcpy.c: Likewise.
28275         * string/memmove.c: Likewise.
28276         * sysdeps/powerpc/memmove.c: Likewise.
28277         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
28278         definition of PAGE_COPY_FWD_MAYBE here...
28279         * sysdeps/generic/pagecopy.h: ... from here.
28280         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
28281
28282 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
28283             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28284
28285         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
28286         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
28287         optimizations.
28288         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
28289         (__libc_ifunc_impl_list): Likewise.
28290         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
28291         multiarch strcat for PPC64.
28292         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
28293         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
28294
28295 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28296
28297         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
28298
28299 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28300
28301         * intl/loadmsgcat.c: Remove declaration of
28302         get_sysdep_segment_value.
28303         (get_sysdep_segment_value): Use ISO C style.
28304         (_nl_load_domain): Use ISO C style.  Get rid of redundant
28305         semicolon.  Fix typo and formatting in comment.
28306         (_nl_unload_domain): Use ISO C style.
28307
28308         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
28309
28310 2014-07-02  Will Newton  <will.newton@linaro.org>
28311
28312         * malloc/obstack.c: Merge from gnulib master.
28313         [HAVE_CONFIG_H]: Remove conditional code.
28314         [!_LIBC]: Include config.h.
28315         [!ELIDE_CODE]: Don't include inttypes.h, include
28316         stdint.h unconditionally.
28317         (print_and_abort): Mark as _Noreturn.
28318         (_obstack_allocated_p): Mark as __attribute_pure__.
28319         (obstack_free): Rename to __obstack_free.
28320         [!__attribute__]: Remove conditional code.
28321         * malloc/obstack.h: Merge from gnulib master.
28322         [__cplusplus]: Move conditional down.
28323         [!__attribute_pure__]: Define __attribute_pure__ here
28324         if it is not already defined.
28325         (_obstack_memory_used): Mark as __attribute_pure__.
28326         [!__obstack_free]: Define as obstack_free.
28327         [__GNUC__]: Remove check for ancient NeXT gcc.
28328
28329 2014-07-02  Will Newton  <will.newton@linaro.org>
28330             Paul Eggert  <eggert@cs.ucla.edu>
28331
28332         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
28333
28334 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28335
28336         * resolv/gethnamaddr.c: Add comment warning that the file is
28337         not maintained.
28338
28339 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
28340
28341         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
28342         entries.
28343
28344         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
28345         entry for aio_cancel and aio_cancel64.
28346         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
28347         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
28348         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
28349         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
28350         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
28351         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
28352         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
28353         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
28354         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
28355         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
28356         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
28357         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
28358         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
28359
28360 2014-07-01  Roland McGrath  <roland@hack.frob.com>
28361
28362         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
28363         * nptl/pthread_mutex_lock.c: Likewise.
28364         * nptl/pthread_mutex_timedlock.c: Likewise.
28365         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
28366
28367 2014-07-01  Richard henderson  <rth@redhat.com>
28368
28369         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
28370         (__isnan, __isnanl): Remove.
28371         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
28372
28373         * sysdeps/alpha/fpu/libm-test-ulps: Update.
28374
28375 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
28376
28377         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
28378
28379 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28380
28381         * resolv/nss_dns/dns-host.c (getanswer_r)
28382         [MULTI_PTRS_ARE_ALIASES]: Remove code.
28383
28384 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
28385
28386         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28387         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
28388         undefine.
28389         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
28390         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
28391
28392 2014-07-01  Roland McGrath <roland@hack.frob.com>
28393
28394         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
28395         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
28396
28397         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
28398         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
28399
28400         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
28401         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
28402         ... here.
28403         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
28404         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
28405
28406         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
28407         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
28408         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
28409         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
28410
28411         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
28412         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
28413         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
28414         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
28415         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
28416         Moved ...
28417         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
28418         ... here.
28419         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
28420         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
28421         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
28422         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
28423         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
28424         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
28425         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
28426         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
28427         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
28428         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
28429         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
28430         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
28431         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
28432         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
28433         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
28434         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
28435         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
28436         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
28437         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
28438         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
28439         ... here.
28440         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
28441         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
28442         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
28443         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
28444         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
28445         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
28446         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
28447         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
28448
28449 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
28450
28451         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
28452         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
28453         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
28454         Add sysdep.
28455
28456 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28457
28458         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28459
28460 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28461
28462         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
28463         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28464
28465         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
28466
28467         * sysdeps/arm/libm-test-ulps: Regenerated.
28468
28469 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28470             Roland McGrath <roland@hack.frob.com>
28471
28472         * test-skeleton.c (signal_handler): Kill the whole process group
28473         before killing the child individually.
28474         (main): Report any failure on `setpgid'.
28475
28476 2014-06-30  Roland McGrath  <roland@hack.frob.com>
28477
28478         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
28479         from _TLS_H to _ARM_NPTL_TLS_H.
28480         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
28481         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
28482
28483 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28484
28485         [BZ #16539]
28486         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
28487         (__expm1l): Return argument unchanged when small but not
28488         subnormal.
28489
28490         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
28491         include macro name.
28492         (_FP_UNPACK_RAW_1_P): Likewise.
28493         (_FP_PACK_RAW_1): Likewise.
28494         (_FP_PACK_RAW_1_P): Likewise.
28495         (_FP_MUL_MEAT_1_wide): Likewise.
28496         (_FP_MUL_MEAT_DW_1_hard): Likewise.
28497         (_FP_MUL_MEAT_1_hard): Likewise.
28498         (_FP_DIV_MEAT_1_imm): Likewise.
28499         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
28500         (_FP_DIV_MEAT_1_udiv): Likewise.
28501         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
28502         (_FP_UNPACK_RAW_2): Likewise.
28503         (_FP_UNPACK_RAW_2_P): Likewise.
28504         (_FP_PACK_RAW_2): Likewise.
28505         (_FP_PACK_RAW_2_P): Likewise.
28506         (_FP_MUL_MEAT_DW_2_wide): Likewise.
28507         (_FP_MUL_MEAT_2_wide): Likewise.
28508         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
28509         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
28510         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
28511         (_FP_MUL_MEAT_2_gmp): Likewise.
28512         (_FP_DIV_MEAT_2_udiv): Likewise.
28513         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
28514         (_FP_FRAC_SRL_4): Likewise.
28515         (_FP_FRAC_SRST_4): Likewise.
28516         (_FP_FRAC_SRS_4): Likewise.
28517         (_FP_UNPACK_RAW_4): Likewise.
28518         (_FP_UNPACK_RAW_4_P): Likewise.
28519         (_FP_PACK_RAW_4): Likewise.
28520         (_FP_PACK_RAW_4_P): Likewise.
28521         (_FP_MUL_MEAT_DW_4_wide): Likewise.
28522         (_FP_MUL_MEAT_4_wide): Likewise.
28523         (_FP_MUL_MEAT_4_gmp): Likewise.
28524         (umul_ppppmnnn): Likewise.
28525         (_FP_DIV_MEAT_4_udiv): Likewise.
28526         (__FP_FRAC_ADD_4): Likewise.
28527         (__FP_FRAC_SUB_3): Likewise.
28528         (__FP_FRAC_SUB_4): Likewise.
28529         (__FP_FRAC_DEC_3): Likewise.
28530         (__FP_FRAC_DEC_4): Likewise.
28531         (__FP_FRAC_ADDI_4): Likewise.
28532         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
28533         (_FP_FRAC_SRL_8): Likewise.
28534         (_FP_FRAC_SRS_8): Likewise.
28535
28536         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
28537         include macro name.
28538         (FP_UNPACK_RAW_EP): Likewise.
28539         (FP_PACK_RAW_E): Likewise.
28540         (FP_PACK_RAW_EP): Likewise.
28541         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
28542         (_FP_ISSIGNAN): Likewise.
28543         (_FP_ADD_INTERNAL): Likewise.
28544         (_FP_FMA): Likewise.
28545         (_FP_CMP): Likewise.
28546         (_FP_SQRT): Likewise.
28547         (_FP_TO_INT): Likewise.
28548         (_FP_FROM_INT): Likewise.
28549         (FP_EXTEND): Likewise.
28550         (_FP_DIV_MEAT_N_loop): Likewise.
28551
28552 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28553
28554         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
28555         throughout.
28556
28557 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
28558
28559         [BZ #17097]
28560         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
28561         result with correct sign in case of exponents that produce
28562         overflow except for X very close to 1.
28563
28564 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
28565
28566         mktime: merge #if/#ifdef usage from glibc
28567         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
28568         as that works with both Glibc's and Gnulib's style.
28569         See thread starting at Siddhesh Poyarekar's bug report at:
28570         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
28571
28572 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
28573
28574         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
28575         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
28576         * sysdeps/tile/tilegx/memmove.c: Remove file.
28577
28578 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28579
28580         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
28581         abi-name definition.
28582         * scripts/soversions.awk: Do not handle or generate ABI lines.
28583         * shlib-versions: Remove ABI entries.
28584         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
28585         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
28586
28587 2014-06-27  Roland McGrath  <roland@hack.frob.com>
28588
28589         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
28590         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
28591         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
28592         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
28593         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
28594         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
28595         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
28596         Moved ...
28597         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
28598         ... here.
28599         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
28600         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
28601         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
28602         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
28603         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
28604         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
28605         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
28606         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
28607         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
28608         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
28609         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
28610         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
28611         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
28612         Moved ...
28613         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
28614         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
28615         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
28616         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
28617         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
28618         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
28619         Moved ...
28620         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
28621         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
28622         Moved ...
28623         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
28624         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
28625         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
28626         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
28627         Moved ...
28628         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
28629         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
28630         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
28631         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
28632         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
28633         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
28634         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
28635         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
28636         Moved ...
28637         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
28638         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
28639         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
28640         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
28641         Moved ...
28642         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
28643         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
28644         Moved ...
28645         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
28646         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
28647         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
28648         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
28649         Moved ...
28650         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
28651         ... here.
28652         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
28653         Identical file removed.
28654         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
28655         Moved ...
28656         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
28657         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
28658         Identical file removed.
28659         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
28660         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
28661         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
28662         Moved ...
28663         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
28664         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
28665         Identical file removed.
28666         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
28667         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
28668         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
28669         Identical file removed.
28670         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
28671         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
28672         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
28673         Identical file removed.
28674         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
28675         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
28676         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
28677         Identical file removed.
28678         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
28679         Moved ...
28680         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
28681         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
28682         Identical file removed.
28683         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
28684         Moved ...
28685         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
28686         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
28687         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
28688         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
28689         Identical file removed.
28690         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
28691         Moved ...
28692         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
28693         ... here.
28694         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
28695         Identical file removed.
28696         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
28697         Moved ...
28698         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
28699         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
28700         Identical file removed.
28701         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
28702         Moved ...
28703         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
28704         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
28705         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
28706         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
28707         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
28708         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
28709         Moved ...
28710         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
28711         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
28712         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
28713
28714         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
28715         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
28716         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
28717         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
28718         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
28719
28720 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
28721
28722         [BZ #17092]
28723         * nscd/nscd.c (monitor_child): Return exit status of child
28724         instead of return value from wait syscall.
28725
28726 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28727
28728         * configure.ac (libc_commonpagesize): Remove variable.
28729         (libc_relro_required): Likewise.
28730         (libc_cv_z_relro): Remove configure test.
28731         * configure: Regenerated.
28732         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
28733         variable.
28734         (libc_relro_required): Likewise.
28735         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
28736         (libc_relro_required): Likewise.
28737         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
28738         (libc_relro_required): Likewise.
28739         * sysdeps/arm/preconfigure: Regenerated.
28740         * sysdeps/ia64/preconfigure: Remove file.
28741         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
28742         variable.
28743         (libc_relro_required): Likewise.
28744
28745         [BZ #16561]
28746         [BZ #16562]
28747         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
28748         (__ieee754_yn): Set FE_TONEAREST mode internally and then
28749         recompute overflowing results in original rounding mode.
28750         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
28751         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
28752         recompute overflowing results in original rounding mode.
28753         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
28754         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28755         recompute overflowing results in original rounding mode.
28756         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
28757         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28758         recompute overflowing results in original rounding mode.
28759         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
28760         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28761         recompute overflowing results in original rounding mode.
28762         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
28763         (libc_feholdsetround_ctx): New macro.
28764         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
28765         * sysdeps/i386/fpu/libm-test-ulps: Update.
28766         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
28767
28768 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28769
28770         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
28771         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
28772         corresponding .cpsetup call.
28773
28774 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28775
28776         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
28777         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
28778         * sysdeps/arm/Makefile [$(subdir) = csu]
28779         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
28780         (static-only-routines): Add aeabi_read_tp here.
28781         (shared-only-routines): Add libc-aeabi_read_tp here.
28782         (CFLAGS-libc-start.c): Add -fexceptions here.
28783         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
28784         (sysdep_routines, static-only-routines, shared-only-routines):
28785         Don't add to these here.
28786         (CFLAGS-libc-start.c): Likewise.
28787
28788         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
28789         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
28790         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
28791         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
28792         * sysdeps/arm/Makefile [$(subdir) = rt]
28793         (librt-sysdep_routines, librt-shared-only-routines):
28794         Append rt-aeabi_unwind_cpp_pr1 here.
28795         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
28796         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
28797         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
28798         (libpthread-sysdep_routines, libpthread-shared-only-routines):
28799         Append nptl-aeabi_unwind_cpp_pr1 here.
28800         (tests): Filter out tst-cleanupx4 here.
28801         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
28802         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
28803         Don't do those here.
28804
28805 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28806
28807         * scripts/list-sources.sh: Do not handle ports specially.
28808
28809 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28810
28811         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
28812         * sysdeps/arm/feupdateenv.c: Likewise.
28813
28814         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
28815
28816 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28817
28818         * manual/texinfo.tex: Update to version 2014-05-05.10 with
28819         trailing whitespace removed.
28820         * scripts/config.guess: Update to version 2014-03-23.
28821         * scripts/config.sub: Update to version 2014-05-01
28822         * scripts/install-sh: Update to version 2013-12-25.23.
28823         * scripts/move-if-change: Update from gnulib.
28824
28825 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
28826
28827         * debug/memmove_chk.c: Remove pagecopy.h include.
28828
28829 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
28830
28831         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
28832         identical to gnulib mktime.
28833
28834 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28835
28836         * configure.ac: Do not test for machine being rs6000.  Do not test
28837         for powerpc*-*soft.
28838         * configure: Regenerated.
28839
28840         [BZ #11505]
28841         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
28842         test.
28843         * configure: Regenerated.
28844         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
28845         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
28846         Remove configure test.
28847         * sysdeps/arm/configure: Regenerated.
28848         * sysdeps/nptl/configure.ac: Do not check
28849         libc_cv_asm_cfi_directives.
28850         * sysdeps/nptl/configure: Regenerated.
28851         * sysdeps/x86_64/nptl/configure.ac: Remove file.
28852         * sysdeps/x86_64/nptl/configure: Remove generated file.
28853         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
28854         unconditional.
28855         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
28856
28857 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
28858
28859         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
28860         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
28861         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
28862         it is defined.
28863
28864         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
28865         instead of whether it is defined.
28866         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
28867         * sysdeps/hppa/dl-machine.h: Likewise.
28868         * sysdeps/ia64/dl-machine.h: Likewise.
28869         * sysdeps/m68k/dl-machine.h: Likewise.
28870         * sysdeps/microblaze/dl-machine.h: Likewise.
28871         * sysdeps/mips/dl-machine.: Likewise.
28872         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
28873         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
28874         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
28875         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
28876         * sysdeps/sh/dl-machine.h: Likewise.
28877         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
28878         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
28879         * sysdeps/tile/dl-machine.h: Likewise.
28880         * sysdeps/x86_64/dl-machine.h: Likewise.
28881
28882         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
28883         code.
28884         (verify_persistent_db): Likewise.
28885
28886 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28887
28888         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
28889         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
28890         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
28891         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
28892         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
28893         Moved ...
28894         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
28895         ... here.
28896         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
28897         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
28898         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
28899         Identical file removed.
28900         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
28901         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
28902         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
28903         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
28904         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
28905         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
28906         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
28907         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
28908         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
28909         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
28910         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
28911         Moved ...
28912         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
28913         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
28914         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
28915         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
28916         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
28917         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
28918         Moved ...
28919         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
28920         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
28921         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
28922         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
28923         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
28924         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
28925         Identical file removed.
28926         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
28927         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
28928         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
28929         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
28930         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
28931         Moved ...
28932         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
28933         ... here.
28934         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
28935         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
28936         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
28937         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
28938         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
28939         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
28940         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
28941         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
28942         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
28943         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
28944         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
28945         Moved ...
28946         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
28947         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
28948         Moved ...
28949         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
28950         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
28951         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
28952         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
28953         Moved ...
28954         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
28955         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
28956         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
28957
28958         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
28959         folded into ...
28960         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
28961         * sysdeps/unix/sysv/linux/s390/Versions
28962         (libpthread: GLIBC_2.19): New version set.
28963         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
28964         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
28965         (librt: GLIBC_2.3.3): New version set.
28966         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
28967         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
28968         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
28969         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
28970         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
28971         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
28972         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
28973         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
28974         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
28975         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
28976         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
28977         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
28978         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
28979         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
28980         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
28981         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
28982         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
28983         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
28984         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
28985         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
28986         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
28987         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
28988         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
28989         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
28990         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
28991         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
28992         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
28993         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
28994         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
28995         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
28996         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
28997         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
28998         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
28999         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
29000         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
29001         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
29002         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
29003         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
29004         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
29005         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
29006         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
29007         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
29008         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
29009         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
29010         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
29011
29012         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
29013         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
29014         (__libc_vfork): Define the function under this name.
29015         [!NOT_IN_libc] (__vfork): Make this an alias.
29016         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29017         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
29018         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
29019         (__libc_vfork): Define the function under this name.
29020         [!NOT_IN_libc] (__vfork): Make this an alias.
29021         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29022         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
29023         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
29024         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
29025         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
29026         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
29027
29028         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
29029         code that was previously under [RESET_PID].
29030         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
29031         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
29032         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
29033
29034         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
29035         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
29036         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
29037         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
29038         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
29039         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
29040         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
29041         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
29042         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
29043         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
29044         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
29045         Moved ...
29046         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
29047         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
29048         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
29049         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
29050         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
29051         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
29052         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
29053         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
29054         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
29055         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
29056         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
29057         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
29058         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
29059         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
29060         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
29061         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
29062         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
29063         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
29064         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
29065         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
29066         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
29067         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
29068         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
29069         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
29070         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
29071         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
29072         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
29073         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
29074         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
29075
29076 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29077
29078         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
29079         that was previously under [RESET_PID].
29080         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
29081
29082 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29083
29084         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
29085         not undefine and redefine.
29086         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
29087         [O_CLOEXEC]: Make code unconditional.
29088         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
29089         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
29090         <kernel-features.h>.
29091         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
29092         conditional variable definition.
29093         (shm_open) [O_CLOEXEC]: Make code unconditional.
29094         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
29095         code.
29096
29097         * configure.ac (USE_REGPARMS): Don't define here.
29098         * configure: Regenerated.
29099         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
29100         * sysdeps/i386/configure: Regenerated.
29101
29102         * nptl/createthread.c: Don't include kernel-features.h.
29103         * nptl/pthread_cancel.c: Likewise.
29104         * nptl/pthread_condattr_setclock.c: Likewise.
29105         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
29106         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
29107         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
29108         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
29109         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
29110         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
29111         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
29112         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
29113         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
29114         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
29115         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
29116         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
29117         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
29118         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
29119         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
29120         * nscd/gai.c: Likewise.
29121         * nss/nss_db/db-open.c: Likewise.
29122         * sysdeps/generic/ldsodefs.h: Likewise.
29123         * sysdeps/sh/nptl/tls.h: Likewise.
29124         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
29125         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
29126         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
29127         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
29128         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
29129         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
29130         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
29131         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
29132         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
29133         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
29134         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
29135         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
29136         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
29137         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
29138         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
29139         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
29140         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
29141         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
29142         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
29143         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
29144         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
29145         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
29146         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
29147         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
29148         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
29149         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
29150         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
29151         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
29152         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
29153         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
29154         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
29155         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
29156         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
29157         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29158         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29159         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
29160         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29161         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
29162         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
29163         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
29164         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
29165         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
29166         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
29167         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
29168         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
29169         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
29170         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
29171         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
29172         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
29173         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
29174         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
29175         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
29176         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
29177         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
29178         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
29179         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
29180         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
29181         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
29182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
29183         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
29184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
29185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
29186         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
29187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
29188         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
29189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
29190         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
29191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
29192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
29193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
29194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
29195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
29196         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
29197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
29198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
29199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
29200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
29201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
29202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
29203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
29204         * sysdeps/unix/sysv/linux/pread.c: Likewise.
29205         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
29206         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
29207         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
29208         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
29209         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
29210         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
29211         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
29212         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
29213         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
29214         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
29215         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
29216         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
29217         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
29218         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
29219         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
29220         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
29221         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
29222         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
29223         * sysdeps/unix/sysv/linux/system.c: Likewise.
29224         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
29225         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
29226         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
29227         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
29228         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
29229         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
29230         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
29231
29232         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
29233         * configure: Regenerated.
29234         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
29235
29236         * configure.ac (base_machine): Do not set specially for particular
29237         machines here.
29238         * configure: Regenerated.
29239         * sysdeps/powerpc/preconfigure: Move machine and base_machine
29240         settings from configure.ac.
29241         * sysdeps/i386/preconfigure: New file.
29242         * sysdeps/s390/preconfigure: Likewise.
29243         * sysdeps/sh/preconfigure: Likewise.
29244         * sysdeps/sparc/preconfigure: Likewise.
29245
29246 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29247
29248         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
29249         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
29250         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
29251         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
29252         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
29253         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
29254         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
29255         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
29256         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
29257         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
29258         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
29259         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
29260         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
29261         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
29262         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
29263         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
29264         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
29265         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
29266         * sysdeps/sparc/sparc64/Makefile: ... appended here.
29267
29268         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
29269         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
29270         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
29271         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
29272         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
29273         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
29274         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
29275         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
29276         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
29277         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
29278         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
29279         * sysdeps/sparc/sparc32/sem_post.c: ... here.
29280         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
29281         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
29282         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
29283         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
29284         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
29285         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
29286         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
29287         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
29288         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
29289         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
29290         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
29291         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
29292         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
29293         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
29294         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
29295         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
29296         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
29297         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
29298         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
29299         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
29300         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
29301         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
29302         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
29303         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
29304         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
29305         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
29306
29307         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
29308         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
29309         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
29310         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
29311         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
29312         Moved ...
29313         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
29314         ... here.
29315         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
29316         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
29317         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
29318         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
29319         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
29320         Moved ...
29321         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
29322         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
29323         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
29324         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
29325         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
29326         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
29327         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
29328         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
29329         Moved ...
29330         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
29331         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
29332         Moved ...
29333         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
29334         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
29335         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
29336         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
29337         Moved ...
29338         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
29339         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
29340         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
29341         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
29342         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
29343         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
29344         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
29345         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
29346         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
29347         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
29348         Moved ...
29349         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
29350         ... here.
29351         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
29352         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
29353         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
29354         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
29355         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
29356         Moved ...
29357         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
29358         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
29359         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
29360         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
29361         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
29362         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
29363         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
29364         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
29365         Moved ...
29366         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
29367         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
29368         Moved ...
29369         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
29370         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
29371         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
29372         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
29373         Moved ...
29374         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
29375         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
29376         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
29377         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
29378         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
29379
29380 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29381
29382         * timezone/checktab.awk: Update from tzcode 2014e.
29383         * timezone/private.h: Likewise.
29384         * timezone/tzfile.h: Likewise.
29385         * timezone/zdump.c: Likewise.
29386         * timezone/zic.c: Likewise.
29387
29388         * sysdeps/unix/sysv/linux/kernel-features.h
29389         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
29390         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
29391         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
29392         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
29393         Remove conditional code.
29394
29395 2014-06-25  Will Newton  <will.newton@linaro.org>
29396
29397         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
29398         (_dl_arm_cap_flags): Add HWCAP2 values.
29399         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
29400         (_DL_HWCAP_COUNT): Increase to 37.
29401         (_DL_HWCAP_LAST): New define.
29402         (_DL_HWCAP2_LAST): New define.
29403         (_dl_procinfo): Add support for printing
29404         AT_HWCAP2 entries.
29405         (_dl_string_hwcap): Use _dl_hwcap_string.
29406
29407 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29408
29409         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29410
29411 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29412
29413         * README: Do not mention ports directory.
29414
29415         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
29416         Remove macro.
29417         * sysdeps/unix/sysv/linux/futimes.c: Do not include
29418         <kernel-features.h>.
29419         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
29420         conditional variable definition.
29421         (__futimes): Update comment.
29422         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
29423         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
29424
29425         [BZ #16560]
29426         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
29427         arguments close to 0.
29428         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
29429         Likewise.
29430         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
29431         Likewise.
29432         * math/auto-libm-test-in: Add more tests of exp10.
29433         * math/auto-libm-test-out: Regenerated.
29434         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29435
29436         * sysdeps/unix/sysv/linux/kernel-features.h
29437         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
29438         * sysdeps/unix/sysv/linux/readv.c: Do not include
29439         <kernel-features.h>.
29440         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29441         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29442         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29443         unconditional.
29444         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29445         conditional code.
29446         * sysdeps/unix/sysv/linux/writev.c: Do not include
29447         <kernel-features.h>.
29448         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29449         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29450         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29451         unconditional.
29452         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29453         conditional code.
29454
29455 2014-06-25  Will Newton  <will.newton@linaro.org>
29456
29457         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
29458         comment changes throughout the file.  Remove checks
29459         for HAVE_*_H definitions that are not required.
29460         (__gen_tempname): Call abort if an unknown kind value is
29461         passed.
29462
29463 2014-06-25  Andreas Schwab  <schwab@suse.de>
29464
29465         [BZ #17086]
29466         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
29467         scalbln, scalblnf, scalblnl in libc.
29468
29469 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
29470
29471         [BZ #17086]
29472         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
29473         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
29474         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
29475
29476 2014-06-24  Roland McGrath  <roland@hack.frob.com>
29477
29478         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
29479         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
29480         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
29481         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
29482         Update #include.
29483         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
29484         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
29485         Update #include.
29486         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
29487         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
29488         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
29489         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
29490         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
29491         * sysdeps/x86/bits/pthreadtypes.h: ... here.
29492         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
29493         * sysdeps/x86/bits/semaphore.h: ... here.
29494         * sysdeps/x86/nptl/elide.h: Moved ...
29495         * sysdeps/x86/elide.h: ... here.
29496         * sysdeps/x86_64/nptl/Implies: File removed.
29497         * sysdeps/i386/nptl/Implies: File removed.
29498
29499 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
29500
29501         [BZ #16539]
29502         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
29503         return the argument for normal arguments with exponent below -64.
29504         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
29505         Likewise.
29506         * math/auto-libm-test-in: Add another test of expm1.
29507         * math/auto-libm-test-out: Regenerated.
29508
29509         [BZ #16287]
29510         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
29511         calling __erfcl for arguments at least 16.
29512         * math/auto-libm-test-in: Add more tests of erf.
29513         * math/auto-libm-test-out: Regenerated.
29514
29515         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
29516         individual architectures.
29517         * sysdeps/unix/sysv/linux/configure: Regenerated.
29518         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
29519         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
29520         * sysdeps/unix/sysv/linux/powerpc/configure.ac
29521         (ldd_rewrite_script): Define variable.
29522         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
29523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
29524         file.
29525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
29526         generated file.
29527         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
29528         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
29529         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
29530         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
29531         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
29532         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
29533         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
29534         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
29535
29536 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29537
29538         [BZ #17084]
29539         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
29540         Rename member __data.d to __data.__elision_data.
29541
29542 2014-06-24  Wilco  <wdijkstr@arm.com>
29543
29544         * NEWS: Add 16918 to fixed bug list.
29545
29546 2014-06-24  Wilco  <wdijkstr@arm.com>
29547
29548         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
29549
29550 2014-06-24  Wilco  <wdijkstr@arm.com>
29551
29552         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
29553         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
29554         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
29555         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
29556         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
29557         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
29558         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
29559         Use _FPU_MASK_RM.
29560
29561 2014-06-24  Wilco  <wdijkstr@arm.com>
29562
29563         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
29564
29565 2014-06-24  Wilco  <wdijkstr@arm.com>
29566
29567         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
29568         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
29569         * sysdeps/arm/fesetround.c (fesetround): Remove space.
29570         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
29571
29572 2014-06-24  Wilco  <wdijkstr@arm.com>
29573
29574         [BZ #16918]
29575         * sysdeps/arm/feupdateenv.c (feupdateenv):
29576         Rewrite to reduce FPSCR accesses and fix return value.
29577
29578 2014-06-24  Wilco  <wdijkstr@arm.com>
29579
29580         * sysdeps/arm/fclrexcpt.c (feclearexcept):
29581         Optimize to avoid unnecessary FPSCR writes.
29582         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
29583         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
29584         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
29585         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
29586
29587 2014-06-24  Wilco  <wdijkstr@arm.com>
29588
29589         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
29590         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
29591         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
29592         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
29593         Call libc_fetestexcept_vfp.
29594         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
29595         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
29596         __SOFTFP__ ifdef so that they can be built for softfp.
29597
29598 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29599
29600         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
29601         argument type signed char.
29602
29603         * Makerules (check-abi): Dump diff of symlist if the test
29604         fails.
29605
29606 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29607
29608         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
29609         using abort.
29610
29611         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
29612         Remove unused variable ST.
29613
29614 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
29615
29616         [BZ #16354]
29617         [BZ #17061]
29618         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
29619         small arguments before calling __expm1.
29620         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
29621         small arguments before calling __expm1f.
29622         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
29623         small arguments before calling __expm1l.
29624         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
29625         Likewise.
29626         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
29627         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
29628         spurious underflow for some cosh tests.
29629         * math/auto-libm-test-out: Regenerated.
29630         * sysdeps/i386/fpu/libm-test-ulps: Update.
29631
29632         [BZ #17050]
29633         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
29634         (__ieee754_y1): Set errno if return value overflows.
29635         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
29636         (__ieee754_y1f): Set errno if return value overflows.
29637         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
29638         (__ieee754_y1l): Set errno if return value overflows.
29639         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
29640         (__ieee754_y1l): Set errno if return value overflows.
29641         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
29642         * math/auto-libm-test-out: Regenerated.
29643
29644         * math/gen-auto-libm-tests.c: Document use of
29645         ignore-zero-inf-sign.
29646         (input_flag_type): Add value flag_ignore_zero_inf_sign.
29647         (input_flags): Add ignore-zero-inf-sign.
29648         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
29649         * math/gen-libm-test.pl (generate_testfile): Handle
29650         ignore-zero-inf-sign.
29651         * math/auto-libm-test-in: Mark some cpow tests with
29652         ignore-zero-inf-sign and some with xfail-rounding.
29653         * math/auto-libm-test-out: Regenerated.
29654         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
29655         * sysdeps/i386/fpu/libm-test-ulps: Update.
29656         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29657
29658         [BZ #16315]
29659         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
29660         overflowing or underflowing operations take place with sign of
29661         result.
29662         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
29663         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
29664         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
29665         (__ieee754_pow): Recompute overflowing and underflowing results in
29666         original rounding mode.
29667         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
29668         (__powl_helper): Allow negative argument X and scale negated value
29669         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
29670         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
29671         overflowing or underflowing operations take place with sign of
29672         result.
29673         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
29674         Include <math.h>.
29675         * math/auto-libm-test-in: Add more tests of pow.
29676         * math/auto-libm-test-out: Regenerated.
29677         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
29678         (pow_tonearest_test_data): Remove.
29679         (pow_test_tonearest): Likewise.
29680         (pow_towardzero_test_data): Likewise.
29681         (pow_test_towardzero): Likewise.
29682         (pow_downward_test_data): Likewise.
29683         (pow_test_downward): Likewise.
29684         (pow_upward_test_data): Likewise.
29685         (pow_test_upward): Likewise.
29686         (main): Don't call removed functions.
29687         * sysdeps/i386/fpu/libm-test-ulps: Update.
29688         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29689
29690 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29691
29692         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
29693         Moved ...
29694         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
29695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
29696         Moved ...
29697         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
29698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
29699         Moved ...
29700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
29701         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
29702         Moved ...
29703         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
29704         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
29705         File removed.
29706         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
29707         File removed.
29708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
29709         File removed.
29710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
29711         File removed.
29712         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
29713         File removed.
29714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
29715         File removed.
29716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
29717         File removed.
29718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
29719         File removed.
29720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
29721         File removed.
29722         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
29723         File removed.
29724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
29725         File removed.
29726         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
29727         File removed.
29728         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
29729         Moved ...
29730         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
29731         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
29732         Moved ...
29733         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
29734         ... here.
29735         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
29736         Moved ...
29737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
29738         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
29739         Moved ...
29740         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
29741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
29742         Moved ...
29743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
29744         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
29745         Moved ...
29746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
29747         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
29748         Moved ...
29749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
29750         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
29751         Moved ...
29752         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
29753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
29754         Moved ...
29755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
29756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
29757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
29758         ... here.
29759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
29760         Moved ...
29761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
29762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
29763         Moved ...
29764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
29765         ... here.
29766         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
29767         Moved ...
29768         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29769         ... here.
29770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
29771         Moved ...
29772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
29773         ... here.
29774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
29775         Moved ...
29776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
29777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
29778         Moved ...
29779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
29780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
29781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
29782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
29783         Moved ...
29784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
29785         ... here.
29786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
29787         Moved ...
29788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
29789         ... here.
29790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
29791         Moved ...
29792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
29793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
29794         Moved ...
29795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
29796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
29797         Moved ...
29798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
29799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
29800         Moved ...
29801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
29802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
29803         Moved ...
29804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
29805         ... here.
29806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
29807         Moved ...
29808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
29809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
29810         Moved ...
29811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
29812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
29813         Moved ...
29814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
29815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
29816         Moved ...
29817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
29818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
29819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
29820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
29821         Moved ...
29822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
29823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
29824         Moved ...
29825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
29826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
29827         Moved ...
29828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
29829         ... here.
29830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
29831         Moved ...
29832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
29833         ... here.
29834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
29835         Moved ...
29836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
29837         ... here.
29838         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
29839         Moved ...
29840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
29841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
29842         Moved ...
29843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
29844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
29845         Moved ...
29846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
29847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
29848         Moved ...
29849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
29850         ... here.
29851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
29852         Moved ...
29853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
29854         ... here.
29855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
29856         Moved ...
29857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
29858         ... here.
29859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
29860         Moved ...
29861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
29862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
29863         Moved ...
29864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
29865
29866 2014-06-23  Will Newton  <will.newton@linaro.org>
29867             Wilco  <wdijkstr@arm.com>
29868
29869         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
29870         implementation.  Include get-rounding-mode.h.
29871         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
29872         [!libc_feholdsetround_noex_ctx]: Define
29873         libc_feholdsetround_noex_ctx.
29874         [!libc_feholdsetround_noexf_ctx]: Define
29875         libc_feholdsetround_noexf_ctx.
29876         [!libc_feholdsetround_noexl_ctx]: Define
29877         libc_feholdsetround_noexl_ctx.
29878         (libc_feholdsetround_ctx): New function.
29879         (libc_feresetround_ctx): New function.
29880         (libc_feholdsetround_noex_ctx): New function.
29881         (libc_feresetround_noex_ctx): New function.
29882
29883 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29884
29885         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
29886         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
29887         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
29888         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
29889         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
29890         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
29891
29892         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
29893         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
29894         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
29895         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
29896         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
29897         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
29898         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
29899         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
29900         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
29901         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
29902         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
29903         Moved ...
29904         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
29905         ... here.
29906         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
29907         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
29908         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
29909         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
29910         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
29911         Moved ...
29912         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
29913         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
29914         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
29915         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
29916         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
29917         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
29918         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
29919         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
29920         Moved ...
29921         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
29922         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
29923         Moved ...
29924         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
29925         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
29926         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
29927         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
29928         Moved ...
29929         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
29930         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
29931         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
29932         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
29933         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
29934         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
29935         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
29936         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
29937         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
29938         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
29939         Moved ...
29940         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
29941         ... here.
29942         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
29943         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
29944         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
29945         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
29946         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
29947         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
29948         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
29949         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
29950         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
29951         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
29952         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
29953         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
29954         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
29955         Moved ...
29956         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
29957         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
29958         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
29959         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
29960         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
29961         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
29962         Moved ...
29963         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
29964         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
29965         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
29966         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
29967         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
29968
29969         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
29970         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
29971         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
29972         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
29973         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
29974         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
29975         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
29976         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
29977         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
29978         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
29979         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
29980         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
29981         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
29982         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
29983         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
29984         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
29985         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
29986         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
29987         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
29988         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
29989         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
29990         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
29991         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
29992         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
29993         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
29994         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
29995         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
29996         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
29997
29998 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
29999
30000         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30001         (FALLOC_FL_COLLAPSE_RANGE): New macro.
30002         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
30003         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
30004         (IPV6_PMTUDISC_INTERFACE): Likewise.
30005         (IPV6_PMTUDISC_OMIT): Likewise.
30006
30007 2014-06-23  Andreas Schwab  <schwab@suse.de>
30008
30009         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
30010         Remove unused errout label.
30011
30012 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30013
30014         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
30015         macro: hardware supports Vector Crypto instructions.
30016
30017 2014-06-23  Will Newton  <will.newton@linaro.org>
30018
30019         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
30020         rather than __builtin_expect.
30021
30022         * elf/dl-lookup.c (undefined_msg): Remove variable.
30023         (_dl_lookup_symbol_x): Replace undefined_msg with string
30024         literal.
30025
30026         * elf/dl-lookup.c (do_lookup_unique): New function.
30027         (do_lookup_x): Move STB_GNU_UNIQUE handling code
30028         to a separate function.
30029
30030 2014-06-23  Andreas Schwab  <schwab@suse.de>
30031
30032         [BZ #17079]
30033         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
30034         before reading the next line.
30035
30036 2014-06-23  Will Newton  <will.newton@linaro.org>
30037
30038         * test-skeleton.c (signal_handler): Use printf and %m
30039         rather than perror.  Use printf rather than fprintf to
30040         stderr.  Use puts rather than fputs to stderr.
30041         (main): Likewise.
30042
30043 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
30044
30045         * nscd/nscd.c (thread_info_t): Remove typedef.
30046         (thread_info): Remove variable.
30047
30048 2014-06-21  Allan McRae  <allan@archlinux.org>
30049
30050         * NEWS: Mention CVE-2014-4043.
30051
30052 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30053
30054         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
30055         * nptl/smp.h: ... here.
30056
30057         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
30058
30059         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
30060         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
30061         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
30062         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
30063
30064         * nptl/allocatestack.c: Include <stack-aliasing.h>.
30065         * nptl/stack-aliasing.h: New file.
30066         * sysdeps/i386/i686/stack-aliasing.h: New file.
30067         * sysdeps/i386/i686/nptl/Makefile: File removed.
30068         * sysdeps/x86_64/stack-aliasing.h: New file.
30069         * sysdeps/x86_64/nptl/Makefile
30070         (CFLAGS-pthread_create.c): Variable removed.
30071
30072         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
30073         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
30074         old file.
30075         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
30076         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
30077         old file.
30078
30079 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
30080
30081         * sysdeps/unix/sysv/linux/arm/kernel-features.h
30082         (__ASSUME_SIGFRAME_V2): Remove macro.
30083         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
30084         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
30085         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
30086         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
30087         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
30088         Declare as function.  Remove conditional macro definitions.
30089         (__default_rt_sa_restorer): Likewise.
30090         (__default_sa_restorer_v1): Remove declaration.
30091         (__default_sa_restorer_v2): Likewise.
30092         (__default_rt_sa_restorer_v1): Likewise.
30093         (__default_rt_sa_restorer_v2): Likewise.
30094         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
30095         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
30096         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
30097
30098 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30099
30100         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
30101         (libpthread-routines): Add sysdep.
30102         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
30103         * sysdeps/unix/sysv/linux/sparc/Versions
30104         (libpthread: GLIBC_2.3.3): New version set.
30105         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
30106         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
30107         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
30108         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
30109         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
30110         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
30111         Moved ...
30112         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
30113         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
30114         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
30115         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
30116         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
30117         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
30118         * sysdeps/sparc/nptl/sem_init.c: ... here.
30119         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
30120         * sysdeps/sparc/nptl/sem_post.c: ... here.
30121         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
30122         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
30123         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
30124         * sysdeps/sparc/nptl/sem_wait.c: ... here.
30125         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
30126         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
30127         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
30128         (libpthread-routines): Add cpu_relax.
30129         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
30130         File removed.
30131         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
30132         (librt: GLIBC_2.3.3): New version set.
30133         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
30134         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
30135         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
30136         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
30137         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
30138         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
30139         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
30140         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
30141         Moved ...
30142         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
30143         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
30144         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
30145         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
30146         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
30147         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
30148         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
30149         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
30150         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
30151         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
30152         Moved ...
30153         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
30154         Update #include.
30155         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
30156         Moved ...
30157         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
30158         Update #include.
30159         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
30160         Moved ...
30161         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
30162         Update #include.
30163         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
30164         Moved ...
30165         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
30166         Update #include.
30167         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
30168         Moved ...
30169         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
30170         Update #include.
30171         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
30172         Moved ...
30173         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
30174         Update #include.
30175         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
30176         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
30177         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
30178         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
30179         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
30180         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
30181         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
30182         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
30183         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
30184         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
30185         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
30186         Moved ...
30187         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
30188         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
30189         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
30190         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
30191         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
30192
30193 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30194
30195         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
30196         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
30197         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
30198         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
30199         * nscd/nscd.c: Likewise.
30200         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
30201         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
30202         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
30203         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
30204
30205         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
30206         <kernel-features.h>.
30207         (init_mq_netlink): Remove conditional have_sock_cloexec
30208         definitions.  Remove code conditional on have_sock_cloexec < 0.
30209         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
30210         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
30211         * sysdeps/unix/sysv/linux/opensock.c: Do not include
30212         <kernel-features.h>.
30213         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
30214         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
30215
30216 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30217
30218         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
30219         Add tests for memset_chk and memset.
30220
30221         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
30222         with AVX2_Usable.
30223
30224 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30225
30226         [BZ #16046]
30227         * elf/tst-dl-iter-static.c: New file.
30228         * elf/Makefile (tests-static): Add tst-dl-iter-static.
30229
30230         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
30231         error.
30232
30233 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30234
30235         * sysdeps/unix/sysv/linux/kernel-features.h
30236         (__ASSUME_F_GETOWN_EX): Remove macro.
30237         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
30238         <kernel-features.h>.
30239         (miss_F_GETOWN_EX): Remove variable or macro.
30240         (do_fcntl): Do not check miss_F_GETOWN_EX.
30241         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
30242
30243         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
30244         Remove macro.
30245         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
30246         [!__ASSUME_AT_RANDOM]: Remove conditional code.
30247         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
30248
30249         * sysdeps/unix/sysv/linux/kernel-features.h
30250         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
30251         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
30252         [ADJ_OFFSET_SS_READ]: Make code unconditional.
30253         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
30254
30255 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30256
30257         [BZ #17075]
30258         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
30259         Fix calculation of the symbol's value.
30260         * sysdeps/arm/tst-armtlsdescloc.c: New file.
30261         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
30262         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
30263         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
30264         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
30265         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
30266         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
30267         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
30268         (modules-names): Add `tst-armtlsdescmod',
30269         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
30270         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
30271         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30272         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
30273         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
30274         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30275         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
30276         ($(objpfx)tst-armtlsdescloc): New dependency.
30277         ($(objpfx)tst-armtlsdescextnow): Likewise.
30278         ($(objpfx)tst-armtlsdescextlazy): Likewise.
30279         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
30280         TLS scheme support.
30281         * sysdeps/arm/configure: Regenerate.
30282
30283 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30284
30285         * include/fcntl.h (__atfct_seterrno): Remove prototype.
30286         (__atfct_seterrno_2): Likewise.
30287         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
30288         <kernel-features.h>.
30289         (__ASSUME_ATFCTS): Do not undefine and redefine.
30290         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
30291         (__have_atfcts): Remove conditional definition.
30292         (__fxstatat([__NR_fstatat64]: Make code unconditional.
30293         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
30294         unreachable if [__ASSUME_ATFCTS].
30295         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
30296         not undefine and redefine.
30297         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
30298         <kernel-features.h>.
30299         (faccessat) [__NR_faccessat]: Make code unconditional.
30300         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
30301         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
30302         <kernel-features.h>.
30303         (fchmodat) [__NR_fchmodat]: Make code unconditional.
30304         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30305         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
30306         <kernel-features.h>.
30307         (fchownat) [__NR_fchownat]: Make code unconditional.
30308         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
30309         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
30310         <kernel-features.h>.
30311         (futimesat) [__NR_futimesat]: Make code unconditional.
30312         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
30313         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
30314         <kernel-features.h>.
30315         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30316         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30317         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
30318         <kernel-features.h>.
30319         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
30320         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30321         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
30322         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
30323         <kernel-features.h>.
30324         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
30325         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30326         * sysdeps/unix/sysv/linux/linkat.c: Do not include
30327         <kernel-features.h>.
30328         (linkat) [__NR_linkat]: Make code unconditional.
30329         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30330         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
30331         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
30332         <kernel-features.h>.
30333         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
30334         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30335         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
30336         <kernel-features.h>.
30337         (mkdirat) [__NR_mkdirat]: Make code unconditional.
30338         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
30339         * sysdeps/unix/sysv/linux/openat.c: Do not include
30340         <kernel-features.h>.
30341         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
30342         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
30343         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
30344         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
30345         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
30346         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
30347         <kernel-features.h>.
30348         (readlinkat) [__NR_readlinkat]: Make code unconditional.
30349         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
30350         result of INLINE_SYSCALL directly, not via int variable.
30351         * sysdeps/unix/sysv/linux/renameat.c: Do not include
30352         <kernel-features.h>.
30353         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
30354         (renameat) [__NR_renameat]: Make code unconditional.
30355         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
30356         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
30357         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
30358         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
30359         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
30360         (__ASSUME_ATFCTS): Do not undefine and redefine.
30361         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
30362         <kernel-features.h>.
30363         (symlinkat) [__NR_symlinkat]: Make code unconditional.
30364         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30365         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
30366         <kernel-features.h>.
30367         (unlinkat) [__NR_unlinkat]: Make code unconditional.
30368         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30369         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
30370         (__ASSUME_ATFCTS): Do not undefine and redefine.
30371         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
30372         <kernel-features.h>.
30373         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30374         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30375         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
30376         <kernel-features.h>.
30377         (__xmknodat) [__NR_mknodat]: Make code unconditional.
30378         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30379
30380 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30381
30382         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
30383
30384 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
30385
30386         [BZ #17069]
30387         * posix/regcomp.c (parse_reg_exp): Deallocate partially
30388         constructed tree before returning error.
30389         * posix/bug-regexp36.c: Expand test case.
30390
30391 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
30392
30393         [BZ #6803]
30394         * math/libm-test.inc (scalbln_test_date):
30395         Add errno expectations.
30396         * math/w_scalblnf.c: New File.
30397         Add wrapper which checks for setting errno to ERANGE.
30398         Add weak_alias for corresponding scalbln function.
30399         * math/w_scalbln.c: Likewise.
30400         * math/w_scalblnl.c: Likewise.
30401         * math/Makefile (libm-calls): Add w_scalbln.
30402         * sysdeps/ieee754/flt-32/s_scalblnf.c:
30403         Remove weak_alias for corresponding scalbln function.
30404         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
30405         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
30406         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
30407         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
30408         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
30409         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
30410         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
30411         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
30412         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
30413         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
30414         Remove long_double_symbol for scalblnl function in libm, libc.
30415         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
30416         Add wrapper which checks for setting errno to ERANGE.
30417         Add long_double_symbol for scalblnl function in libm, libc.
30418         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
30419         Remove long_double_symbol for scalblnl in libm.
30420         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
30421         Add wrapper which checks for setting errno to ERANGE.
30422         Add long_double_symbol for scalblnl function in libm.
30423         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
30424         Do not use wrapper because of own implementation.
30425
30426 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
30427
30428         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
30429         3 bytes for __pad1 for x32.
30430         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
30431
30432 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
30433             H.J. Lu  <hongjiu.lu@intel.com>
30434
30435         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
30436         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
30437         * sysdeps/x86_64/multiarch/memset.S: Likewise.
30438         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
30439         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
30440
30441 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
30442
30443         [BZ #17069]
30444         * posix/regcomp.c (parse_expression): Deallocate partially
30445         constructed tree before returning error.
30446         * posix/Makefile.c (tests): Add bug-regex36.
30447         (generated): Add bug-regex36.mtrace.
30448         (tests-special): Add $(objpfx)bug-regex36-mem.out
30449         (bug-regex36-ENV): New variable.
30450         ($(objpfx)bug-regex36-mem.out): New rule.
30451         * posix/bug-regex36.c: New file.
30452
30453 2014-06-19  Will Newton  <will.newton@linaro.org>
30454
30455         * malloc/malloc.c (systrim): If extra is zero then return
30456         early.
30457
30458 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
30459
30460         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
30461
30462 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
30463
30464         * sysdeps/aarch64/strchr.S: New file.
30465
30466 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30467
30468         [BZ #17022]
30469         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
30470         from arguments -2 or below.
30471         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
30472         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
30473
30474 2014-06-18  Andreas Schwab  <schwab@suse.de>
30475
30476         [BZ #17062]
30477         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
30478         of a bracket expr not to run off the end of the string.
30479         * posix/Makefile (tests): Add tst-fnmatch3.
30480         * posix/tst-fnmatch3.c: New file.
30481
30482 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30483
30484         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
30485         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
30486         [$(cross-compiling) = no]: Likewise.
30487         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
30488         [$(cross-compiling) = no]: Likewise.
30489
30490 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30491
30492         [BZ #17031]
30493         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
30494         double, adjusted for any remainder from the high double.
30495         * math/libm-test.inc (nearbyint): Add tests.
30496         (rint): Likewise.
30497
30498 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30499
30500         * nptl/sysdeps/powerpc/Makefile: Moved ...
30501         * sysdeps/powerpc/nptl/Makefile: ... here.
30502         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
30503         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
30504         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
30505         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
30506         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
30507         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
30508         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
30509         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
30510         * nptl/sysdeps/powerpc/tls.h: Moved ...
30511         * sysdeps/powerpc/nptl/tls.h: ... here.
30512
30513 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
30514
30515         [BZ #16681]
30516         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
30517         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
30518         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
30519         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
30520         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
30521         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
30522         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
30523         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
30524         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
30525
30526 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
30527
30528         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
30529
30530 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
30531
30532         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
30533         defined operator.
30534
30535         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
30536         $TIMEOUTFACTOR.
30537
30538 2014-06-16  Florian Weimer  <fweimer@redhat.com>
30539
30540         [BZ #17058]
30541         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
30542         non-executed part of the test.
30543
30544 2014-06-16  Andreas Schwab  <schwab@suse.de>
30545
30546         * string/bits/string2.h (strdup, strndup): Update feature guard.
30547
30548 2014-06-14  David S. Miller  <davem@davemloft.net>
30549
30550         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30551
30552 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
30553
30554         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
30555         that was previously under [RESET_PID].
30556         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
30557
30558         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
30559         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
30560         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
30561         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
30562         (__libc_vfork): New strong alias.
30563         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
30564
30565 2014-06-14 Andi Kleen  <ak@linux.intel.com>
30566
30567         * sysdeps/generic/elide.h: New file.
30568
30569 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
30570
30571         * Makefile (installed-headers): Adjust path of pthread.h header.
30572
30573 2014-06-13  Roland McGrath  <roland@hack.frob.com>
30574
30575         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
30576         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
30577         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
30578         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
30579
30580         * nptl/sysdeps/s390/Makefile: Moved ...
30581         * sysdeps/s390/nptl/Makefile: ... here.
30582         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
30583         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
30584         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
30585         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
30586         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
30587         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
30588         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
30589         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
30590         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
30591         * sysdeps/s390/nptl/pthreaddef.h: ... here.
30592         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
30593         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
30594         * nptl/sysdeps/s390/tls.h: Moved ...
30595         * sysdeps/s390/nptl/tls.h: ... here.
30596
30597         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
30598         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
30599
30600 2014-06-13  David S. Miller  <davem@davemloft.net>
30601
30602         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
30603         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
30604         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
30605         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
30606         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
30607         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
30608         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
30609         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
30610         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
30611         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
30612         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
30613         Remove RESET_PID cpp guards.
30614         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
30615         Remove RESET_PID cpp guards.
30616         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
30617
30618 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
30619
30620         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
30621         __sp to uintptr_t.
30622
30623 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30624
30625         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
30626         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
30627         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
30628         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
30629         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
30630         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
30631         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
30632         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
30633         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
30634         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
30635         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
30636         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
30637         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
30638         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
30639         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
30640         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
30641         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
30642         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
30643         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
30644         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
30645
30646         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
30647         (pthread_rwlock_rdlock): Add elision.
30648         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
30649         (pthread_rwlock_wrlock): Add elision.
30650         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
30651         (pthread_rwlock_trywrlock): Add elision.
30652         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
30653         (pthread_rwlock_tryrdlock): Add elision.
30654         * nptl/pthread_rwlock_unlock.c: Include elide.h.
30655         (pthread_rwlock_tryrdlock): Add elision unlock.
30656         * nptl/sysdeps/pthread/pthread.h:
30657         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
30658         (PTHREAD_RWLOCK_INITIALIZER,
30659         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
30660         Handle new elision field.
30661         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
30662         * sysdeps/arm/nptl/bits/pthreadtypes.h
30663         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30664         * sysdeps/sh/nptl/bits/pthreadtypes.h
30665         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30666         * sysdeps/tile/nptl/bits/pthreadtypes.h
30667         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30668         * sysdeps/a/nptl/bits/pthreadtypes.h
30669         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30670         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
30671         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30672         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
30673         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30674         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
30675         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30676         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
30677         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30678         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
30679         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30680         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
30681         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30682         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
30683         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30684         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
30685         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30686         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
30687         (elision_init): Set try_xbegin to zero when no RTM.
30688         * sysdeps/x86/nptl/bits/pthreadtypes.h
30689         (pthread_rwlock_t): Change __pad1 to __rwelision.
30690         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30691
30692 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30693
30694         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
30695         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
30696         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
30697         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
30698
30699 2014-06-13  Meador Inge  <meadori@codesourcery.com>
30700
30701         [BZ #16996]
30702         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
30703         that the cached result has been set before returning it.
30704
30705 2014-06-12  Roland McGrath  <roland@hack.frob.com>
30706
30707         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
30708         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
30709         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
30710         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
30711         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
30712         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
30713
30714         * nptl/sysdeps/sparc/Makefile: Moved ...
30715         * sysdeps/sparc/nptl/Makefile: ... here.
30716         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
30717         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
30718         * nptl/sysdeps/sparc/tls.h: Moved ...
30719         * sysdeps/sparc/nptl/tls.h: ... here.
30720         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
30721         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
30722         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
30723         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
30724         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
30725         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
30726         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
30727         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
30728         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
30729         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
30730         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
30731         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
30732         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
30733         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
30734         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
30735         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
30736         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
30737         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
30738         Update #include.
30739         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
30740         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
30741         Update #include.
30742         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
30743         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
30744         Update #include.
30745         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
30746         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
30747         Update #include.
30748
30749         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
30750
30751         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
30752         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
30753
30754         * sysdeps/pthread/posix-timer.h: Include <list.h>.
30755         (struct list_links): Type removed.
30756         (struct thread_node, struct timer_node): Replace struct list_links
30757         with struct list_head.
30758         (list_unlink_ip): Likewise.
30759         * sysdeps/pthread/timer_routines.c
30760         (timer_free_list, thread_free_list, thread_active_list): Likewise.
30761         (list_append, list_insbefore): Likewise.
30762         (list_init): Function removed.
30763         (thread_init, init_module): Use INIT_LIST_HEAD instead.
30764         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
30765         * sysdeps/pthread/Makefile: ... here, new file.
30766
30767         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
30768         * sysdeps/nptl/Implies: ... here.
30769         * sysdeps/unix/sysv/linux/Implies: Add nptl.
30770         * nptl/sysdeps/pthread/list.h: Moved ...
30771         * include/list.h: ... here.
30772         * nptl/sysdeps/pthread/createthread.c: Moved ...
30773         * nptl/createthread.c: ... here.
30774         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
30775         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
30776         * nptl/pt-longjmp.c: ... here.
30777         * nptl/sysdeps/pthread/Makefile: Moved ...
30778         * sysdeps/nptl/Makefile: ... here.
30779         * nptl/sysdeps/pthread/Subdirs: Moved ...
30780         * sysdeps/nptl/Subdirs: ... here.
30781         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
30782         * sysdeps/nptl/aio_misc.h: ... here.
30783         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
30784         * sysdeps/nptl/bits/libc-lock.h: ... here.
30785         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
30786         * sysdeps/nptl/bits/libc-lockP.h: ... here.
30787         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
30788         * sysdeps/nptl/bits/stdio-lock.h: ... here.
30789         * nptl/sysdeps/pthread/configure: Moved ...
30790         * sysdeps/nptl/configure: ... here.
30791         * nptl/sysdeps/pthread/configure.ac: Moved ...
30792         * sysdeps/nptl/configure.ac: ... here.
30793         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
30794         * sysdeps/nptl/gai_misc.h: ... here.
30795         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
30796         * sysdeps/nptl/librt-cancellation.c: ... here.
30797         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
30798         * sysdeps/nptl/malloc-machine.h: ... here.
30799         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
30800         * sysdeps/nptl/pthread-functions.h: ... here.
30801         * nptl/sysdeps/pthread/pthread.h: Moved ...
30802         * sysdeps/nptl/pthread.h: ... here.
30803         * nptl/sysdeps/pthread/setxid.h: Moved ...
30804         * sysdeps/nptl/setxid.h: ... here.
30805         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
30806         * sysdeps/nptl/sigfillset.c: ... here.
30807         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
30808         * sysdeps/nptl/tcb-offsets.h: ... here.
30809         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
30810         * sysdeps/nptl/tst-mqueue8x.c: ... here.
30811         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
30812         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
30813         * nptl/sysdeps/pthread/allocalim.h: Moved ...
30814         * sysdeps/pthread/allocalim.h: ... here.
30815         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
30816         * sysdeps/pthread/bits/sigthread.h: ... here.
30817         * nptl/sysdeps/pthread/flockfile.c: Moved ...
30818         * sysdeps/pthread/flockfile.c: ... here.
30819         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
30820         * sysdeps/pthread/ftrylockfile.c: ... here.
30821         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
30822         * sysdeps/pthread/funlockfile.c: ... here.
30823         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
30824         * sysdeps/pthread/posix-timer.h: ... here.
30825         * nptl/sysdeps/pthread/timer_create.c: Moved ...
30826         * sysdeps/pthread/timer_create.c: ... here.
30827         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
30828         * sysdeps/pthread/timer_delete.c: ... here.
30829         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
30830         * sysdeps/pthread/timer_getoverr.c: ... here.
30831         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
30832         * sysdeps/pthread/timer_gettime.c: ... here.
30833         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
30834         * sysdeps/pthread/timer_routines.c: ... here.
30835         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
30836         * sysdeps/pthread/timer_settime.c: ... here.
30837         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
30838         * sysdeps/pthread/tst-timer.c: ... here.
30839         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
30840         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
30841
30842         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
30843         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
30844
30845         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
30846         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
30847         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
30848         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
30849         Update #include target.
30850         * nptl/sysdeps/i386/i686/Makefile: Moved ...
30851         * sysdeps/i386/i686/nptl/Makefile: ... here.
30852         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
30853         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
30854         Update #include target.
30855         * nptl/sysdeps/i386/i686/tls.h: Moved ...
30856         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
30857         * nptl/sysdeps/i386/Makefile: Moved ...
30858         * sysdeps/i386/nptl/Makefile: ... here.
30859         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
30860         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
30861         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
30862         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
30863         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
30864         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
30865         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
30866         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
30867         * sysdeps/i386/nptl/pthreaddef.h: ... here.
30868         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
30869         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
30870         * nptl/sysdeps/i386/tls.h: Moved ...
30871         * sysdeps/i386/nptl/tls.h: ... here.
30872
30873         * sysdeps/sh/Makefile [$(subdir) = csu]
30874         (gen-as-const-headers): Add tcb-offsets.sym.
30875         * nptl/sysdeps/sh/Makefile: File removed.
30876         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
30877         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
30878         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
30879         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
30880         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
30881         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
30882         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
30883         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
30884         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
30885         * sysdeps/sh/nptl/pthreaddef.h: ... here.
30886         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
30887         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
30888         * nptl/sysdeps/sh/tls.h: Moved ...
30889         * sysdeps/sh/nptl/tls.h: ... here.
30890         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
30891         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
30892         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
30893         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
30894         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
30895         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
30896         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
30897         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
30898         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
30899         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
30900         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
30901         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
30902         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
30903         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
30904         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
30905         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
30906         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
30907         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
30908         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
30909         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
30910         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
30911         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
30912         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
30913         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
30914         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
30915         Moved ...
30916         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
30917         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
30918         Moved ...
30919         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
30920         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
30921         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
30922         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
30923         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
30924         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
30925         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
30926         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
30927         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
30928         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
30929         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
30930         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
30931         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
30932         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
30933         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
30934         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
30935         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
30936         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
30937         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
30938
30939 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
30940
30941         * posix/spawn_faction_addopen.c: Include string.h.
30942
30943 2014-06-11  Roland McGrath  <roland@hack.frob.com>
30944
30945         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
30946         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
30947         * nptl/sysdeps/x86_64/Makefile: Moved ...
30948         * sysdeps/x86_64/nptl/Makefile: ... here.
30949         * nptl/sysdeps/x86_64/configure: Moved ...
30950         * sysdeps/x86_64/nptl/configure: ... here.
30951         * nptl/sysdeps/x86_64/configure.ac: Moved ...
30952         * sysdeps/x86_64/nptl/configure.ac: ... here.
30953         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
30954         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
30955         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
30956         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
30957         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
30958         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
30959         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
30960         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
30961         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
30962         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
30963         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
30964         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
30965         * nptl/sysdeps/x86_64/tls.h: Moved ...
30966         * sysdeps/x86_64/nptl/tls.h: ... here.
30967         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
30968         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
30969         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
30970         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
30971
30972         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
30973
30974 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30975
30976         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30977
30978 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
30979
30980         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
30981         type.
30982         [POSIX] (off_t): Likewise.
30983         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
30984         [POSIX] (S_ISBLK): Require macro.
30985         [POSIX] (S_ISCHR): Likewise.
30986         [POSIX] (S_ISDIR): Likewise.
30987         [POSIX] (S_ISFIFO): Likewise.
30988         [POSIX] (S_ISREG): Likewise.
30989         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
30990         optional-macro.
30991         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
30992         type.
30993         [POSIX] (time_t): Likewise.
30994         [POSIX] (timer_t): Likewise.
30995
30996 2014-06-11  Florian Weimer  <fweimer@redhat.com>
30997
30998         [BZ #17048]
30999         * posix/spawn_int.h (struct __spawn_action): Make the path string
31000         non-const to support deallocation.
31001         * posix/spawn_faction_addopen.c
31002         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
31003         * posix/spawn_faction_destroy.c
31004         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
31005         path in all spawn_do_open actions.
31006         * posix/tst-spawn.c (do_test): Exercise the copy operation in
31007         posix_spawn_file_actions_addopen.
31008
31009 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
31010
31011         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
31012         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
31013         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
31014         conditional code always true.
31015         (__libc_vfork): New alias.
31016
31017 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31018
31019         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31020         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
31021
31022         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
31023
31024         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31025         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
31026
31027         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31028         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
31029
31030         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31031         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
31032
31033 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
31034
31035         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
31036         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
31037         multiarch strcmp for PPC64.
31038         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
31039         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
31040         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
31041         multiarch optimizations.
31042         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
31043         (__libc_ifunc_impl_list): Likewise.
31044
31045 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
31046
31047         * benchtests/scripts/validate_benchout.py: New script.
31048         * benchtests/Makefile (bench-func): Call it.
31049         * benchtests/scripts/benchout.schema.json: New file.
31050
31051 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
31052
31053         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
31054         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
31055         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
31056         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
31057         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
31058         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
31059         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
31060         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
31061         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
31062         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
31063         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
31064         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
31065         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
31066         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
31067         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
31068         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
31069         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
31070         Moved ...
31071         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
31072         ... here.
31073         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
31074         Moved ...
31075         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
31076         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
31077         Moved ...
31078         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
31079         ... here.
31080         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
31081         Moved ...
31082         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
31083         ... here.
31084         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
31085         Moved ...
31086         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
31087         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
31088         Moved ...
31089         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
31090         ... here.
31091         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
31092         Moved ...
31093         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
31094         ... here.
31095         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
31096         Moved ...
31097         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
31098         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
31099         Moved ...
31100         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
31101         ... here.
31102         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
31103         Moved ...
31104         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
31105         ... here.
31106         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
31107         Moved ...
31108         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
31109         ... here.
31110         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
31111         Moved ...
31112         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
31113         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
31114         Moved ...
31115         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
31116         ... here.
31117         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
31118         Moved ...
31119         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
31120         ... here.
31121         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
31122         Moved ...
31123         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
31124         ... here.
31125         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
31126         Moved ...
31127         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
31128         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
31129         Moved ...
31130         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
31131         ... here.
31132         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
31133         Moved ...
31134         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
31135         ... here.
31136         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
31137         Moved ...
31138         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
31139         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
31140         Moved ...
31141         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
31142         ... here.
31143         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
31144         Moved ...
31145         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
31146         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
31147         Moved ...
31148         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
31149         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
31150         Moved ...
31151         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
31152         ... here.
31153         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
31154         Moved ...
31155         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
31156         ... here.
31157         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
31158         Moved ...
31159         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
31160         ... here.
31161         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
31162         Moved ...
31163         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
31164         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
31165         Moved ...
31166         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
31167         ... here.
31168         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
31169         Moved ...
31170         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
31171         ... here.
31172         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
31173         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
31174         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
31175         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
31176         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
31177         Moved ...
31178         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
31179         ... here.
31180         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
31181         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
31182         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
31183         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
31184         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
31185         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
31186         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
31187         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
31188         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
31189         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
31190         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
31191         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
31192         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
31193         Moved ...
31194         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
31195         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
31196         Moved ...
31197         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
31198         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
31199         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
31200         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
31201         Moved ...
31202         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
31203         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
31204         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
31205         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
31206         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
31207         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
31208         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
31209
31210 2014-06-10  Wilco  <wdijkstr@arm.com>
31211
31212         * math/test-fenv-return.c: New file.
31213         * math/Makefile: Add new test test-fenv-return.
31214
31215 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
31216
31217         [BZ #17042]
31218         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
31219         when x - 1 is zero.
31220         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
31221         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
31222         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
31223         0.0L for an argument of 1.0L.
31224         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
31225         Likewise.
31226         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
31227         value when x - 1 is zero.
31228         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
31229         * sysdeps/i386/fpu/libm-test-ulps: Update.
31230         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31231
31232 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
31233
31234         [BZ #15119]
31235         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
31236
31237 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31238
31239         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
31240         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
31241
31242 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31243
31244         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31245         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
31246
31247         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31248         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
31249
31250         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31251         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
31252
31253         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31254         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
31255
31256         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
31257         if not already defined.
31258         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
31259         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
31260         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
31261         (TLS_INIT_TP): Use it.
31262         (TLS_DEFINE_INIT_TP): New macro.
31263         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
31264
31265 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
31266
31267         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
31268         constant.
31269         [POSIX] (IXANY): Likewise.
31270         [POSIX] (OLCUC): Likewise.
31271         [POSIX || POSIX2008] (CBAUD): Do not allow.
31272         [POSIX || POSIX2008] (DEFECHO): Likewise.
31273         [POSIX || POSIX2008] (ECHOCTL): Likewise.
31274         [POSIX || POSIX2008] (ECHOKE): Likewise.
31275         [POSIX || POSIX2008] (ECHOPRT): Likewise.
31276         [POSIX || POSIX2008] (EXTA): Likewise.
31277         [POSIX || POSIX2008] (EXTB): Likewise.
31278         [POSIX || POSIX2008] (FLUSHO): Likewise.
31279         [POSIX || POSIX2008] (LOBLK): Likewise.
31280         [POSIX || POSIX2008] (PENDIN): Likewise.
31281         [POSIX || POSIX2008] (SWTCH): Likewise.
31282         [POSIX || POSIX2008] (VDISCARD): Likewise.
31283         [POSIX || POSIX2008] (VDSUSP): Likewise.
31284         [POSIX || POSIX2008] (VLNEXT): Likewise.
31285         [POSIX || POSIX2008] (VREPRINT): Likewise.
31286         [POSIX || POSIX2008] (VSTATUS): Likewise.
31287         [POSIX || POSIX2008] (VWERASE): Likewise.
31288         (B*): Change to B[0123456789]*.
31289         * conform/data/time.h-data [POSIX || UNIX98]
31290         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
31291         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
31292         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
31293         [POSIX] (tm_*): Do not allow.
31294
31295 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
31296
31297         * Makefile (install): Don't set LANGUAGE.
31298         * Makefile.in (install): Likewise.
31299         * assert/Makefile (test-assert-ENV): Remove variable.
31300         (test-assert-perr-ENV): Likewise.
31301         * elf/Makefile (neededtest4-ENV): Likewise.
31302         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31303         [$(cross-compiling) = no]: Don't set LANGUAGE.
31304         * io/ftwtest-sh (LANG): Remove variable.
31305         * libio/Makefile (tst-widetext-ENV): Likewise.
31306         * manual/install.texi (Running make install): Don't refer to
31307         environment settings for make install.
31308         * INSTALL: Regenerated.
31309         * nptl/tst-tls6.sh: Don't set LANG.
31310         * posix/globtest.sh (LANG): Remove variable.
31311         * string/Makefile (tester-ENV): Likewise.
31312         (inl-tester-ENV): Likewise.
31313         (noinl-tester-ENV): Likewise.
31314         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31315         [$(cross-compiling) = no]: Don't set LANGUAGE.
31316         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
31317         without explicit environment settings.
31318
31319 2014-06-06  Roland McGrath  <roland@hack.frob.com>
31320
31321         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
31322         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
31323         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
31324         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
31325
31326 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
31327
31328         * crypt/crypt-private.h [DOS]: Add some includes taken from the
31329         other files in the crypt directory.
31330         * crypt/crypt.c: Remove duplicate includes.
31331         * crypt/crypt-entry.c: Likewise.
31332         * crypt/crypt_util.c: Likewise.
31333
31334 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
31335
31336         * Makeconfig (run-program-env): New variable.
31337         (run-program-prefix-before-env): Likewise.
31338         (run-program-prefix-after-env): Likewise.
31339         (run-program-prefix): Define in terms of new variables.
31340         (built-program-cmd-before-env): New variable.
31341         (built-program-cmd-after-env): Likewise.
31342         (built-program-cmd): Define in terms of new variables.
31343         (test-program-prefix-before-env): New variable.
31344         (test-program-prefix-after-env): Likewise.
31345         (test-program-prefix): Define in terms of new variables.
31346         (test-program-cmd-before-env): New variable.
31347         (test-program-cmd-after-env): Likewise.
31348         (test-program-cmd): Define in terms of new variables.
31349         * Rules (make-test-out): Use $(run-program-env).
31350         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
31351         (help): Do not mention environment variables.  Mention
31352         --timeoutfactor option.
31353         (timeoutfactor): New variable.
31354         (blacklist_exports): Remove function.
31355         (exports): Remove variable.
31356         (command): Do not include ${exports}.
31357         * manual/install.texi (Configuring and compiling): Do not mention
31358         test wrappers preserving environment variables.  Mention that last
31359         assignment to a variable must take precedence.
31360         * INSTALL: Regenerated.
31361         * benchtests/Makefile (run-bench): Use $(run-program-env).
31362         * catgets/Makefile ($(objpfx)test1.cat): Use
31363         $(built-program-cmd-before-env), $(run-program-env) and
31364         $(built-program-cmd-after-env).
31365         ($(objpfx)test2.cat): Do not specify environment variables
31366         explicitly.
31367         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
31368         $(run-program-env) and $(built-program-cmd-after-env).
31369         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
31370         $(run-program-env) and $(test-program-cmd-after-env).
31371         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
31372         explicitly.
31373         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
31374         run_program_env and test_program_cmd_after_env arguments.
31375         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
31376         * elf/tst-pathopt.sh: Use run_program_env argument.
31377         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
31378         $(test-wrapper-env) and $(run-program-env).
31379         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
31380         run_program_env arguments.
31381         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
31382         * intl/Makefile ($(objpfx)tst-gettext.out): Use
31383         $(test-program-prefix-before-env), $(run-program-env) and
31384         $(test-program-prefix-after-env).
31385         ($(objpfx)tst-gettext2.out): Likewise.
31386         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
31387         run_program_env and test_program_prefix_after_env arguments.
31388         * intl/tst-gettext2.sh: Likewise.
31389         * intl/tst-gettext4.sh: Do not set environment variables
31390         explicitly.
31391         * intl/tst-gettext6.sh: Likewise.
31392         * intl/tst-translit.sh: Likewise.
31393         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
31394         $(test-program-prefix-before-env), $(run-program-env) and
31395         $(test-program-prefix-after-env).
31396         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
31397         run_program_env and test_program_prefix_after_env arguments.
31398         * math/Makefile (run-regen-ulps): Use $(run-program-env).
31399         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
31400         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
31401         explicitly with each use of ${test_wrapper_env}.
31402         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
31403         $(test-program-prefix-before-env), $(run-program-env) and
31404         $(test-program-prefix-after-env).
31405         * posix/tst-getconf.sh: Do not set environment variables
31406         explicitly.
31407         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
31408         run_program_env and test_program_prefix_after_env arguments.
31409         * stdio-common/tst-printf.sh: Do not set environment variables
31410         explicitly.
31411         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
31412         $(test-program-prefix-before-env), $(run-program-env) and
31413         $(test-program-prefix-after-env).
31414         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
31415         run_program_env and test_program_prefix_after_env arguments.
31416         Split $test calls into $test_pre and $test.
31417         * timezone/Makefile (build-testdata): Use
31418         $(built-program-cmd-before-env), $(run-program-env) and
31419         $(built-program-cmd-after-env).
31420
31421 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31422
31423         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
31424         strlen for non SHARED builds.
31425
31426 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
31427
31428         * nptl/allocatestack.c (check_list): Inlined function...
31429         (__reclaim_stacks): ... here.
31430
31431 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31432
31433         [BZ #15698]
31434         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
31435         memory overrun.
31436
31437 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
31438
31439         * Rules (make-test-out): Include
31440         LOCPATH=$(common-objpfx)localedata in default environment.
31441         * debug/Makefile (tst-chk1-ENV): Remove variable.
31442         (tst-chk2-ENV): Likewise.
31443         (tst-chk3-ENV): Likewise.
31444         (tst-chk4-ENV): Likewise.
31445         (tst-chk5-ENV): Likewise.
31446         (tst-chk6-ENV): Likewise.
31447         (tst-lfschk1-ENV): Likewise.
31448         (tst-lfschk2-ENV): Likewise.
31449         (tst-lfschk3-ENV): Likewise.
31450         (tst-lfschk4-ENV): Likewise.
31451         (tst-lfschk5-ENV): Likewise.
31452         (tst-lfschk6-ENV): Likewise.
31453         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
31454         (tst-iconv7-ENV): Likewise.
31455         * intl/Makefile (LOCPATH-ENV): Likewise.
31456         (tst-codeset-ENV): Likewise.
31457         (tst-gettext3-ENV): Likewise.
31458         (tst-gettext5-ENV): Likewise.
31459         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
31460         (tst-fopenloc-ENV): Likewise.
31461         (tst-fgetws-ENV): Remove variable.
31462         (tst-ungetwc1-ENV): Likewise.
31463         (tst-ungetwc2-ENV): Likewise.
31464         (bug-ungetwc2-ENV): Likewise.
31465         (tst-swscanf-ENV): Likewise.
31466         (bug-ftell-ENV): Likewise.
31467         (tst-fgetwc-ENV): Likewise.
31468         (tst-fseek-ENV): Likewise.
31469         (tst-ftell-partial-wide-ENV): Likewise.
31470         (tst-ftell-active-handler-ENV): Likewise.
31471         (tst-ftell-append-ENV): Likewise.
31472         * posix/Makefile (tst-fnmatch-ENV): Likewise.
31473         (tst-regexloc-ENV): Likewise.
31474         (bug-regex1-ENV): Likewise.
31475         (tst-regex-ENV): Likewise.
31476         (tst-regex2-ENV): Likewise.
31477         (bug-regex5-ENV): Likewise.
31478         (bug-regex6-ENV): Likewise.
31479         (bug-regex17-ENV): Likewise.
31480         (bug-regex18-ENV): Likewise.
31481         (bug-regex19-ENV): Likewise.
31482         (bug-regex20-ENV): Likewise.
31483         (bug-regex22-ENV): Likewise.
31484         (bug-regex23-ENV): Likewise.
31485         (bug-regex25-ENV): Likewise.
31486         (bug-regex26-ENV): Likewise.
31487         (bug-regex30-ENV): Likewise.
31488         (bug-regex32-ENV): Likewise.
31489         (bug-regex33-ENV): Likewise.
31490         (bug-regex34-ENV): Likewise.
31491         (bug-regex35-ENV): Likewise.
31492         (tst-rxspencer-ENV): Likewise.
31493         (tst-rxspencer-no-utf8-ENV): Likewise.
31494         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
31495         (tst-sscanf-ENV): Likewise.
31496         (tst-swprintf-ENV): Likewise.
31497         (tst-swscanf-ENV): Likewise.
31498         (test-vfprintf-ENV): Likewise.
31499         (scanf13-ENV): Likewise.
31500         (bug14-ENV): Likewise.
31501         (tst-grouping-ENV): Likewise.
31502         * stdlib/Makefile (tst-strtod-ENV): Likewise.
31503         (tst-strtod3-ENV): Likewise.
31504         (tst-strtod4-ENV): Likewise.
31505         (tst-strtod5-ENV): Likewise.
31506         (testmb2-ENV): Likewise./
31507         * string/Makefile (tst-strxfrm-ENV): Likewise.
31508         (tst-strxfrm2-ENV): Likewise.
31509         (bug-strcoll1-ENV): Likewise.
31510         (test-strcasecmp-ENV): Likewise.
31511         (test-strncasecmp-ENV): Likewise.
31512         * time/Makefile (tst-strptime-ENV): Likewise.
31513         (tst-ftime_l-ENV): Likewise.
31514         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
31515         (tst-mbrtowc-ENV): Likewise.
31516         (tst-wcrtomb-ENV): Likewise.
31517         (tst-mbrtowc2-ENV): Likewise.
31518         (tst-c16c32-1-ENV): Likewise.
31519         (tst-mbsnrtowcs-ENV): Likewise.
31520
31521 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31522
31523         * manual/resource.texi (How to get information about the memory
31524         subsystem?): Fix typo.
31525         Reported by Peon de la Parra Ivan <peon@keba.com>
31526
31527 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
31528
31529         [BZ #16882]
31530         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
31531         (pthread_spin_lock): Branch out of spin loop to proper location.
31532         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
31533         (pthread_spin_lock): Likewise.
31534
31535         * nptl/tst-spin4.c: New test.
31536         * nptl/Makefile (tests): Add tst-spin4.
31537
31538 2014-06-03  Andreas Schwab  <schwab@suse.de>
31539
31540         [BZ #15946]
31541         * resolv/res_send.c (send_dg): Reload file descriptor after
31542         calling reopen.
31543
31544 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
31545
31546         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
31547
31548 2014-06-03  Richard Henderson  <rth@redhat.com>
31549
31550         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
31551         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
31552         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
31553         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
31554         in the SAVE_PID block.
31555         (__libc_vfork): New alias.
31556         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
31557
31558         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
31559         child in registers, not on the stack.  Remove RESET_PID conditionals.
31560         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
31561
31562 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31563
31564         * sysdeps/aarch64/libm-test-ulps: Regenerate.
31565
31566 2014-06-03  Wilco  <wdijkstr@arm.com>
31567
31568         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
31569         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
31570         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31571         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
31572         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
31573         Likewise.
31574
31575 2014-06-03  Wilco  <wdijkstr@arm.com>
31576
31577         * sysdeps/aarch64/fpu/math_private.h
31578         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
31579         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
31580         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
31581         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31582         Fix declarations.
31583
31584 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
31585
31586         * crypt/crypt-private.h: Include ufc-crypt.h.
31587         (__b64_from_24bit): Declare extern.
31588         * crypt/crypt_util.c(__b64_from_24bit): New function.
31589         (b64t): New static const variable.
31590         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
31591         (b64t): Remove variable.
31592         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
31593         * crypt/sha256-crypt.c: Include crypt-private.h.
31594         (b64t): Remove variable.
31595         (__sha256_crypt_r): Remove b64_from_24bit and replace
31596         with __b64_from_24bit.
31597         * crypt/sha512-crypt.c: Likewise.
31598
31599 2014-06-02  Roland McGrath  <roland@hack.frob.com>
31600
31601         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
31602         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
31603         Label the code __libc_vfork rather than __vfork.
31604         [!NOT_IN_libc] (vfork): Define as weak alias.
31605         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
31606         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
31607         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
31608
31609 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
31610
31611         * malloc/malloc.c (malloc_info): Fix format specifier for
31612         n_mmaps.
31613
31614 2014-06-02  Wilco  <wdijkstr@arm.com>
31615
31616         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
31617         FPCR write.
31618
31619 2014-06-02  Wilco  <wdijkstr@arm.com>
31620
31621         [BZ #17009]
31622         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
31623         Rewrite to reduce FPCR/FPSR accesses.
31624
31625 2014-06-01  David S. Miller  <davem@davemloft.net>
31626
31627         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31628
31629 2014-05-31  David S. Miller  <davem@davemloft.net>
31630
31631         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
31632         to occur in round to nearest mode when |x| >= 2.0
31633
31634 2014-05-30  Richard Henderson  <rth@twiddle.net>
31635
31636         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
31637         (PSEUDO_RET_NOERRNO): Remove.
31638         (ret): Don't redefine.
31639         (ret_NOERRNO): Define in terms of ret.
31640         (ret_ERRVAL): Likewise.
31641
31642         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
31643         use of PSEUDO_RET; perform the error check directly.
31644
31645 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
31646
31647         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
31648         with __int128_t.
31649
31650 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31651
31652         * malloc/malloc (malloc_info): Fix formatting.
31653
31654 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31655             Roland McGrath  <roland@hack.frob.com>
31656
31657         * malloc/malloc (malloc_info): Also print mmapped statistics.
31658
31659 2014-05-30  Roland McGrath  <roland@hack.frob.com>
31660
31661         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
31662         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
31663
31664 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
31665
31666         * malloc/malloc.c (malloc_info): Inline mi_arena.
31667
31668 2014-05-29  Richard Henderson  <rth@twiddle.net>
31669
31670         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
31671         Remove comma before expanding ASM_ARGS_##nr.
31672         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
31673         Make _x0 a strict output; make _x8 a strict input; adjust expansion
31674         of ASM_ARGS_##nr.
31675         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
31676         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
31677         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
31678         (ASM_ARGS_1): Add leading comma.
31679
31680         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
31681         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
31682         to __errno_location.
31683         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
31684         Remove the expected plt for __errno_location.
31685
31686         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31687         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
31688         call to __read_tp.
31689
31690         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31691         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
31692         it and break it down.
31693         (DOCARGS_0, DOCARGS_1): Do nothing.
31694         (DOCARGS_2): Update to store into the new stack frame.
31695         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
31696         (UNDOCARGS_1): Update to restore from the new stack frame.
31697         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
31698         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
31699
31700         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31701         (SINGLE_THREAD_P): New parameter for result regno.
31702         (PSEUDO): Update to match; use cbz instead of beq.
31703
31704         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31705         Use ENTRY to define the _nocancel entry point.  Share the syscall
31706         and syscall error check paths with the cancel path.
31707         (PSEUDO_END): New.
31708
31709         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
31710         whitespace; tabs before and after asm mnemonics.
31711
31712 2014-05-29  Eric Wong  <normalperson@yhbt.net>
31713
31714         [BZ #15132]
31715         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
31716         Call fstat64 or stat64 internally, depending on arguments passed.
31717         Replace stat buffer argument with file descriptor argument.
31718         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
31719         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
31720         Pass fd to __internal_statvfs instead of calling fstat64.
31721         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
31722         Pass fd to __internal_statvfs64 instead of calling fstat64.
31723         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
31724         Pass -1 to __internal_statvfs instead of calling stat64.
31725         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
31726         Pass -1 to __internal_statvfs64 instead of calling stat64.
31727
31728 2014-05-28  Roland McGrath  <roland@hack.frob.com>
31729
31730         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
31731         that was previously under [RESET_PID].
31732         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
31733
31734         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
31735         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
31736
31737 2014-05-27  Roland McGrath  <roland@hack.frob.com>
31738
31739         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
31740
31741         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
31742         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
31743
31744 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
31745
31746         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
31747
31748 2014-05-27  Andreas Schwab  <schwab@suse.de>
31749
31750         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
31751         TLS_INIT_TP macro.
31752         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
31753         * elf/rtld.c (init_tls, dl_main): Likewise.
31754         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
31755         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
31756         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
31757         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
31758         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
31759         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
31760         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
31761         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
31762         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
31763         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
31764         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
31765         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
31766         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
31767         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
31768         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
31769         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
31770         * sysdeps/generic/tls.h: Update description.
31771
31772 2014-05-27  Will Newton  <will.newton@linaro.org>
31773
31774         [BZ #16990]
31775         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
31776         and restore r2 rather than just restoring.
31777
31778 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
31779
31780         [BZ #16724]
31781         * libio/tst-ftell-append.c: New test case.
31782         * libio/Makefile (tests): Add test case.
31783         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
31784         append mode.
31785         * libio/wfileops.c (do_ftell_wide): Likewise.
31786
31787 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31788
31789         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31790
31791         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
31792         ...
31793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
31794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
31795         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
31796         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
31797         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
31798         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
31799         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
31800         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
31801         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
31802         Moved ...
31803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
31804         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
31805         Moved ...
31806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
31807         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
31808         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
31809         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
31810         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
31811         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
31812         ...
31813         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
31814         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
31815         Moved ...
31816         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
31817         here.
31818         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
31819         ...
31820         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
31821         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
31822         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
31823
31824         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
31825         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
31826         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
31827         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
31828
31829         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
31830         merge into ...
31831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
31832         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
31833         ...
31834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
31835         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
31836         ...
31837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
31838         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
31839         Moved ...
31840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
31841         here.
31842         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
31843         Moved ...
31844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
31845         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
31846         Moved ...
31847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
31848
31849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
31850         conditional [RESET_PID].
31851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
31852         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
31853         removed.
31854         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
31855         removed.
31856
31857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
31858         <tcb-offsets.h>.
31859         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
31860         (__libc_vfork): New strong alias.
31861         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
31862         removed.
31863         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
31864         Removed.
31865
31866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
31867         <tcb-offsets.h>.
31868         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
31869         (__libc_vfork): New strong alias.
31870         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
31871         removed.
31872         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
31873         removed.
31874
31875 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
31876
31877         * malloc/malloc.c (mi_arena): New function.
31878         (malloc_info): Remove nested function mi_arena. Call non-nosted
31879         function mi_arena.
31880
31881 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31882
31883         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
31884         by insrwi.
31885         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31886         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31887         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
31888         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
31889         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
31890         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
31891         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
31892
31893 2014-05-26  Andreas Schwab  <schwab@suse.de>
31894
31895         [BZ #16984]
31896         * locale/programs/repertoire.c (repertoire_read): Add slash
31897         between I18NPATH element and file name.
31898         * locale/programs/locfile.c (locfile_read): Likewise.
31899
31900 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
31901
31902         * nptl/pthread_mutexattr_settype.c
31903         (__pthread_mutexattr_settype):
31904         Disable lock elision for PTHREAD_MUTEX_NORMAL.
31905
31906 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
31907
31908         * nptl/tst-mutex5 (do_test):
31909         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
31910
31911 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31912
31913         * benchtests/README: Document 'init' directive.
31914         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
31915         BENCH_INIT.
31916         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
31917         (parse_file): Recognize 'init' directive.
31918
31919 2014-05-26  Kyle McMartin  <kyle@redhat.com>
31920
31921         [BZ #16796]
31922         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
31923         alignment of struct pthread.
31924
31925 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31926
31927         [BZ #16878]
31928         * nscd/netgroupcache.c (addgetnetgrentX): Look for
31929         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
31930         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
31931         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
31932
31933 2014-05-25  Richard Henderson  <rth@twiddle.net>
31934
31935         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31936         (SINGLE_THREAD_P_PIC): Remove.
31937         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
31938         (SINGLE_THREAD_P_PIC): Remove.
31939
31940         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
31941         branch to syscall error ...
31942         (PSEUDO): ... here.
31943         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
31944         from __local_syscall_error to .Lsyscall_error.
31945         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
31946         (SYSCALL_ERROR): Update label name.
31947
31948         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31949         Do not use DOARGS/UNDOARGS.
31950         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
31951         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
31952         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
31953         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
31954         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
31955
31956         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
31957         block comment.
31958
31959         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
31960         define if !NOT_IN_libc.
31961         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
31962         define with non-default symbol versions.
31963
31964 2014-05-23  Richard Henderson  <rth@twiddle.net>
31965
31966         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
31967         (vfork, __vfork): Define via compat_symbol.
31968
31969         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
31970         [!HAVE_IFUNC] (vfork_compat): Remove.
31971         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
31972
31973 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
31974
31975         [BZ #16978]
31976         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
31977         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
31978         variable.
31979
31980 2014-05-23  Richard Henderson  <rth@twiddle.net>
31981
31982         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
31983         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
31984         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
31985         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
31986
31987         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
31988         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
31989         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
31990         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
31991         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
31992         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
31993         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
31994         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
31995         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
31996         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
31997         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
31998         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
31999         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
32000         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
32001         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
32002         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
32003         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
32004         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
32005         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
32006         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
32007         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
32008         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
32009         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
32010         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
32011         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
32012         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
32013         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
32014         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
32015         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
32016         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
32017         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
32018         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
32019         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
32020         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
32021         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
32022         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
32023         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
32024         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
32025         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
32026         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
32027         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
32028         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
32029         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
32030         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
32031         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
32032         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
32033         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
32034         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
32035         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
32036         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
32037         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
32038         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
32039         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
32040         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
32041         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
32042         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
32043
32044         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
32045         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
32046         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
32047         before exiting on error.
32048         (__libc_vfork): New strong alias.
32049         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
32050         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
32051
32052         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
32053         that was previously under [RESET_PID].
32054         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
32055
32056         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
32057
32058 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32059
32060         [BZ #16977]
32061         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
32062         value when x - 1 is zero.
32063         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
32064         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
32065         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
32066         0.0L for an argument of 1.0L.
32067         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
32068         Likewise.
32069         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
32070         value when x - 1 is zero.
32071         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
32072         * sysdeps/i386/fpu/libm-test-ulps: Update.
32073         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32074
32075 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
32076
32077         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
32078         alphasort and versionsort.
32079
32080 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32081
32082         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
32083         macro.
32084         [copysignf]: Likewise.
32085
32086 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
32087
32088         * crypt/md5-crypt.c: Fix formatting.
32089
32090 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32091
32092         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
32093         (b64_from_24bit): New function.
32094
32095 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32096
32097         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
32098         libc_hidden_builtin_def to ifunc.
32099         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
32100         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
32101
32102 2014-05-21  Roland McGrath  <roland@hack.frob.com>
32103
32104         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
32105         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
32106
32107 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
32108
32109         * nscd/Depend (linuxthreads): Remove.
32110         (nptl): Add.
32111         * resolv/Depend (linuxthreads): Remove.
32112         * rt/Depend (linuxthreads): Remove.
32113
32114         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
32115         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
32116         $(common-objpfx)elf/.
32117         (link-libc-before-gnulib): Likewise.
32118         (elfobjdir): Remove variable.
32119         * Makefile (install): Use $(elf-objpfx) instead of
32120         $(common-objpfx)elf/.
32121         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
32122         $(elfobjdir)/.
32123         (link-libc-deps): Likewise.
32124         ($(common-objpfx)libc.so): Likewise.
32125         ($(common-objpfx)linkobj/libc.so): Likewise.
32126         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
32127         instead of $(common-objpfx)elf/.
32128         (symbolic-link-list): Likewise.
32129         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
32130         [$(cross-compiling) = no]: Likewise.
32131         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
32132         $(elfobjdir)/.
32133         (static-gnulib-arch): Likewise.
32134         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
32135         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
32136         $(common-objpfx)elf/.
32137
32138 2014-05-21  Richard Henderson  <rth@redhat.com>
32139
32140         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32141         (SINGLE_THREAD_P): Use the correct width load.  Fold
32142         into the ldr offset.
32143
32144         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
32145         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
32146
32147 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
32148
32149         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
32150         (libgcc_s_resume): Use __attribute_used__.
32151         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
32152         Likewise.
32153
32154 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32155
32156         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
32157         optimization when used with float constants.
32158
32159         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32160
32161 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
32162
32163         [BZ #16915]
32164         * locale/nl_langinfo_l.c: Make direct reference to every
32165         _nl_current_CATEGORY symbol.
32166         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
32167         (tests-static): Add tst-langinfo-static.
32168         (tests-special): Add tst-langinfo-static.out.
32169         ($(objpfx)tst-langinfo.out): Redirect output.
32170         ($(objpfx)tst-langinfo-static.out): New.
32171         * localedata/tst-langinfo.sh: Send output to stdout.
32172         * localedata/tst-langinfo-static.c: New file.
32173
32174         [BZ #16965]
32175         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
32176         when the shift amount is modulo the limb size.
32177
32178 2014-05-20  Richard Henderson  <rth@redhat.com>
32179
32180         [BZ #16967]
32181         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
32182         Change type of sa_flags from unsigned int to int.
32183
32184         [BZ #16966]
32185         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
32186
32187         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
32188
32189 2014-05-20  Will Newton  <will.newton@linaro.org>
32190
32191         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32192         Test the return value of the system call in the nocancel case.
32193
32194 2014-05-20  Will Newton  <will.newton@linaro.org>
32195             Yvan Roux  <yvan.roux@linaro.org>
32196
32197         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
32198         #include of asm/ptrace.h.
32199         (PTRACE_GET_THREAD_AREA): Remove #undef.
32200         (PTRACE_GETHBPREGS): Likewise.
32201         (PTRACE_SETHBPREGS): Likewise.
32202         (struct user_regs_struct): New structure.
32203         (struct user_fpsimd_struct): New structure.
32204         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
32205         #include of asm/ptrace.h and second #include of sys/user.h.
32206         (PTRACE_GET_THREAD_AREA): Remove #undef.
32207         (PTRACE_GETHBPREGS): Likewise.
32208         (PTRACE_SETHBPREGS): Likewise.
32209         (ELF_NGREG): Use new struct user_regs_struct.
32210         (elf_fpregset_t): Use new struct user_fpsimd_struct.
32211
32212 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32213
32214         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
32215         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
32216
32217 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
32218
32219         [BZ #16958]
32220         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
32221         membar to avoid block loads/stores to overlap previous stores.
32222
32223 2014-05-17  Richard Henderson  <rth@redhat.com>
32224
32225         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
32226         Create the __##syscall_name##_nocancel entry point.
32227         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
32228         Remove; let the sysdep-cancel.h code create it.
32229
32230 2014-05-17  David S. Miller  <davem@davemloft.net>
32231
32232         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
32233         Protect with __USE_GNU.
32234         (TIOCSET_TEMPT): Likewise.
32235         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
32236         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
32237         these are already provided in bits/ioctl-types.h
32238
32239 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32240
32241         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
32242         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
32243
32244         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
32245         Use wait4 regardless of [__NR_waitpid].
32246
32247 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
32248
32249         PR libgcc/60166
32250         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
32251         (_FP_NANSIGN_Q): Set the quiet bit.
32252
32253 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
32254
32255         * benchtests/Makefile
32256         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
32257         not $(common-objpfx)math/libm.so.
32258         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
32259         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
32260         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
32261         $(common-objpfx)dlfcn/libdl.so.
32262         ($(objpfx)tst-audit8): Depend on $(libm), not
32263         $(common-objpfx)math/libm.so.
32264         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
32265         not $(common-objpfx)dlfcn/libdl.so.
32266         * math/Makefile
32267         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
32268         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
32269         [$(build-shared) = yes].
32270         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
32271         $(common-objpfx)nptl/libpthread.so.
32272         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
32273         $(common-objpfx)math/libm.so$(libm.so-version) or
32274         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
32275         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
32276         $(common-objpfx)dlfcn/libdl.so.
32277         * setjmp/Makefile (link-libm): Remove variable.
32278         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
32279         * stdio-common/Makefile (link-libm): Remove variable.
32280         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
32281         * stdlib/Makefile (link-libm): Remove variable.
32282         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
32283         ($(objpfx)tst-strtod-round): Likewise.
32284         ($(objpfx)tst-tininess): Likewise.
32285         ($(objpfx)tst-strtod-underflow): Likewise.
32286         ($(objpfx)tst-strtod6): Likewise.
32287         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
32288         $(libdl), not $(common-objpfx)nptl/libpthread.so and
32289         $(common-objpfx)dlfcn/libdl.so.
32290
32291 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32292
32293         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
32294         BSD terminal modes definitions.
32295
32296 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32297
32298         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
32299         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
32300
32301         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
32302         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
32303         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
32304         Don't do #include_next.
32305         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
32306         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
32307         Don't do #include_next.
32308         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
32309         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
32310         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
32311         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
32312
32313 2014-05-16  Allan McRae  <allan@archlinux.org>
32314
32315         * po/sv.po: Update Swedish translation from translation project.
32316
32317         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
32318         in sed expression.
32319
32320 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
32321
32322         [BZ #16917]
32323         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
32324         errno if the TIOCGPTN ioctl fails with an error different than
32325         EINVAL.
32326         * login/tst-ptsname.c: New file.
32327         * login/Makefile (tests): Add tst-ptsname.
32328
32329         [BZ #16943]
32330         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
32331         and prlimit64.
32332
32333 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
32334
32335         [BZ #16849]
32336         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
32337         herrno to return EAI_AGAIN.
32338
32339 2014-05-14  Roland McGrath  <roland@hack.frob.com>
32340
32341         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
32342         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
32343         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
32344         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
32345         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
32346         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
32347         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
32348         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
32349         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
32350         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
32351         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
32352         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
32353         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
32354         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
32355         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
32356         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
32357         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
32358         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
32359         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
32360         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
32361         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
32362         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
32363         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
32364         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
32365         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
32366         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
32367         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
32368         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
32369         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
32370         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
32371         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
32372         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
32373         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
32374         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
32375         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
32376         Moved ...
32377         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
32378         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
32379         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
32380         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
32381         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
32382         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
32383         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
32384         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
32385         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
32386         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
32387         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
32388         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
32389         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
32390         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
32391         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
32392         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
32393         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
32394         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
32395         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
32396         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
32397         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
32398         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
32399         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
32400         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
32401         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
32402         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
32403         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
32404         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
32405         Moved ...
32406         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
32407         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
32408         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
32409         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
32410         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
32411         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
32412         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
32413         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
32414         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
32415         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
32416         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
32417         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
32418         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
32419         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
32420         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
32421         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
32422         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
32423         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
32424         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
32425         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
32426         Moved ...
32427         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
32428         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
32429         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
32430
32431         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
32432         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
32433         (libpthread-sysdep_routines): Add elision-related stuff here instead.
32434         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
32435         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
32436         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
32437         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
32438         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
32439         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
32440         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
32441         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
32442         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
32443         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
32444         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
32445         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
32446         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
32447         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
32448         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
32449         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
32450         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
32451         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
32452         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
32453         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
32454         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
32455         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
32456         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
32457         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
32458         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
32459         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
32460         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
32461         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
32462
32463         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
32464         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
32465
32466         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
32467         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
32468         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
32469         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
32470         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
32471         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
32472         Moved ...
32473         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
32474         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
32475         Moved ...
32476         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
32477         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
32478         Moved ...
32479         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
32480         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
32481         Moved ...
32482         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
32483         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
32484         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
32485         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
32486         Moved ...
32487         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
32488         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
32489         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
32490         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
32491         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
32492         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
32493         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
32494         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
32495         Moved ...
32496         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
32497         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32498         Moved ...
32499         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32500         ... here.
32501         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
32502         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
32503         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
32504         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
32505         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32506         Moved ...
32507         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32508         ... here.
32509         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
32510         Moved ...
32511         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
32512         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
32513         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
32514         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
32515         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
32516         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
32517         Moved ...
32518         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
32519         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
32520         Moved ...
32521         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
32522         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
32523         Moved ...
32524         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
32525         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
32526         Moved ...
32527         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
32528         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
32529         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
32530         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
32531         Moved ...
32532         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
32533         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
32534         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
32535         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
32536         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
32537         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
32538         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
32539         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
32540         Moved ...
32541         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
32542         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32543         Moved ...
32544         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32545         ... here.
32546         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
32547         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
32548         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
32549         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
32550         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32551         Moved ...
32552         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32553         ... here.
32554         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
32555         Moved ...
32556         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
32557         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
32558         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
32559         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
32560         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
32561         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
32562         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
32563         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
32564         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
32565         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
32566         Moved ...
32567         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
32568         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
32569         Moved ...
32570         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
32571         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
32572         Moved ...
32573         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
32574         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
32575         Moved ...
32576         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
32577         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
32578         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
32579         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
32580         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
32581         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
32582         Moved ...
32583         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
32584         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
32585         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
32586         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
32587         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
32588         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
32589         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
32590         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
32591         Moved ...
32592         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
32593         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32594         Moved ...
32595         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32596         ... here.
32597         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
32598         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
32599         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
32600         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
32601         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32602         Moved ...
32603         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32604         ... here.
32605         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
32606         Moved ...
32607         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
32608         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
32609         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
32610         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
32611         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
32612         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
32613         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
32614         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
32615         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
32616         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
32617         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
32618
32619         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
32620         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
32621
32622         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
32623         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
32624
32625         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
32626         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
32627         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
32628         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
32629         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
32630         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
32631         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
32632         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
32633         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
32634         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
32635         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
32636         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
32637         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
32638         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
32639         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
32640         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
32641         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
32642         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
32643         Moved ...
32644         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
32645         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
32646         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
32647         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
32648         Moved ...
32649         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
32650         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
32651         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
32652         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
32653         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
32654         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
32655         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
32656         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
32657         Moved ...
32658         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
32659         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
32660         Moved ...
32661         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
32662         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
32663         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
32664         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
32665         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
32666         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
32667         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
32668         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
32669         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
32670         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
32671         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
32672         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
32673         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
32674         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
32675         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
32676         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
32677         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
32678
32679         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
32680         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
32681         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
32682         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
32683         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
32684
32685         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
32686         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
32687         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
32688         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
32689         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
32690         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
32691         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
32692         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
32693         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
32694         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
32695
32696         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
32697         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
32698
32699         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
32700         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
32701         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
32702         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
32703         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
32704         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
32705         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
32706         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
32707         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
32708         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
32709         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
32710         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
32711         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
32712         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
32713         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
32714         Update #include.
32715         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
32716         Likewise.
32717         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32718         Likewise.
32719         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32720         Likewise.
32721         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32722         Likewise.
32723         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
32724         Likewise.
32725         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
32726         Likewise.
32727         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
32728         Likewise.
32729         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
32730         Likewise.
32731         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
32732         Likewise.
32733         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
32734         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
32735         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
32736         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
32737         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
32738         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
32739         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
32740         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
32741         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
32742         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
32743         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
32744         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
32745         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
32746         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
32747         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
32748
32749         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
32750         that was previously under [RESET_PID].
32751         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
32752         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
32753         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
32754
32755         * sysdeps/i386/nptl/Implies: New file.
32756         * sysdeps/x86_64/nptl/Implies: New file.
32757         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
32758         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
32759         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
32760         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
32761
32762         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
32763         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32764         (__libc_vfork): New strong alias.
32765         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
32766         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
32767
32768         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
32769         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32770         (__libc_vfork): New strong alias.
32771         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
32772         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
32773
32774         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
32775         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32776         (__libc_vfork): New strong alias.
32777         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
32778         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
32779         * nptl/pt-vfork.c: New file.
32780         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
32781         (libpthread: GLIBC_2.20): New version set (empty).
32782
32783 2014-05-14  Will Newton  <will.newton@linaro.org>
32784
32785         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
32786         rather than #if.
32787
32788 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
32789
32790         [BZ #16564]
32791         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
32792         arguments with exponent 65 or above.
32793         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
32794         arguments 0x1p113L or above.
32795         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
32796         to arguments 0x1p107L or above.
32797         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
32798         positive arguments with exponent 65 or above.
32799         * math/auto-libm-test-in: Add more tests of log1p.
32800         * math/auto-libm-test-out: Regenerated.
32801
32802         [BZ #16928]
32803         * math/s_cacos.c (__cacos): Ensure zero real part of result from
32804         non-finite arguments is +0.
32805         * math/s_cacosf.c (__cacosf): Likewise.
32806         * math/s_cacosl.c (__cacosl): Likewise.
32807         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
32808         * sysdeps/i386/fpu/libm-test-ulps: Update.
32809         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32810
32811         [BZ #16927]
32812         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
32813         value.
32814         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
32815         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
32816         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
32817         for explicit high bit of mantissa when testing for argument equal
32818         to 1.
32819         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
32820         * sysdeps/i386/fpu/libm-test-ulps: Update.
32821         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32822
32823         [BZ #16516]
32824         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
32825         (__erf): Scale by 16 instead of 8 in potentially underflowing
32826         case.  Ensure exception if result actually underflows.
32827         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
32828         (__erff): Scale by 16 instead of 8 in potentially underflowing
32829         case.  Ensure exception if result actually underflows.
32830         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
32831         (efx8): Remove variable.
32832         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32833         case.  Ensure exception if result actually underflows.
32834         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
32835         (efx8): Remove variable.
32836         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32837         case.  Ensure exception if result actually underflows.
32838         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
32839         (efx8): Remove variable.
32840         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32841         case.  Ensure exception if result actually underflows.
32842         * math/auto-libm-test-in: Add more tests of erf.
32843         * math/auto-libm-test-out: Regenerated.
32844
32845 2014-05-14  Andreas Schwab  <schwab@suse.de>
32846
32847         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
32848         Remove code conditionalized on USE___THREAD.
32849
32850         * config.h.in (HAVE_PT_CHOWN): Define as 0.
32851         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
32852         not definedness.
32853
32854 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
32855
32856         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
32857         Define unconditionally.
32858         (__ASSUME_O_CLOEXEC): Likewise.
32859         (__ASSUME_SOCK_CLOEXEC): Likewise.
32860         (__ASSUME_IN_NONBLOCK): Likewise.
32861         (__ASSUME_PIPE2): Likewise.
32862         (__ASSUME_EVENTFD2): Likewise.
32863         (__ASSUME_SIGNALFD4): Likewise.
32864         (__ASSUME_DUP3): Likewise.
32865         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
32866         (__ASSUME_DUP3): Do not define.
32867         (__ASSUME_EVENTFD2): Likewise.
32868         (__ASSUME_IN_NONBLOCK): Likewise.
32869         (__ASSUME_O_CLOEXEC): Likewise.
32870         (__ASSUME_PIPE2): Likewise.
32871         (__ASSUME_SIGNALFD4): Likewise.
32872         (__ASSUME_SOCK_CLOEXEC): Likewise.
32873         (__ASSUME_UTIMES): Undefine.
32874         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
32875         (__ASSUME_UTIMES): Do not define.
32876         (__ASSUME_O_CLOEXEC): Likewise.
32877         (__ASSUME_SOCK_CLOEXEC): Likewise.
32878         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
32879         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
32880         0x020621].
32881         (__ASSUME_PIPE2): Likewise.
32882         (__ASSUME_EVENTFD2): Likewise.
32883         (__ASSUME_SIGNALFD4): Likewise.
32884         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
32885         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
32886         Do not define.
32887         (__ASSUME_EVENTFD2): Likewise.
32888         (__ASSUME_SIGNALFD4): Likewise.
32889         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
32890         (__ASSUME_32BITUIDS): Likewise.
32891         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
32892         (__ASSUME_IPC64): Likewise.
32893         (__ASSUME_ST_INO_64_BIT): Likewise.
32894         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
32895         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
32896         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
32897         (__ASSUME_UTIMES): Do not define.
32898         (__ASSUME_PSELECT): Likewise.
32899         (__ASSUME_PPOLL): Likewise.
32900         (__ASSUME_O_CLOEXEC): Likewise.
32901         (__ASSUME_SOCK_CLOEXEC): Likewise.
32902         (__ASSUME_IN_NONBLOCK): Likewise.
32903         (__ASSUME_PIPE2): Likewise.
32904         (__ASSUME_EVENTFD2): Likewise.
32905         (__ASSUME_SIGNALFD4): Likewise.
32906         (__ASSUME_DUP3): Likewise.
32907         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
32908         (__ASSUME_UTIMES): Likewise.
32909         (__ASSUME_O_CLOEXEC): Likewise.
32910         (__ASSUME_SOCK_CLOEXEC): Likewise.
32911         (__ASSUME_IN_NONBLOCK): Likewise.
32912         (__ASSUME_PIPE2): Likewise.
32913         (__ASSUME_EVENTFD2): Likewise.
32914         (__ASSUME_SIGNALFD4): Likewise.
32915         (__ASSUME_DUP3): Likewise.
32916         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
32917         (__ASSUME_UTIMES): Likewise.
32918         (__ASSUME_O_CLOEXEC): Likewise.
32919         (__ASSUME_SOCK_CLOEXEC): Likewise.
32920         (__ASSUME_IN_NONBLOCK): Likewise.
32921         (__ASSUME_PIPE2): Likewise.
32922         (__ASSUME_EVENTFD2): Likewise.
32923         (__ASSUME_SIGNALFD4): Likewise.
32924         (__ASSUME_DUP3): Likewise.
32925         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
32926         Likewise.
32927         (__ASSUME_UTIMES): Likewise.
32928         (__ASSUME_EVENTFD2): Likewise.
32929         (__ASSUME_SIGNALFD4): Likewise.
32930         * sysdeps/unix/sysv/linux/tile/kernel-features.h
32931         (__ASSUME_O_CLOEXEC): Likewise.
32932         (__ASSUME_SOCK_CLOEXEC): Likewise.
32933         (__ASSUME_IN_NONBLOCK): Likewise.
32934         (__ASSUME_PIPE2): Likewise.
32935         (__ASSUME_EVENTFD2): Likewise.
32936         (__ASSUME_SIGNALFD4): Likewise.
32937         (__ASSUME_DUP3): Likewise.
32938         (__ASSUME_UTIMES): Undefine.
32939
32940         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
32941         feclearexcept.  Remove symbol versioning code.
32942         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
32943         symbol versioning code.
32944         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
32945         symbol versioning code.
32946         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
32947         feupdateenv.  Remove symbol versioning code.
32948         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
32949         fegetexceptflag.  Remove symbol versioning code.
32950         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
32951         fesetexceptflag.  Remove symbol versioning code.
32952         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
32953         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
32954         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
32955         (__posix_fadvise64_l32): Remove prototype.
32956         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
32957         code.
32958
32959 2014-05-13  Roland McGrath  <roland@hack.frob.com>
32960
32961         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
32962         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
32963         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
32964         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
32965
32966 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
32967
32968         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
32969         current working directory
32970
32971 2014-05-13  Roland McGrath  <roland@hack.frob.com>
32972
32973         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
32974         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
32975         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
32976         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
32977         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
32978         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
32979         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
32980         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
32981         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
32982         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
32983         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
32984         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
32985         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
32986         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
32987         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
32988         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
32989         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
32990         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
32991         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
32992         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
32993         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
32994         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
32995         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
32996         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
32997         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
32998         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
32999         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
33000         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
33001         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
33002         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
33003         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
33004         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
33005         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
33006         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
33007         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
33008         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
33009         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
33010         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
33011         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
33012         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
33013         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
33014         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
33015
33016         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
33017         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
33018
33019         * sysdeps/unix/sysv/linux/arm/Makefile
33020         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
33021         Add rt-aeabi_unwind_cpp_pr1.
33022         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
33023         Add nptl-aeabi_unwind_cpp_pr1.
33024         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
33025         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
33026         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
33027         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
33028         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
33029         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
33030
33031         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
33032         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
33033         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
33034         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
33035
33036         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
33037         Deconditionalize the code that was previously under [RESET_PID].
33038         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
33039
33040         * sysdeps/generic/exit-thread.h: New file.
33041         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
33042         * include/unistd.h (__exit_thread): Remove declaration.
33043         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
33044         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
33045         * csu/libc-start.c: Include <exit-thread.h>.
33046         (LIBC_START_MAIN): Pass no argument to __exit_thread.
33047         * nptl/pthread_create.c: Include <exit-thread.h>.
33048         (start_thread): Call __exit_thread in place of __exit_thread_inline.
33049         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
33050         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
33051         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
33052         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
33053         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
33054         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
33055         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
33056         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
33057         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
33058         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
33059         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
33060         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
33061         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
33062         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
33063         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
33064         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
33065
33066 2014-05-13  Andreas Schwab  <schwab@suse.de>
33067
33068         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
33069
33070 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
33071
33072         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
33073         (__ASSUME_UTIMES): Do not condition on kernel version.
33074         (__ASSUME_PSELECT): Define unconditionally.
33075         (__ASSUME_PPOLL): Likewise.
33076         (__ASSUME_ATFCTS): Likewise.
33077         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
33078         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
33079         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
33080         (__ASSUME_UTIMENSAT): Define unconditionally.
33081         (__ASSUME_PRIVATE_FUTEX): Likewise.
33082         (__ASSUME_FALLOCATE): Likewise.
33083         (__ASSUME_O_CLOEXEC): Likewise.
33084         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
33085         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
33086         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
33087         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
33088         (__ASSUME_IN_NONBLOCK): Likewise.
33089         (__ASSUME_PIPE2): Likewise.
33090         (__ASSUME_EVENTFD2): Likewise.
33091         (__ASSUME_SIGNALFD4): Likewise.
33092         (__ASSUME_DUP3): Likewise.
33093         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33094         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
33095         (__ASSUME_AT_RANDOM): Likewise.
33096         (__ASSUME_PREADV): Likewise.
33097         (__ASSUME_PWRITEV): Likewise.
33098         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
33099         (__ASSUME_F_GETOWN_EX): Define unconditionally.
33100         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
33101         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
33102         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
33103         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33104         (__ASSUME_O_CLOEXEC): Define unconditionally.
33105         (__ASSUME_PSELECT): Do not undefine conditionally.
33106         (__ASSUME_PPOLL): Likewise.
33107         (__ASSUME_ATFCTS): Likewise.
33108         (__ASSUME_SET_ROBUST_LIST): Likewise.
33109         (__ASSUME_UTIMENSAT): Likewise.
33110         (__ASSUME_FDATASYNC): Define unconditionally.
33111         * sysdeps/unix/sysv/linux/arm/kernel-features.h
33112         (__ASSUME_SIGFRAME_V2): Likewise.
33113         )__ASSUME_EVENTFD2): Likewise.
33114         (__ASSUME_SIGNALFD4): Likewise.
33115         (__ASSUME_PSELECT): Do not undefine conditionally.
33116         (__ASSUME_PPOLL): Likewise.
33117         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33118         (__ASSUME_PSELECT): Define unconditionally.
33119         (__ASSUME_PPOLL): Likewise.
33120         (__ASSUME_O_CLOEXEC): Likewise.
33121         (__ASSUME_SOCK_CLOEXEC): Likewise.
33122         (__ASSUME_IN_NONBLOCK): Likewise.
33123         (__ASSUME_PIPE2): Likewise.
33124         (__ASSUME_EVENTFD2): Likewise.
33125         (__ASSUME_SIGNALFD4): Likewise.
33126         (__ASSUME_DUP3): Likewise.
33127         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33128         (__ASSUME_O_CLOEXEC): Likewise.
33129         (__ASSUME_SOCK_CLOEXEC): Likewise.
33130         (__ASSUME_IN_NONBLOCK): Likewise.
33131         (__ASSUME_PIPE2): Likewise.
33132         (__ASSUME_EVENTFD2): Likewise.
33133         (__ASSUME_SIGNALFD4): Likewise.
33134         (__ASSUME_DUP3): Likewise.
33135         * sysdeps/unix/sysv/linux/mips/kernel-features.h
33136         (__ASSUME_EVENTFD2): Likewise.
33137         (__ASSUME_SIGNALFD4): Likewise.
33138         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33139
33140 2014-05-12  Andreas Schwab  <schwab@suse.de>
33141
33142         [BZ #16932]
33143         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
33144         (_nss_nis_gethostbyname4_r): Return error if item length is larger
33145         than maximum RPC packet size.
33146         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
33147         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
33148         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
33149         (_nss_nis_getservbyport_r): Likewise.
33150
33151 2014-05-12  Will Newton  <will.newton@linaro.org>
33152
33153         * malloc/Makefile (tests): Add tst-mallopt.
33154         * malloc/tst-mallopt.c: New file.
33155
33156 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33157
33158         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
33159         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
33160
33161 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33162
33163         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
33164         (tst-tlsmod6.so): Likewise.
33165
33166 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33167
33168         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
33169
33170 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
33171
33172         [BZ #16064]
33173         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
33174         and <dl-procinfo.h>.
33175         (__fegetenv): Save SSE state in envp->__eip if supported.
33176         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
33177         envp->__eip if supported.
33178         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
33179         and <dl-procinfo.h>.
33180         (__fesetenv): Always set __eip, __cs_selector, __opcode,
33181         __data_offset and __data_selector in environment to 0.  Set SSE
33182         state if supported.
33183         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
33184         test-fenv-sse.
33185         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
33186         -mfpmath=sse.
33187         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
33188
33189 2014-05-09  Will Newton  <will.newton@linaro.org>
33190
33191         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
33192         and libc_relro_required for ARM.
33193         * sysdeps/arm/preconfigure: Regenerate.
33194
33195 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33196             Stefan Liebler  <stli@linux.vnet.ibm.com>
33197
33198         * config.make.in (enable-lock-elision): New Makefile variable.
33199         * configure.ac: Likewise.
33200         * configure: Regenerate.
33201         * sysdeps/s390/configure.ac:
33202         Add check for gcc transactions support.
33203         * sysdeps/s390/configure: Regenerate.
33204         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
33205         Build elision files if enabled.
33206         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
33207         Add lock elision support for s390.
33208         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
33209         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
33210         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
33211         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
33212         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
33213         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
33214         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
33215         Likewise.
33216         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
33217         Likewise.
33218         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
33219         Likewise.
33220         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
33221         Likewise.
33222         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
33223         (__lll_timedlock_elision, __lll_lock_elision)
33224         (__lll_unlock_elision, __lll_trylock_elision)
33225         (lll_timedlock_elision, lll_lock_elision)
33226         (lll_unlock_elision, lll_trylock_elision): Add.
33227         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33228         (pthread_mutex_t): Add lock elision support for s390.
33229
33230 2014-05-14  Wilco  <wdijkstr@arm.com>
33231
33232         * sysdeps/arm/fclrexcpt.c: Cleanup.
33233         * sysdeps/arm/fedisblxcpt.c: Cleanup.
33234         * sysdeps/arm/feenablxcpt.c: Cleanup.
33235         * sysdeps/arm/fegetenv.c: Cleanup.
33236         * sysdeps/arm/fegetexcept.c: Cleanup.
33237         * sysdeps/arm/fegetround.c: Cleanup.
33238         * sysdeps/arm/feholdexcpt.c: Cleanup.
33239         * sysdeps/arm/fesetenv.c: Cleanup.
33240         * sysdeps/arm/fesetround.c: Cleanup.
33241         * sysdeps/arm/feupdateenv.c: Cleanup.
33242         * sysdeps/arm/fgetexcptflg.c: Cleanup.
33243         * sysdeps/arm/fraiseexcpt.c: Cleanup.
33244         * sysdeps/arm/fsetexcptflg.c: Cleanup.
33245         * sysdeps/arm/ftestexcept.c: Cleanup.
33246         * sysdeps/arm/get-rounding-mode.h: Cleanup.
33247         * sysdeps/arm/setfpucw.c: Cleanup.
33248
33249 2014-05-09  Will Newton  <will.newton@linaro.org>
33250
33251         * sysdeps/arm/armv7/strcmp.S: New file.
33252         * NEWS: Mention addition of ARMv7 optimized strcmp.
33253
33254 2014-05-08  Roland McGrath  <roland@hack.frob.com>
33255
33256         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
33257         look for %.ac rather than %.in.
33258
33259         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
33260         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
33261         * sysdeps/mach/hurd/configure: Regenerated.
33262         * sysdeps/unix/sysv/linux/configure: Regenerated.
33263
33264         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
33265
33266 2014-05-07  Steve Ellcey  <sellcey@mips.com>
33267
33268         [BZ# 16922]
33269         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
33270         (LONG_SUB): Ditto.
33271         (PTR_SUB): Ditto.
33272
33273 2014-05-07  Andreas Schwab  <schwab@suse.de>
33274
33275         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
33276         when skipping over non-matching result from nscd.
33277
33278 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
33279
33280         [BZ #16876]
33281         * nptl/sockperf.c (client): Check socket return value.
33282
33283         [BZ #16877]
33284         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
33285         nscd security class.
33286
33287 2014-05-06  Roland McGrath  <roland@hack.frob.com>
33288
33289         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
33290         * sysdeps/arm/unwind.h: ... here.
33291
33292 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
33293
33294         [BZ# 16916]
33295         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
33296         Define.
33297
33298 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
33299
33300         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
33301         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
33302         multiarch strncpy for PPC64.
33303         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
33304         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
33305         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
33306         multiarch optimizations.
33307         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
33308         (__libc_ifunc_impl_list): Likewise.
33309         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
33310         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
33311         multiarch stpncpy for PPC64.
33312         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
33313         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
33314
33315 2014-05-06  Andreas Schwab  <schwab@suse.de>
33316
33317         [BZ #16912]
33318         * gmon/mcount.c (_MCOUNT_DECL): Use
33319         atomic_compare_and_exchange_bool_acq instead of
33320         catomic_compare_and_exchange_bool_acq.
33321
33322 2014-05-05  Roland McGrath  <roland@hack.frob.com>
33323
33324         * elf/Makefile (others, install-bin): Remove pldd.
33325         (pldd-modules): Variable removed.
33326         ($(objpfx)pldd): Target removed.
33327         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
33328         (others, install-bin): Append pldd here.
33329         ($(objpfx)pldd): New target.
33330
33331         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
33332         to 0, so the first #if test emitted later doesn't see it undefined.
33333         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
33334         * sysdeps/gnu/errlist.c: Regenerated.
33335
33336 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33337
33338         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
33339         [libc_hidden_builtin_def]: Define to empty value.
33340         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
33341         [libc_hidden_builtin_def]: Likewise.
33342         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
33343         [libc_hidden_builtin_def]: Likewise.
33344         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
33345         [libc_hidden_builtin_def]: Likewise.
33346         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
33347         __redirect_memcpy and define ifunc as default hidden symbol.
33348         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
33349         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
33350
33351 2014-05-04  Adam Conrad  <adconrad@0c3.net>
33352
33353         * locale/iso-4217.def: Reintroduce XDR currency.
33354
33355 2014-05-04  Allan McRae  <allan@archlinux.org>
33356
33357         * po/eo.po: Update Esperanto translation from translation project.
33358
33359 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
33360
33361         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
33362         and FEATURE_INDEX_MAX to 1.
33363         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
33364
33365 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33366
33367         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
33368         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
33369         * iconvdata/big5.c (ONE_DIRECTION): Define.
33370         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
33371         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
33372         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
33373         * iconvdata/cp932.c (ONE_DIRECTION): Define.
33374         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
33375         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
33376         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
33377         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
33378         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
33379         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
33380         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
33381         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
33382         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
33383         * iconvdata/gbk.c (ONE_DIRECTION): Define.
33384         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
33385         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
33386         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
33387         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
33388         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
33389         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
33390         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
33391         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
33392         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
33393         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
33394         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
33395         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
33396         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
33397         * iconvdata/iso646.c (ONE_DIRECTION): Define.
33398         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
33399         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
33400         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
33401         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
33402         * iconvdata/johab.c (ONE_DIRECTION): Define.
33403         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
33404         * iconvdata/sjis.c (ONE_DIRECTION): Define.
33405         * iconvdata/t.61.c (ONE_DIRECTION): Define.
33406         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
33407         * iconvdata/tscii.c (ONE_DIRECTION): Define.
33408         * iconvdata/uhc.c (ONE_DIRECTION): Define.
33409         * iconvdata/unicode.c (ONE_DIRECTION): Define.
33410         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
33411         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
33412         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
33413
33414 2014-05-01  Roland McGrath  <roland@hack.frob.com>
33415
33416         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
33417         (_IO_JUMPS_OFFSET): Define to 0.
33418
33419         * nptl/sysdeps/pthread/bits/libc-lock.h
33420         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
33421         (__libc_lock_define_initialized_recursive): Always define using
33422         initializer.  Modern compilers treat uninitialized (implicit zero) and
33423         explicit zero initializers the same (i.e. put the datum in bss).
33424
33425 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33426
33427         * nscd/nscd-client.h: Include <string.h>.
33428
33429 2014-05-01  David S. Miller  <davem@davemloft.net>
33430
33431         [BZ #16885]
33432         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
33433         multiple zero bytes exist at the end of a string.
33434         Reported by Aurelien Jarno <aurelien@aurel32.net>
33435
33436         * string/test-strcmp.c (check): Add explicit test for situations where
33437         there are multiple zero bytes after the first.
33438
33439 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33440
33441         [BZ #16890]
33442         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
33443         when compiling wprintf.
33444         * stdio-common/tstdiomisc.c (t3): New function.
33445         (main): Call it.
33446
33447 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33448
33449         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
33450         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
33451         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
33452         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
33453
33454 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33455
33456         * stdlib/longlong.h: Updated from GCC.
33457
33458 2014-05-01  Will Newton  <will.newton@linaro.org>
33459             Bernard Ogden  <bernie.ogden@linaro.org>
33460
33461         * NEWS: Update fixed bug list.
33462
33463         [BZ #15119]
33464         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
33465
33466 2014-04-30  David S. Miller  <davem@davemloft.net>
33467
33468         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
33469         (libc_feholdexcept_setround_sparc_ctx): New function.
33470         (libc_fesetenv_sparc_ctx): Likewise.
33471         (libc_feupdateenv_sparc_ctx): Likewise.
33472         (libc_feholdsetround_sparc_ctx): Likewise.
33473         (libc_feholdexcept_setround_ctx): Define.
33474         (libc_feholdexcept_setroundf_ctx): Likewise.
33475         (libc_feholdexcept_setroundl_ctx): Likewise.
33476         (libc_fesetenv_ctx): Likewise.
33477         (libc_fesetenvf_ctx): Likewise.
33478         (libc_fesetenvl_ctx): Likewise.
33479         (libc_feupdateenv_ctx): Likewise.
33480         (libc_feupdateenvf_ctx): Likewise.
33481         (libc_feupdateenvl_ctx): Likewise.
33482         (libc_feresetround_ctx): Likewise.
33483         (libc_feresetroundf_ctx): Likewise.
33484         (libc_feresetroundl_ctx): Likewise.
33485         (libc_feholdsetround_ctx): Likewise.
33486         (libc_feholdsetroundf_ctx): Likewise.
33487         (libc_feholdsetroundl_ctx): Likewise.
33488
33489         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33490         with __USE_GNU instead of XOPEN cpp guards.
33491
33492         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
33493         0.
33494
33495         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33496         with XOPEN cpp guards.
33497
33498 2014-04-30  Julian Brown  <julian@codesourcery.com>
33499
33500         [BZ #16888]
33501         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
33502         handling.
33503
33504 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
33505
33506         [BZ #9894]
33507         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
33508         Change to 2.6.32.
33509         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
33510         * sysdeps/unix/sysv/linux/configure: Regenerated.
33511         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
33512         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
33513         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
33514         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
33515         * README: Update reference to required Linux kernel version.
33516         * manual/install.texi (Linux): Update reference to required Linux
33517         kernel headers version.
33518         * INSTALL: Regenerated.
33519
33520         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
33521         header inclusion.
33522         [POSIX] (limits.h): Likewise.
33523         [POSIX] (math.h): Likewise.
33524         [POSIX] (sys/wait.h): Likewise.
33525         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
33526         function.
33527         [POSIX] (stddef.h): Do not allow header inclusion.
33528
33529 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33530
33531         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
33532
33533 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
33534
33535         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
33536         Return immediately after lll_futex_wake.
33537
33538 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33539
33540         [BZ #16791]
33541         * nscd/nscd-client.h (datahead_init_common): Initialize entire
33542         structure.
33543         (datahead_init_pos): Call datahead_init_common early.
33544         (datahead_init_neg): Likewise.
33545
33546         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
33547         datahead_init_neg): New functions.
33548         * nscd/aicache.c (addhstaiX): Use them.
33549         * nscd/grpcache.c (cache_addgr): Likewise.
33550         * nscd/hstcache.c (cache_addhst): Likewise.
33551         * nscd/initgrcache.c (addinitgroupsX): Likewise.
33552         * nscd/netgroupcache.c (do_notfound): Likewise.
33553         (addgetnetgrentX): Likewise.
33554         (addinnetgrX): Likewise.
33555         * nscd/pwdcache.c (cache_addpw): Likewise.
33556         * nscd/servicescache.c (cache_addserv): Likewise.
33557
33558 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33559             Atsushi Onoe  <atsushi@onoe.org>
33560
33561         [BZ #14308]
33562         [BZ #12994]
33563         [BZ #13651]
33564         * resolv/res_query.c (__libc_res_nsearch): Return if at least
33565         one response is valid.
33566         * resolv/res_send.c (send_dg): Check for validity of other
33567         response if the current response is a referral.
33568
33569 2014-04-29  Steve Ellcey  <sellcey@mips.com>
33570
33571         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
33572
33573 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
33574
33575         [BZ #16823]
33576         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
33577         Always divide by positive zero when computing -Inf result.
33578         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
33579         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
33580
33581 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33582
33583         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
33584         FPSCR if value do not change.
33585         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
33586         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
33587         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
33588         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
33589         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
33590         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
33591         function.
33592
33593 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
33594
33595         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
33596         * sysdeps/unix/sysv/linux/hppa: Move directory from
33597         ports/systeps/unix/sysv/linux/hppa.
33598         * README: Update listing for hppa-*-linux-gnu.
33599
33600 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
33601
33602         [BZ #16754]
33603         * manual/stdio.texi (Hook functions): Fix types of stream hook
33604         functions.
33605         [BZ #16854]
33606         * socket/sys/socket.h: Fix typo in comment.
33607
33608 2014-04-28  Wilco  <wdijkstr@arm.com>
33609
33610         * sysdeps/arm/fenv_private.h: New file.
33611         * sysdeps/arm/math_private.h: New file.
33612         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
33613
33614 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
33615
33616         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
33617         with __int128_t.
33618         (La_x86_64_retval): Likewise.
33619
33620 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
33621
33622         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
33623         fpsr if value didn't change.
33624         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
33625         to fpcr if value didn't change.
33626         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
33627         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
33628         fpsr or fpcr if value didn't change.
33629         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
33630         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
33631         fpcr if value didn't change.
33632         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
33633         to fpsr if value didn't change.
33634
33635 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
33636
33637         * nptl/tst-sem3.c: Use test-skeleton.c
33638         (main): Rename to do_test.  Use return instead of
33639         exit.
33640         * nptl/tst-sem4.c: Use test-skeleton.c
33641         (main): Rename to do_test.
33642
33643 2014-04-22  David S. Miller  <davem@davemloft.net>
33644
33645         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
33646         (struct sigaction): New struct member __glibc_reserved0, change
33647         type of sa_flags to int.
33648
33649 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
33650
33651         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
33652         (COUNT_LEADING_ZEROS_0): Define for AArch64.
33653
33654 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
33655
33656         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
33657         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
33658
33659 2014-04-22  Will Newton  <will.newton@linaro.org>
33660             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
33661
33662         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
33663         (__longjmp): Add longjmp and longjmp_target SystemTap
33664         probes.
33665         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
33666         (__sigsetjmp): Add setjmp SystemTap probe.
33667
33668 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
33669
33670         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
33671         match manual order.
33672
33673 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33674
33675         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
33676
33677         * sysdeps/powerpc/fpu/fenv_private.h
33678         (libc_feholdexcept_setroundl_ctx): Define to
33679         libc_feholdexcept_setround_ppc_ctx.
33680         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
33681         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
33682         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
33683         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
33684
33685 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33686
33687         * sysdeps/aarch64/math-tests.h: New file.
33688
33689 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
33690
33691         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
33692         New.
33693         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33694         Check and set bit_AVX2_Usable.
33695         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
33696         macro.
33697         (bit_AVX2): Likewise.
33698         (index_AVX2_Usable): Likewise.
33699         (CPUID_AVX2): Likewise.
33700         (HAS_AVX2): Likewise.
33701
33702 2014-04-17  Will Newton  <will.newton@linaro.org>
33703
33704         * manual/setjmp.texi (System V contexts): Add note that
33705         calling setcontext on a context created by a call to a
33706         signal handler is undefined.  Update text to note that
33707         setcontext from a signal handler is possible but not
33708         recommended.
33709
33710         [BZ #16629]
33711         * stdlib/tst-setcontext.c: Include signal.h.
33712         (main): Check that the signal stack before and
33713         after swapcontext is the same.
33714
33715         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
33716         Re-implement to restore registers in user code and avoid
33717         rt_sigreturn system call.
33718
33719 2014-04-17  Wilco  <wdijkstr@arm.com>
33720
33721         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
33722         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
33723         * math/test-fenv.c: Skip exception trap tests on targets which only
33724         support non-stop mode.
33725
33726 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33727             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33728
33729         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
33730         (libc_feholdsetround_aarch64_ctx)
33731         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
33732         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
33733         (libc_feresetround_ctx, libc_feresetroundf_ctx)
33734         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
33735         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
33736         (libc_feresetround_noexl_ctx): Define.
33737
33738 2014-04-16  Richard Henderson  <rth@redhat.com>
33739
33740         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
33741
33742         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
33743         unwind tables.
33744
33745         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
33746         const from the non-libc, non-ldso copy.
33747
33748         * sysdeps/alpha/libm-test-ulps: Regenerate.
33749
33750 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
33751             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33752
33753         * sysdeps/aarch64/fpu/math_private.h: New file.
33754
33755 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33756
33757         * sysdeps/aarch64/libm-test-ulps: Regenerate.
33758
33759 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
33760
33761         [BZ #16275]
33762         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
33763         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
33764         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
33765         Intel MPX bound registers before _dl_profile_fixup.
33766         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
33767         registers after _dl_profile_fixup.  Save and restore bound
33768         registers bnd0/bnd1 when calling _dl_call_pltexit.
33769         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
33770         (LR_BND_OFFSET): Likewise.
33771         (LRV_BND0_OFFSET): Likewise.
33772         (LRV_BND1_OFFSET): Likewise.
33773
33774 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33775
33776         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
33777         to...
33778         * sysdeps/mach/hurd/i386/tls.h: ... here.
33779         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
33780         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
33781         fields.
33782
33783 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33784
33785         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
33786
33787 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
33788
33789         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
33790
33791 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
33792
33793         [BZ #14770]
33794         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
33795         * sysdeps/s390/configure: Regenerate.
33796
33797         [BZ #16824]
33798         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
33799         Set round-to-nearest internally to reduce error accumulation.
33800
33801 2014-04-16  Alan Modra  <amodra@gmail.com>
33802
33803         [BZ #16740]
33804         [BZ #16619]
33805         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
33806         * math/libm-test.inc (frexp_test_data): Add tests.
33807         * NEWS: Update fixed bug list.
33808
33809 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
33810
33811         * benchtests/Makefile: Depend on libraries in build directory.
33812         (bench-math): Separate out math tests.
33813         (bench-pthread): Separate out pthread tests.
33814         (bench): Include math and pthread tests.
33815
33816 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
33817
33818         [BZ #16831]
33819         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
33820         _dl_debug_initialize.
33821
33822         * configure.ac: Remove SELinux header check.
33823         * configure: Regenerate.
33824         * nscd/selinux.c (perms): Array of const char* to permission names.
33825         (nscd_request_avc_has_perm): Call security_deny_unknown to find
33826         default policy. Call string_to_security_class and string_to_av_perm to
33827         translate strings. Enforce default policy and call avs_has_perm with
33828         results of translated strings.
33829
33830 2014-04-13  David S. Miller  <davem@davemloft.net>
33831
33832         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33833
33834 2014-04-12  Allan McRae  <allan@archlinux.org>
33835
33836         [BZ #16838]
33837         * manual/string.texi (Collation Functions): Fix qsort argument
33838         order in example.
33839         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
33840
33841 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
33842
33843         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
33844         Make the test a no-op if there are no exceptions defined.
33845
33846 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
33847
33848         * elf/Makefile (tests): make tst-dlopen-aout conditional on
33849         enable-hardcoded-path-in-tests
33850
33851 2014-04-11  Will Newton  <will.newton@linaro.org>
33852
33853         * benchtests/Makefile (extra-objs): Add json-lib.o.
33854         (bench-func): Tidy up JSON output.
33855         * benchtests/bench-skeleton.c: Include json-lib.h.
33856         (main): Use JSON library functions to do output of
33857         benchmark results.
33858         * benchtests/bench-timing-type.c (main): Output the
33859         timing type simply, leaving formatting to the user.
33860         * benchtests/json-lib.c: New file.
33861         * benchtests/json-lib.h: Likewise.
33862
33863 2014-04-11  Torvald Riegel  <triegel@redhat.com>
33864
33865         [BZ #15215]
33866         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
33867         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
33868         memory barriers.  Add comments.
33869         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
33870         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
33871         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
33872         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
33873         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
33874         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
33875
33876 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
33877
33878         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
33879         * sysdeps/s390/s390-64/configure.ac: ... this ...
33880         * sysdeps/s390/configure.ac: ... to here.
33881         * sysdeps/s390/s390-32/configure: Delete file.
33882         * sysdeps/s390/s390-64/configure: Delete file.
33883         * sysdeps/s390/configure: Regenerate.
33884
33885 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
33886
33887         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
33888
33889 2014-04-11  Will Newton  <will.newton@linaro.org>
33890
33891         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
33892         to zero if it is not defined elsewhere.  (mtrim): Test
33893         the value of MALLOC_DEBUG with #if rather than #ifdef.
33894
33895 2014-04-10 Torvald Riegel  <triegel@redhat.com>
33896
33897         * benchtests/pthread_once-inputs: New file.
33898         * benchtests/pthread_once-source.c: New file.
33899         * benchtests/README: Update documentation.
33900
33901 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
33902             H.J. Lu  <hongjiu.lu@intel.com>
33903
33904         [BZ #16275]
33905         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
33906         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
33907         * sysdeps/x86_64/configure: Regenerated.
33908         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
33909         macro.
33910         (REGISTER_SAVE_RAX): Likewise.
33911         (REGISTER_SAVE_RCX): Likewise.
33912         (REGISTER_SAVE_RDX): Likewise.
33913         (REGISTER_SAVE_RSI): Likewise.
33914         (REGISTER_SAVE_RDI): Likewise.
33915         (REGISTER_SAVE_R8): Likewise.
33916         (REGISTER_SAVE_R9): Likewise.
33917         (REGISTER_SAVE_BND0): Likewise.
33918         (REGISTER_SAVE_BND1): Likewise.
33919         (REGISTER_SAVE_BND2): Likewise.
33920         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
33921         bound registers when calling _dl_fixup.
33922
33923 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33924
33925         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
33926         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
33927         of its definition.
33928         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
33929         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
33930         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
33931         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
33932         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
33933         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
33934         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
33935
33936 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
33937
33938         [BZ #15514]
33939         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
33940         pathconf(_PC_NAME_MAX).
33941
33942 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33943
33944         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
33945         Remove macro usage.
33946         (__PTHREAD_SPINS): Move definition to ...
33947         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
33948         (__PTHREAD_SPINS): ... here.
33949         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33950         (__PTHREAD_SPIN): Likewise.
33951         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
33952         (__PTHREAD_SPIN): Likewise.
33953         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
33954         (__PTHREAD_SPIN): Likewise.
33955         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
33956         (__PTHREAD_SPIN): Likewise.
33957         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
33958         (__PTHREAD_SPIN): Likewise.
33959         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
33960         (__PTHREAD_SPIN): Likewise.
33961         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
33962         (__PTHREAD_SPIN): Likewise.
33963         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
33964         (__PTHREAD_SPIN): Likewise.
33965         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
33966         (__PTHREAD_SPIN): Likewise.
33967         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
33968         (__PTHREAD_SPIN): Likewise.
33969         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
33970         (__PTHREAD_SPIN): Likewise.
33971         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
33972         (__PTHREAD_SPIN): Likewise.
33973
33974         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
33975         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
33976         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
33977         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
33978         imply folder.
33979         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
33980         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
33981         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
33982         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
33983         correct imply path.
33984         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
33985         strlen symbol for non multi-arch builds.
33986         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
33987         missing hidden_def and weak_alias.
33988
33989 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
33990
33991         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
33992
33993 2014-04-07  Will Newton  <will.newton@linaro.org>
33994
33995         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
33996         and contents.  [!_LIBC] Remove #ifndef and contents.
33997         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
33998         * string/memccpy.c (__memccpy): Use ANSI prototype.
33999         * string/memfrob.c (memfrob): Likewise.
34000         * string/strcoll.c (STRCOLL): Likewise.
34001         * string/strlen.c (strlen): Likewise.
34002         * string/strtok.c (STRTOK): Likewise.
34003         * string/strcat.c: Remove unused #include of memcopy.h.
34004         (strcat): Use ANSI prototype.
34005         * string/strchr.c: Remove unused #include of memcopy.h.
34006         (strchr): Use ANSI prototype.
34007         * string/strcmp.c: Remove unused #include of memcopy.h.
34008         (strcmp): Use ANSI prototype.
34009         * string/strcpy.c: Remove unused #include of memcopy.h.
34010         (strcpy): Use ANSI prototype.
34011
34012 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34013
34014         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
34015         * config.make.in (config-extra-cppflags): Set it from
34016         libc_extra_cppflags.
34017         * configure.ac (libc_extra_cflags): Make it accumulate over
34018         configure fragments.
34019         (libc_extra_cppflags): New flag.
34020         * configure. Regenerate.
34021         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
34022         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
34023         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
34024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
34025
34026         [BZ #16815]
34027         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
34028         result for FE_DOWNWARD rounding mode.
34029         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
34030         Likewise.
34031         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34032
34033 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
34034
34035         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
34036         in function argument name.
34037
34038 2014-04-03  David Svoboda  <svoboda@cert.org>
34039
34040         [BZ #5666]
34041         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
34042         explicitly.
34043
34044 2014-04-03  Roland McGrath  <roland@hack.frob.com>
34045
34046         * elf/dl-unmap-segments.h: New file.
34047         * sysdeps/generic/ldsodefs.h
34048         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
34049         * elf/dl-close.c: Include <dl-unmap-segments.h>.
34050         * elf/dl-fptr.c: Likewise.
34051         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
34052         * sysdeps/aarch64/tlsdesc.c: Likewise.
34053         * sysdeps/arm/tlsdesc.c: Likewise.
34054         * sysdeps/i386/tlsdesc.c: Likewise.
34055         * sysdeps/tile/dl-runtime.c: Likewise.
34056         * sysdeps/x86_64/tlsdesc.c: Likewise.
34057         * elf/dl-load.h: New file.
34058         * elf/dl-load.c: Include it.
34059         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
34060         Macros moved to dl-load.h.
34061         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
34062         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
34063         Use _dl_unmap_segments in place of __munmap.
34064         Break out segment-mapping loop into ...
34065         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
34066
34067 2014-04-03  Will Newton  <will.newton@linaro.org>
34068
34069         * elf/dl-lookup.c (do_lookup_x): Remove comment
34070         referring to nested function and move variable
34071         declarations down to before first use.
34072
34073 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
34074
34075         [BZ #16799]
34076         [BZ #16800]
34077         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
34078         with 0 numerator.
34079         * math/s_catanf.c (__catanf): Likewise.
34080         * math/s_catanh.c (__catanh): Likewise.
34081         * math/s_catanhf.c (__catanhf): Likewise.
34082         * math/s_catanhl.c (__catanhl): Likewise.
34083         * math/s_catanl.c (__catanl): Likewise.
34084         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
34085         by positive zero when computing -Inf result.
34086         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
34087         (catanh_test): Likewise.
34088         * sysdeps/i386/fpu/libm-test-ulps: Update.
34089         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34090
34091         [BZ #16789]
34092         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
34093         instead of using underflowing value in computing result.
34094         * math/s_clog10.c (__clog10): Likewise.
34095         * math/s_clog10f.c (__clog10f): Likewise.
34096         * math/s_clog10l.c (__clog10l): Likewise.
34097         * math/s_clogf.c (__clogf): Likewise.
34098         * math/s_clogl.c (__clogl): Likewise.
34099         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
34100         (clog10_test): Likewise.
34101         * sysdeps/i386/fpu/libm-test-ulps: Update.
34102         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34103
34104 2014-04-02  Alan Modra  <amodra@gmail.com>
34105
34106         [BZ #16739]
34107         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
34108         output when value is near a power of two.  Use int64_t for lx and
34109         remove casts.  Use decimal rather than hex exponent constants.
34110         Don't use long double multiplication when double will suffice.
34111         * math/libm-test.inc (nextafter_test_data): Add tests.
34112         * NEWS: Add 16739 and 16786 to bug list.
34113
34114         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
34115
34116         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
34117
34118 2014-04-01  Will Newton  <will.newton@linaro.org>
34119
34120         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
34121         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
34122
34123 2014-04-01  Florian Weimer  <fweimer@redhat.com>
34124
34125         [BZ #13347]
34126         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
34127         * nptl/tst-setuid2.c: New file.
34128         * nptl/Makefile (xtests): Add tst-setuid2.
34129
34130 2014-04-01  Alan Modra  <amodra@gmail.com>
34131
34132         [BZ #16786]
34133         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
34134
34135 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34136
34137         [BZ #6803]
34138         [BZ #6804]
34139         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
34140         set errno as appropriate.
34141         * math/w_scalbf.c (__scalbf): Likewise.
34142         * math/w_scalbl.c (__scalbl): Likewise.
34143         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
34144         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
34145         * math/libm-test.inc (scalb_test_data): Add errno expectations.
34146         Add more NaN tests.
34147
34148         [BZ #16349]
34149         * math/w_atan2.c: Include <errno.h>.
34150         (__atan2): Set errno for result underflowing to zero.
34151         * math/w_atan2f.c: Include <errno.h>.
34152         (__atan2f): Set errno for result underflowing to zero.
34153         * math/w_atan2l.c: Include <errno.h>.
34154         (__atan2l): Set errno for result underflowing to zero.
34155         * math/auto-libm-test-in: Don't allow missing errno for some atan2
34156         tests.
34157         * math/auto-libm-test-out: Regenerated.
34158
34159 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34160
34161         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
34162         Encode instruction correctly in little endian.
34163         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
34164         Likewise.
34165         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
34166         Likewise.
34167         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
34168         Likewise.
34169         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
34170         Likewise.
34171
34172 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34173
34174         [BZ #9894]
34175         * sysdeps/unix/sysv/linux/kernel-features.h
34176         [__sparc__ && !__arch64__ && !__sparc_v9__]
34177         (__ASSUME_SET_ROBUST_LIST): Do not define.
34178         [__sparc__ && !__arch64__ && !__sparc_v9__]
34179         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34180         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
34181         Likewise.
34182         * sysdeps/unix/sysv/linux/arm/kernel-features.h
34183         (__ASSUME_FUTEX_LOCK_PI): Undefine.
34184         (__ASSUME_REQUEUE_PI): Likewise.
34185         (__ASSUME_SET_ROBUST_LIST): Likewise.
34186         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
34187         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
34188         Undefine.
34189         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34190         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
34191         Likewise.
34192         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
34193         Likewise.
34194         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
34195         Likewise.
34196         * sysdeps/unix/sysv/linux/mips/kernel-features.h
34197         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
34198         Undefine.
34199         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
34200         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
34201         Likewise.
34202
34203         [BZ #16648]
34204         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34205         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
34206         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
34207
34208 2014-03-31  Will Newton  <will.newton@linaro.org>
34209
34210         * benchtests/Makefile (bench): Add ffs and ffsll to list
34211         of tests.
34212         * benchtests/ffs-inputs: New file.
34213         * benchtests/ffsll-inputs: Likewise.
34214
34215 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
34216
34217         [BZ #16770]
34218         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
34219         too large before casting to int.
34220         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
34221         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
34222         * math/libm-test.inc (scalb_test_data): Add more tests.
34223
34224 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
34225
34226         * benchtests/Makefile (DETAILED_OPT): New make option.
34227         (bench-func): Run benchmark program with -d if DETAILED_OPT is
34228         set.
34229         * benchtests/bench-skeleton.c: Include stdbool.h.
34230         (main): Store and print timings per input.
34231         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
34232         member to each argument value.
34233         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
34234         (_print_arg_data): Initialize per-input timing to 0.
34235
34236         * benchtests/Makefile (timing-type): New binary.
34237         (bench-clean): Also remove bench-timing-type.
34238         (bench): New target for timing-type.
34239         (bench-func): Print output in JSON format.
34240         * benchtests/bench-skeleton.c (main): Print output in JSON
34241         format.
34242         * benchtests/bench-timing-type.c: New file.
34243         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
34244         (TIMING_PRINT_STATS): Remove.
34245         * benchtests/scripts/bench.py (_print_arg_data): Store variant
34246         name separately.
34247
34248         * benchtests/bench-modf.c: Remove.
34249         * benchtests/modf-inputs: New inputs file.
34250
34251 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
34252
34253         [BZ #16362]
34254         * math/s_clog10.c (M_PI_LOG10E): New macro.
34255         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
34256         imaginary parts are 0.
34257         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
34258         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
34259         imaginary parts are 0.
34260         * math/s_clog10l.c (M_PI_LOG10El): New macro.
34261         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
34262         imaginary parts are 0.
34263         * math/libm-test.inc (clog10_test_data): Update expected results
34264         for when real and imaginary parts are 0.
34265
34266 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
34267
34268         * elf/dl-load.c: Finish conversion of __builtin_expect into
34269         __glibc_{un}likely.
34270
34271 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
34272
34273         [BZ #16348]
34274         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
34275         1+x for argument with exponent below -67.
34276         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
34277         Likewise.
34278         * math/auto-libm-test-in: Add more tests of exp.
34279         * math/auto-libm-test-out: Regenerated.
34280
34281 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34282
34283         [BZ #16759]
34284         * inet/getnetgrent_r.c (get_nonempty_val): New function.
34285         (nscd_getnetgrent): Use it.
34286
34287         [BZ #16760]
34288         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
34289         of stpcpy.
34290
34291 2014-03-27  Andi Kleen  <ak@linux.intel.com>
34292
34293         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
34294         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34295         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34296         (lll_robust_unlock): Remove out of line section. Use cfi
34297         intrinsics.
34298         (LLL_STUB_UNWIND_INFO*): Remove.
34299         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
34300         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34301         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34302         (lll_robust_unlock): Remove out of line section. Use cfi
34303         intrinsics.
34304         (LLL_STUB_UNWIND_INFO*): Remove.
34305
34306 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34307
34308         [BZ #16758]
34309         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
34310         blank values.
34311
34312 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
34313
34314         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
34315
34316 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
34317
34318         [BZ #16198]
34319         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
34320         fnstenv.
34321         * math/test-fenv-preserve.c: New file.
34322         * math/Makefile (tests): Add test-fenv-preserve.
34323
34324 2014-03-26  Will Newton <will.newton@linaro.org>
34325
34326         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
34327
34328 2014-03-25  Roland McGrath  <roland@hack.frob.com>
34329
34330         * scripts/versionlist.awk: Partition the version sets and emit all
34331         GLIBC_* (sorted) before all others (sorted).
34332
34333 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34334
34335         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
34336         GLIBC_2.2.5 version.
34337
34338 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34339
34340         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
34341         calls.
34342
34343         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
34344         previous change.
34345
34346         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34347
34348 2014-03-25  Andreas Schwab  <schwab@suse.de>
34349
34350         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
34351         label to be used after in6ailist is initialized.
34352
34353 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34354
34355         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34356         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34357
34358 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34359
34360         [BZ #16357]
34361         [BZ #16599]
34362         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
34363         min_plus_half.
34364         (fp_formats): Update initializers.
34365         (init_fp_formats): Initialize new field.
34366         (output_for_one_input_case): Allow underflow for results up to
34367         min_plus_half.
34368         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
34369         * math/auto-libm-test-in: Don't mark some underflows from asin and
34370         atanh as spurious.
34371         * math/auto-libm-test-out: Regenerated.
34372         * sysdeps/i386/fpu/libm-test-ulps: Update.
34373         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34374
34375 2014-03-25  Andreas Schwab  <schwab@suse.de>
34376
34377         * libio/Makefile (tst-ftell-partial-wide-ENV)
34378         (tst-ftell-active-handler-ENV): Define.
34379
34380 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
34381
34382         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
34383
34384 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34385
34386         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
34387
34388 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34389
34390         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
34391         * sysdeps/x86_64/fpu/multiarch/e_exp.c
34392         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
34393
34394 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34395
34396         [BZ #16634]
34397         * elf/dl-load.c (open_verify): Add mode parameter.
34398         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
34399         (open_path): Change from boolean 'secure' to complete flag 'mode'
34400         (_dl_map_object): Adjust.
34401         * elf/Makefile (tests): Add tst-dlopen-aout.
34402         * elf/tst-dlopen-aout.c: New test.
34403
34404 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
34405
34406         [BZ #16714]
34407         * sysdeps/unix/sysv/linux/s390/bits/stat.h
34408         (struct stat): Rename member pad0 to __glibc_reserved0.
34409
34410         [BZ #16712]
34411         * sysdeps/s390/s390-32/bits/wordsize.h
34412         (__WORDSIZE32_SIZE_ULONG): New define.
34413         * sysdeps/s390/s390-64/bits/wordsize.h
34414         (__WORDSIZE32_SIZE_ULONG): Likewise.
34415         * sysdeps/generic/stdint.h (SIZE_MAX):
34416         Define as UL if __WORDSIZE32_SIZE_ULONG.
34417
34418         [BZ #16713]
34419         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34420         (__glibc_reserved0): New variable.
34421         (sa_flags): Change type to int.
34422
34423         * posix/Makefile (before-compile): Use += before-compile instead
34424         of a :=.
34425
34426         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34427         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34428
34429 2014-03-20  Andreas Schwab  <schwab@suse.de>
34430
34431         [BZ #16743]
34432         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
34433         non-matching result from nscd.
34434
34435 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
34436
34437         * scripts/bench.py: Moved to ...
34438         * benchtests/scripts/bench.py: ... here.
34439         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
34440
34441 2014-03-24  Andreas Schwab  <schwab@suse.de>
34442
34443         [BZ #16002]
34444         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
34445         alloca_account and account alloca use for struct in6ailist.
34446
34447 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34448
34449         [BZ #16284]
34450         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
34451         rounding mode to recompute results that overflow to infinity or
34452         underflow to zero.
34453         * math/auto-libm-test-in: Don't mark tests as expected to fail for
34454         bug 16284.
34455         * math/auto-libm-test-out: Regenerated.
34456         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
34457         (ccosh_test): Likewise.
34458         (csin_test_data): Use plus_oflow.
34459         (csin_test): Use ALL_RM_TEST.
34460         (csinh_test_data): Use plus_oflow.
34461         (csinh_test): Use ALL_RM_TEST.
34462         * sysdeps/i386/fpu/libm-test-ulps: Update.
34463         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34464
34465 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
34466
34467         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
34468         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
34469         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
34470
34471         [BZ #16731]
34472         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
34473         when x - 1 is zero.
34474         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
34475         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
34476         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
34477         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
34478         argument is 1.
34479         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
34480         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
34481         zero.
34482         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
34483         * sysdeps/i386/fpu/libm-test-ulps: Update.
34484         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34485
34486 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
34487
34488         * scripts/bench.pl: Remove file.
34489         * scripts/bench.py: New benchmark script.
34490         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
34491         * benchtests/README: Mention python dependency.
34492         * scripts/pylintrc: New file.
34493         * scripts/pylint: New file.
34494
34495         * bits/mathdef.h: Use #ifdef instead of #if.
34496         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
34497         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34498         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
34499         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34500         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
34501         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34502
34503 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34504             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34505
34506         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
34507         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
34508         and strpbrk-ppc64 objects.
34509         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34510         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
34511         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
34512         multiarch strpbrk for POWER7.
34513         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
34514         multiarch strpbrk for PPC64.
34515         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
34516         ifunc selector.
34517         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
34518         strpbrk for POWER7.
34519
34520 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34521
34522         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
34523         (atan_test): Likewise.
34524         (atanh_test_data): Use NO_TEST_INLINE for two tests.
34525         (atanh_test): Use ALL_RM_TEST.
34526         (atan2_test_data): Likewise.
34527         (cabs_test): Likewise.
34528         (cacosh_test): Likewise.
34529         (carg_test): Likewise.
34530         (casin_test): Likewise.
34531         (casinh_test): Likewise.
34532         (cbrt_test): Likewise.
34533         (csqrt_test): Likewise.
34534         (erf_test): Likewise.
34535         (erfc_test): Likewise.
34536         (pow10_test): Likewise.
34537         (exp2_test): Likewise.
34538         (hypot_test): Likewise.
34539         (j0_test): Likewise.
34540         (j1_test): Likewise.
34541         (lgamma_test): Likewise.
34542         (gamma_test): Likewise.
34543         (sincos_test): Likewise.
34544         (tanh_test): Likewise.
34545         (y0_test): Likewise.
34546         (y1_test): Likewise.
34547         * sysdeps/i386/fpu/libm-test-ulps: Update.
34548         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34549
34550 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34551
34552         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
34553         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
34554         and strcspn-ppc64 objects.
34555         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34556         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
34557         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
34558         multiarch strcspn for POWER7.
34559         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
34560         multiarch strcspn for PPC64.
34561         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
34562         ifunc selector.
34563         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
34564         strcspn for POWER7.
34565
34566 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34567
34568         * math/gen-libm-test.pl (generate_testfile): Expect only function
34569         name as argument to AUTO_TESTS_* and pass results for all rounding
34570         modes to parse_args.
34571         (parse_auto_input): Separate inputs of automatic tests from
34572         outputs before storing in %auto_tests.
34573         * math/libm-test.inc (acos_test_data): Update call to
34574         AUTO_TESTS_f_f.
34575         (acos_test): Use ALL_RM_TEST.
34576         (acos_tonearest_test_data): Remove.
34577         (acos_test_tonearest): Likewise.
34578         (acos_towardzero_test_data): Likewise.
34579         (acos_test_towardzero): Likewise.
34580         (acos_downward_test_data): Likewise.
34581         (acos_test_downward): Likewise.
34582         (acos_upward_test_data): Likewise.
34583         (acos_test_upward): Likewise.
34584         (acosh_test_data): Update call to AUTO_TESTS_f_f.
34585         (asin_test_data): Likewise.
34586         (asin_test): Use ALL_RM_TEST.
34587         (asin_tonearest_test_data): Remove.
34588         (asin_test_tonearest): Likewise.
34589         (asin_towardzero_test_data): Likewise.
34590         (asin_test_towardzero): Likewise.
34591         (asin_downward_test_data): Likewise.
34592         (asin_test_downward): Likewise.
34593         (asin_upward_test_data): Likewise.
34594         (asin_test_upward): Likewise.
34595         (asinh_test_data): Update call to AUTO_TESTS_f_f.
34596         (atan_test_data): Likewise.
34597         (atanh_test_data): Likewise.
34598         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
34599         (cabs_test_data): Update call to AUTO_TESTS_c_f.
34600         (carg_test_data): Likewise.
34601         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
34602         (ccos_test_data): Update call to AUTO_TESTS_c_c.
34603         (ccosh_test_data): Likewise.
34604         (cexp_test_data): Likewise.
34605         (clog_test_data): Likewise.
34606         (clog10_test_data): Likewise.
34607         (cos_test_data): Update call to AUTO_TESTS_f_f.
34608         (cos_test): Use ALL_RM_TEST.
34609         (cos_tonearest_test_data): Remove.
34610         (cos_test_tonearest): Likewise.
34611         (cos_towardzero_test_data): Likewise.
34612         (cos_test_towardzero): Likewise.
34613         (cos_downward_test_data): Likewise.
34614         (cos_test_downward): Likewise.
34615         (cos_upward_test_data): Likewise.
34616         (cos_test_upward): Likewise.
34617         (cosh_test_data): Update call to AUTO_TESTS_f_f.
34618         (cosh_test): Use ALL_RM_TEST.
34619         (cosh_tonearest_test_data): Remove.
34620         (cosh_test_tonearest): Likewise.
34621         (cosh_towardzero_test_data): Likewise.
34622         (cosh_test_towardzero): Likewise.
34623         (cosh_downward_test_data): Likewise.
34624         (cosh_test_downward): Likewise.
34625         (cosh_upward_test_data): Likewise.
34626         (cosh_test_upward): Likewise.
34627         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
34628         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
34629         (ctan_test_data): Likewise.
34630         (ctan_test): Use ALL_RM_TEST.
34631         (ctan_tonearest_test_data): Remove.
34632         (ctan_test_tonearest): Likewise.
34633         (ctan_towardzero_test_data): Likewise.
34634         (ctan_test_towardzero): Likewise.
34635         (ctan_downward_test_data): Likewise.
34636         (ctan_test_downward): Likewise.
34637         (ctan_upward_test_data): Likewise.
34638         (ctan_test_upward): Likewise.
34639         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
34640         (ctanh_test): Use ALL_RM_TEST.
34641         (ctanh_tonearest_test_data): Remove.
34642         (ctanh_test_tonearest): Likewise.
34643         (ctanh_towardzero_test_data): Likewise.
34644         (ctanh_test_towardzero): Likewise.
34645         (ctanh_downward_test_data): Likewise.
34646         (ctanh_test_downward): Likewise.
34647         (ctanh_upward_test_data): Likewise.
34648         (ctanh_test_upward): Likewise.
34649         (erf_test_data): Update call to AUTO_TESTS_f_f.
34650         (erfc_test_data): Likewise.
34651         (exp_test_data): Likewise.
34652         (exp_test): Use ALL_RM_TEST.
34653         (exp_tonearest_test_data): Remove.
34654         (exp_test_tonearest): Likewise.
34655         (exp_towardzero_test_data): Likewise.
34656         (exp_test_towardzero): Likewise.
34657         (exp_downward_test_data): Likewise.
34658         (exp_test_downward): Likewise.
34659         (exp_upward_test_data): Likewise.
34660         (exp_test_upward): Likewise.
34661         (exp10_test_data): Update call to AUTO_TESTS_f_f.
34662         (exp10_test): Use ALL_RM_TEST.
34663         (exp10_tonearest_test_data): Remove.
34664         (exp10_test_tonearest): Likewise.
34665         (exp10_towardzero_test_data): Likewise.
34666         (exp10_test_towardzero): Likewise.
34667         (exp10_downward_test_data): Likewise.
34668         (exp10_test_downward): Likewise.
34669         (exp10_upward_test_data): Likewise.
34670         (exp10_test_upward): Likewise.
34671         (exp2_test_data): Update call to AUTO_TESTS_f_f.
34672         (expm1_test_data): Likewise.
34673         (expm1_test): Use ALL_RM_TEST.
34674         (expm1_tonearest_test_data): Remove.
34675         (expm1_test_tonearest): Likewise.
34676         (expm1_towardzero_test_data): Likewise.
34677         (expm1_test_towardzero): Likewise.
34678         (expm1_downward_test_data): Likewise.
34679         (expm1_test_downward): Likewise.
34680         (expm1_upward_test_data): Likewise.
34681         (expm1_test_upward): Likewise.
34682         (fma_test_data): Update call to AUTO_TESTS_fff_f.
34683         (fma_test): Use ALL_RM_TEST.
34684         (fma_towardzero_test_data): Remove.
34685         (fma_test_towardzero): Likewise.
34686         (fma_downward_test_data): Likewise.
34687         (fma_test_downward): Likewise.
34688         (fma_upward_test_data): Likewise.
34689         (fma_test_upward): Likewise.
34690         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
34691         (j0_test_data): Update call to AUTO_TESTS_f_f.
34692         (j1_test_data): Likewise.
34693         (jn_test_data): Update call to AUTO_TESTS_if_f.
34694         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
34695         (log_test_data): Update call to AUTO_TESTS_f_f.
34696         (log10_test_data): Likewise.
34697         (log1p_test_data): Likewise.
34698         (log2_test_data): Likewise.
34699         (pow_test_data): Update call to AUTO_TESTS_ff_f.
34700         (pow_tonearest_test_data): Likewise.
34701         (sin_test_data): Update call to AUTO_TESTS_f_f.
34702         (sin_test): Use ALL_RM_TEST.
34703         (sin_tonearest_test_data): Remove.
34704         (sin_test_tonearest): Likewise.
34705         (sin_towardzero_test_data): Likewise.
34706         (sin_test_towardzero): Likewise.
34707         (sin_downward_test_data): Likewise.
34708         (sin_test_downward): Likewise.
34709         (sin_upward_test_data): Likewise.
34710         (sin_test_upward): Likewise.
34711         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
34712         (sinh_test_data): Update call to AUTO_TESTS_f_f.
34713         (sinh_test): Use ALL_RM_TEST.
34714         (sinh_tonearest_test_data): Remove.
34715         (sinh_test_tonearest): Likewise.
34716         (sinh_towardzero_test_data): Likewise.
34717         (sinh_test_towardzero): Likewise.
34718         (sinh_downward_test_data): Likewise.
34719         (sinh_test_downward): Likewise.
34720         (sinh_upward_test_data): Likewise.
34721         (sinh_test_upward): Likewise.
34722         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
34723         (sqrt_test): Use ALL_RM_TEST.
34724         (sqrt_tonearest_test_data): Remove.
34725         (sqrt_test_tonearest): Likewise.
34726         (sqrt_towardzero_test_data): Likewise.
34727         (sqrt_test_towardzero): Likewise.
34728         (sqrt_downward_test_data): Likewise.
34729         (sqrt_test_downward): Likewise.
34730         (sqrt_upward_test_data): Likewise.
34731         (sqrt_test_upward): Likewise.
34732         (tan_test_data): Update call to AUTO_TESTS_f_f.
34733         (tan_test): Use ALL_RM_TEST.
34734         (tan_tonearest_test_data): Remove.
34735         (tan_test_tonearest): Likewise.
34736         (tan_towardzero_test_data): Likewise.
34737         (tan_test_towardzero): Likewise.
34738         (tan_downward_test_data): Likewise.
34739         (tan_test_downward): Likewise.
34740         (tan_upward_test_data): Likewise.
34741         (tan_test_upward): Likewise.
34742         (tanh_test_data): Update call to AUTO_TESTS_f_f.
34743         (tgamma_test_data): Likewise.
34744         (y0_test_data): Likewise.
34745         (y1_test_data): Likewise.
34746         (yn_test_data): Update call to AUTO_TESTS_if_f.
34747         (main): Do not call removed functions.
34748
34749 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34750
34751         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
34752         (ldexp_test_data): Remove.
34753         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
34754         scalbn_test_data.
34755         (scalb_test): Use ALL_RM_TEST.
34756
34757 2014-03-19  Andreas Schwab  <schwab@suse.de>
34758
34759         * nscd/nscd.service: Also invalidate netgroup cache on reload.
34760
34761 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34762
34763         [BZ #16649]
34764         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
34765         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
34766         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
34767         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34768         (__ASSUME_PREADV): Undefine.
34769         (__ASSUME_PWRITEV): Likewise.
34770
34771 2014-03-18  Roland McGrath  <roland@hack.frob.com>
34772
34773         * bits/mman-linux.h: Add comment about non-Linux use.
34774         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
34775         bits/mman-linux.h resting place.
34776
34777         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
34778         * bits/mman-linux.h: ... here.
34779
34780 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34781
34782         * conform/conformtest.pl: Add standard definition when calling C
34783         preprocessor on data files.
34784         (checknamespace): Remove unused variable.
34785
34786 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
34787
34788         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
34789         minus_oflow, plus_uflow and minus_uflow in expected results.
34790         * math/libm-test.inc (scalbn_test_data): Add more tests of
34791         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
34792         minus_uflow.
34793         (scalbn_test): Use ALL_RM_TEST.
34794         (scalbln_test_data): Add more tests of negative arguments.  Use
34795         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
34796         (scalbln_test): Use ALL_RM_TEST.
34797
34798 2014-03-18  Roland McGrath  <roland@hack.frob.com>
34799
34800         * scripts/abilist.awk: Ignore symbols marked with .hidden.
34801
34802 2014-03-18  Will Newton  <will.newton@linaro.org>
34803
34804         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
34805         inaccurate comment.
34806
34807 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
34808
34809         * Makerules [!subdir] (check-abi): Exit with error status if a
34810         test failed.
34811
34812 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
34813
34814         * math/libm-test.inc (nearbyint_test_data): Include all tests used
34815         for rint.  Include results for all rounding modes.
34816         (nearbyint_test): Use ALL_RM_TEST.
34817         (rint_test_data): Include all tests used for nearbyint.
34818
34819 2014-03-17  Will Newton  <will.newton@linaro.org>
34820
34821         * nptl/sysdeps/pthread/pthread.h: Revert previous
34822         change.
34823
34824         * sysdeps/generic/ldsodefs.h: Revert previous
34825         change.
34826
34827         * libio/genops.c: Revert previous change.
34828         * libio/libioP.h: Likewise.
34829         * stdio-common/vfprintf.c: Likewise.
34830
34831         * sysdeps/generic/math_private.h: Revert previous
34832         change.
34833
34834         * sysdeps/generic/math_private.h: Check whether
34835         HAVE_RM_CTX is defined with #ifdef rather
34836         than #if.
34837
34838         * argp/argp-fmtstream.h: Check whether
34839         __STRICT_ANSI__ is defined with #ifdef rather
34840         than #if.
34841         * argp/argp.h: Likewise.
34842
34843         * libio/genops.c: Check whether
34844         _IO_JUMPS_OFFSET is defined with #ifdef rather
34845         than #if.
34846         * libio/libioP.h: Likewise.
34847         * stdio-common/vfprintf.c: Likewise.
34848
34849         * sysdeps/generic/ldsodefs.h: Check whether
34850         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
34851         than #if.
34852
34853         * nptl/sysdeps/pthread/pthread.h: Check
34854         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
34855         its value.
34856
34857 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
34858
34859         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
34860         setting O_APPEND.
34861         * libio/tst-ftell-active-handler.c (do_append_test): Add a
34862         test case.
34863
34864         [BZ #16680]
34865         * libio/fileops.c (_IO_file_open): Seek to end of file but
34866         don't cache the offset.
34867         (get_file_offset): Remove function.
34868         (do_ftell): Use cached offset when available.
34869         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
34870         don't cache the offset.
34871         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
34872         case.
34873         (do_one_test): Call it.
34874         (do_ftell_test): Fix up expected old offset for a+ mode.
34875         * libio/wfileops.c (do_ftell_wide): Used cached offset when
34876         available.
34877
34878         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
34879         up test status with function return status.
34880         (do_write_test): Likewise.
34881         (do_append_test): Likewise.
34882
34883         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
34884         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
34885         Remove.
34886
34887 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
34888
34889         * math/gen-libm-test.pl (parse_args): Handle results specified for
34890         each rounding mode separately.
34891         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
34892         tests and results from lrint_tonearest_test_data,
34893         lrint_towardzero_test_data, lrint_downward_test_data and
34894         lrint_upward_test_data.
34895         (lrint_test): Use ALL_RM_TEST.
34896         (lrint_tonearest_test_data): Remove.
34897         (lrint_test_tonearest): Likewise.
34898         (lrint_towardzero_test_data): Likewise.
34899         (lrint_test_towardzero): Likewise.
34900         (lrint_downward_test_data): Likewise.
34901         (lrint_test_downward): Likewise.
34902         (lrint_upward_test_data): Likewise.
34903         (lrint_test_upward): Likewise.
34904         (llrint_test_data): Merge in per-rounding-mode tests and results
34905         from llrint_tonearest_test_data, llrint_towardzero_test_data,
34906         llrint_downward_test_data and llrint_upward_test_data.
34907         (llrint_test): Use ALL_RM_TEST.
34908         (llrint_tonearest_test_data): Remove.
34909         (llrint_test_tonearest): Likewise.
34910         (llrint_towardzero_test_data): Likewise.
34911         (llrint_test_towardzero): Likewise.
34912         (llrint_downward_test_data): Likewise.
34913         (llrint_test_downward): Likewise.
34914         (llrint_upward_test_data): Likewise.
34915         (llrint_test_upward): Likewise.
34916         (rint_test_data): Merge in per-rounding-mode tests and results
34917         from rint_tonearest_test_data, rint_towardzero_test_data,
34918         rint_downward_test_data and rint_upward_test_data.  Add
34919         per-rounding-mode results for tests not in those arrays.
34920         (rint_test): Use ALL_RM_TEST.
34921         (rint_tonearest_test_data): Remove.
34922         (rint_test_tonearest): Likewise.
34923         (rint_towardzero_test_data): Likewise.
34924         (rint_test_towardzero): Likewise.
34925         (rint_downward_test_data): Likewise.
34926         (rint_test_downward): Likewise.
34927         (rint_upward_test_data): Likewise.
34928         (rint_test_upward): Likewise.
34929         (main): Don't call removed functions.
34930
34931 2014-03-14  Roland McGrath  <roland@hack.frob.com>
34932
34933         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
34934         "Compiled on ..." crapola.  It is anti-useful.
34935
34936 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
34937
34938         * scripts/evaluate-test.sh: Handle fourth argument to determine
34939         whether test run should stop on failure.
34940         * Makeconfig (stop-on-test-failure): New variable.
34941         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
34942         $(stop-on-test-failure).
34943         * Makefile (tests): Give a summary of results from testing and
34944         exit with failure status if they include an ERROR or FAIL.
34945         (xtests): Likewise.
34946         * manual/install.texi (Configuring and compiling): Mention
34947         stop-on-test-failure=y.
34948         * INSTALL: Regenerated.
34949
34950 2014-03-14  Roland McGrath  <roland@hack.frob.com>
34951
34952         * scripts/versionlist.awk: New file.
34953         * Makerules [$(build-shared) = yes]
34954         (postclean-generated): Add Versions.def, not Versions.def.v and
34955         Versions.def.v.i.
34956         ($(common-objpfx)Versions.def.v.i): Target removed.
34957         ($(common-objpfx)Versions.def): New target.
34958         ($(common-objpfx)Versions.all): Depend on that rather that
34959         $(common-objpfx)Versions.def.v.
34960         * Versions.def: File removed.
34961
34962         * Makeconfig (+gccwarn): Add -Wundef.
34963         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
34964         a dl-sysdep.h breaking its contract.
34965         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
34966         * include/stackinfo.h: New file.
34967         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
34968         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
34969         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
34970         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
34971         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
34972         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
34973         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34974         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34975         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34976         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34977         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34978         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
34979         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34980         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34981         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34982
34983 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34984
34985         [BZ #16707]
34986         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
34987         implementation.
34988         * math/libm-test.inc (round_test_data): Add more tests.
34989
34990         [BZ #16706]
34991         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
34992         implementation.
34993         * math/libm-test.inc (nearbyint_test_data): Add more tests.
34994
34995         [BZ #16701]
34996         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
34997         implementation.
34998         * math/libm-test.inc (ceil_test_data): Add more tests.
34999
35000         * math/libm-test.inc (trunc_test_data): Add more tests related to
35001         BZ#16414.
35002
35003 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35004
35005         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
35006         with #if rather than #ifdef.
35007         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
35008
35009 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
35010
35011         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
35012         first.  Disable AVX-512 GCC support if assembler doesn't support
35013         it.
35014         * sysdeps/x86_64/configure: Regenerated.
35015
35016 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
35017
35018         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
35019         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
35020         (__old_pthread_attr_setstack): Likewise.
35021         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
35022         [!_STACK_GROWS_DOWN]: Likewise.
35023
35024 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
35025
35026         * config.make.in (have-bash2): Delete.
35027         * configure.ac (libc_cv_have_bash2): Delete.
35028         * configure: Regenerate.
35029         * elf/Makefile (common-ldd-rewrite): Rename to ...
35030         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
35031         (sh-ldd-rewrite): Delete.
35032         (bash-ldd-rewrite): Delete.
35033         (have-bash2): Delete checks.
35034         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
35035         ldd-rewrite.
35036
35037         * config.make.in (have-ksh): Delete.
35038         (KSH): Delete.
35039         * configure.ac (libc_cv_have_ksh): Delete.
35040         * configure: Regenerate.
35041
35042         * elf/Makefile: Delete $(have-ksh) check.
35043         ($(objpfx)sotruss): Change KSH to BASH.
35044         * elf/sotruss.ksh: Rename to ...
35045         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
35046         function style to match POSIX.  Drop ksh vim mode setting.
35047
35048         * manual/time.texi (Specifying the Time Zone with TZ): Change
35049         Tuesday to Thursday.
35050
35051         * debug/tst-longjmp_chk2.c: Update header comment.
35052         (stackoverflow_handler): Add comment.  Call assert on pass value.
35053
35054 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
35055
35056         [BZ #16194]
35057         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
35058         (HAVE_AVX512_ASM_SUPPORT): Likewise.
35059         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
35060         (La_x86_64_vector): Add zmm.
35061         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
35062         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
35063         ($(objpfx)tst-audit10): New target.
35064         ($(objpfx)tst-audit10.out): Likewise.
35065         (tst-audit10-ENV): New.
35066         (AVX512-CFLAGS): Likewise.
35067         (CFLAGS-tst-audit10.c): Likewise.
35068         (CFLAGS-tst-auditmod10a.c): Likewise.
35069         (CFLAGS-tst-auditmod10b.c): Likewise.
35070         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
35071         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
35072         * sysdeps/x86_64/configure: Regenerated.
35073         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
35074         AVX-512 zmm register support.
35075         (_dl_x86_64_save_sse): Likewise.
35076         (_dl_x86_64_restore_sse): Likewise.
35077         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
35078         size vector registers.
35079         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
35080         (ZMM_SIZE): Likewise.
35081         * sysdeps/x86_64/tst-audit10.c: New file.
35082         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
35083         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
35084
35085 2014-03-13  Roland McGrath  <roland@hack.frob.com>
35086
35087         * configure.ac (HAVE_EHDR_START): New check.
35088         * configure: Regenerated.
35089         * config.h.in (HAVE_EHDR_START): New #undef.
35090         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
35091         assuming the lowest-addressed segment maps the start of the file.
35092
35093 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
35094
35095         * INSTALL: Regenerated.
35096
35097 2014-03-13  Will Newton  <will.newton@linaro.org>
35098
35099         * manual/setjmp.texi (System V contexts): Improve
35100         clarity and grammar of documentation.
35101
35102 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
35103
35104         [BZ #16381]
35105         * elf/Makefile (tests): Add tst-pie2.
35106         (tests-pie): Add tst-pie2.
35107         * elf/tst-pie2.c: New file.
35108         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
35109         for ET_EXEC.
35110         * elf/rtld.c (map_doit): Load executable as lt_executable.
35111         (dl_main): Likewise.
35112
35113 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
35114
35115         [BZ #16642]
35116         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35117         (__ASSUME_PSELECT): Undefine.
35118
35119 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35120
35121         [BZ #16689]
35122         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
35123         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
35124         static build.
35125         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
35126         selector for static builds.
35127
35128 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
35129
35130         [BZ #16695]
35131         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
35132         key in the buffer.
35133
35134 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35135
35136         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
35137         IFUNC selector for static builds.
35138
35139 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
35140
35141         * sysdeps/mips/math_private.h [__mips_hard_float]
35142         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
35143         libc_feresetround_mips_ctx.
35144         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
35145         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
35146         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
35147
35148         [BZ #16677]
35149         * math/s_nextafter.c (__nextafter): Do not return value from
35150         overflowing computation.
35151         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35152         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
35153         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35154         Likewise.
35155         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
35156         Likewise.
35157         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35158         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
35159
35160 2014-03-11  Roland McGrath  <roland@hack.frob.com>
35161
35162         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
35163         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
35164         Move sfi_sp use from the load-multiple (that no longer sets sp) to
35165         the new mov targetting sp.
35166
35167 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35168
35169         [BZ #16683]
35170         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
35171         Define it for static builds as well.
35172         (NO_BZERO_IMPL): Likewise.
35173
35174 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35175
35176         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
35177         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
35178         multiarch strspn for PPC64.
35179         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
35180         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
35181         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35182         (__libc_ifunc_impl_list): Likewise.
35183         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
35184         multiarch optimizations
35185         * string/strspn.c (strspn): Using macro to redefine symbol name.
35186
35187 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35188             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35189
35190         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
35191         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
35192         multiarch strncat for PPC64.
35193         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
35194         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
35195         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35196         (__libc_ifunc_impl_list): Likewise.
35197         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
35198         multiarch optimizations
35199
35200 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35201
35202         [BZ #16639]
35203         * nscd/nscd.service: Make service type forking.
35204
35205 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35206
35207         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
35208         sign in non default rounding modes.
35209         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
35210
35211 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
35212
35213         * math/libm-test.inc (ALL_RM_TEST): New macro.
35214         (ceil_test): Use ALL_RM_TEST.
35215         (cimag_test): Likewise.
35216         (conj_test): Likewise.
35217         (copysign_test): Likewise.
35218         (cproj_test): Likewise.
35219         (creal_test): Likewise.
35220         (fabs_test): Likewise.
35221         (floor_test): Likewise.
35222         (fmax_test): Likewise.
35223         (fmin_test): Likewise.
35224         (fmod_test): Likewise.
35225         (fpclassify_test): Likewise.
35226         (frexp_test): Likewise.
35227         (ilogb_test): Likewise.
35228         (isfinite_test): Likewise.
35229         (finite_test): Likewise.
35230         (isgreater_test): Likewise.
35231         (isgreaterequal_test): Likewise.
35232         (isinf_test): Likewise.
35233         (isless_test): Likewise.
35234         (islessequal_test): Likewise.
35235         (islessgreater_test): Likewise.
35236         (isnan_test): Likewise.
35237         (isnormal_test): Likewise.
35238         (issignaling_test): Likewise.
35239         (isunordered_test): Likewise.
35240         (logb_test): Likewise.
35241         (logb_downward_test_data): Remove.
35242         (logb_test_downward): Likewise.
35243         (lround_test): Use ALL_RM_TEST.
35244         (llround_test): Likewise.
35245         (modf_test): Likewise.
35246         (nexttoward_test): Likewise.
35247         (remainder_test): Likewise.
35248         (drem_test): Likewise.
35249         (remainder_tonearest_test_data): Likewise.
35250         (remainder_test_tonearest): Likewise.
35251         (drem_test_tonearest): Likewise.
35252         (remainder_towardzero_test_data): Likewise.
35253         (remainder_test_towardzero): Likewise.
35254         (drem_test_towardzero): Likewise.
35255         (remainder_downward_test_data): Likewise.
35256         (remainder_test_downward): Likewise.
35257         (drem_test_downward): Likewise.
35258         (remainder_upward_test_data): Likewise.
35259         (remainder_test_upward): Likewise.
35260         (drem_test_upward): Likewise.
35261         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
35262         (round_test): Use ALL_RM_TEST.
35263         (signbit_test): Likewise.
35264         (trunc_test): Likewise.
35265         (significand_test): Likewise.
35266         (main): Don't call removed functions.
35267
35268 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35269
35270         [BZ #16674]
35271         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
35272         || __USE_XOPEN2K8].
35273         (ILL_ILLOPN): Likewise.
35274         (ILL_ILLADR): Likewise.
35275         (ILL_ILLTRP): Likewise.
35276         (ILL_PRVOPC): Likewise.
35277         (ILL_PRVREG): Likewise.
35278         (ILL_COPROC): Likewise.
35279         (ILL_BADSTK): Likewise.
35280         (FPE_INTDIV): Likewise.
35281         (FPE_INTOVF): Likewise.
35282         (FPE_FLTDIV): Likewise.
35283         (FPE_FLTOVF): Likewise.
35284         (FPE_FLTUND): Likewise.
35285         (FPE_FLTRES): Likewise.
35286         (FPE_FLTINV): Likewise.
35287         (FPE_FLTSUB): Likewise.
35288         (SEGV_MAPERR): Likewise.
35289         (SEGV_ACCERR): Likewise.
35290         (BUS_ADRALN): Likewise.
35291         (BUS_ADRERR): Likewise.
35292         (BUS_OBJERR): Likewise.
35293         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35294         (TRAP_TRACE): Likewise.
35295         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35296         __USE_XOPEN2K8].
35297         (CLD_KILLED): Likewise.
35298         (CLD_DUMPED): Likewise.
35299         (CLD_TRAPPED): Likewise.
35300         (CLD_STOPPED): Likewise.
35301         (CLD_CONTINUED): Likewise.
35302         (POLL_IN): Likewise.
35303         (POLL_OUT): Likewise.
35304         (POLL_MSG): Likewise.
35305         (POLL_ERR): Likewise.
35306         (POLL_PRI): Likewise.
35307         (POLL_HUP): Likewise.
35308         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
35309         Likewise.
35310         (ILL_ILLOPN): Likewise.
35311         (ILL_ILLADR): Likewise.
35312         (ILL_ILLTRP): Likewise.
35313         (ILL_PRVOPC): Likewise.
35314         (ILL_PRVREG): Likewise.
35315         (ILL_COPROC): Likewise.
35316         (ILL_BADSTK): Likewise.
35317         (FPE_INTDIV): Likewise.
35318         (FPE_INTOVF): Likewise.
35319         (FPE_FLTDIV): Likewise.
35320         (FPE_FLTOVF): Likewise.
35321         (FPE_FLTUND): Likewise.
35322         (FPE_FLTRES): Likewise.
35323         (FPE_FLTINV): Likewise.
35324         (FPE_FLTSUB): Likewise.
35325         (SEGV_MAPERR): Likewise.
35326         (SEGV_ACCERR): Likewise.
35327         (BUS_ADRALN): Likewise.
35328         (BUS_ADRERR): Likewise.
35329         (BUS_OBJERR): Likewise.
35330         (BUS_MCEERR_AR): Likewise.
35331         (BUS_MCEERR_AO): Likewise.
35332         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35333         (TRAP_TRACE): Likewise.
35334         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35335         __USE_XOPEN2K8].
35336         (CLD_KILLED): Likewise.
35337         (CLD_DUMPED): Likewise.
35338         (CLD_TRAPPED): Likewise.
35339         (CLD_STOPPED): Likewise.
35340         (CLD_CONTINUED): Likewise.
35341         (POLL_IN): Likewise.
35342         (POLL_OUT): Likewise.
35343         (POLL_MSG): Likewise.
35344         (POLL_ERR): Likewise.
35345         (POLL_PRI): Likewise.
35346         (POLL_HUP): Likewise.
35347         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
35348         (ILL_ILLOPN): Likewise.
35349         (ILL_ILLADR): Likewise.
35350         (ILL_ILLTRP): Likewise.
35351         (ILL_PRVOPC): Likewise.
35352         (ILL_PRVREG): Likewise.
35353         (ILL_COPROC): Likewise.
35354         (ILL_BADSTK): Likewise.
35355         (FPE_INTDIV): Likewise.
35356         (FPE_INTOVF): Likewise.
35357         (FPE_FLTDIV): Likewise.
35358         (FPE_FLTOVF): Likewise.
35359         (FPE_FLTUND): Likewise.
35360         (FPE_FLTRES): Likewise.
35361         (FPE_FLTINV): Likewise.
35362         (FPE_FLTSUB): Likewise.
35363         (SEGV_MAPERR): Likewise.
35364         (SEGV_ACCERR): Likewise.
35365         (BUS_ADRALN): Likewise.
35366         (BUS_ADRERR): Likewise.
35367         (BUS_OBJERR): Likewise.
35368         (BUS_MCEERR_AR): Likewise.
35369         (BUS_MCEERR_AO): Likewise.
35370         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35371         (TRAP_TRACE): Likewise.
35372         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35373         __USE_XOPEN2K8].
35374         (CLD_KILLED): Likewise.
35375         (CLD_DUMPED): Likewise.
35376         (CLD_TRAPPED): Likewise.
35377         (CLD_STOPPED): Likewise.
35378         (CLD_CONTINUED): Likewise.
35379         (POLL_IN): Likewise.
35380         (POLL_OUT): Likewise.
35381         (POLL_MSG): Likewise.
35382         (POLL_ERR): Likewise.
35383         (POLL_PRI): Likewise.
35384         (POLL_HUP): Likewise.
35385         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
35386         Likewise.
35387         (ILL_ILLOPN): Likewise.
35388         (ILL_ILLADR): Likewise.
35389         (ILL_ILLTRP): Likewise.
35390         (ILL_PRVOPC): Likewise.
35391         (ILL_PRVREG): Likewise.
35392         (ILL_COPROC): Likewise.
35393         (ILL_BADSTK): Likewise.
35394         (ILL_BADIADDR): Likewise.
35395         (ILL_BREAK): Likewise.
35396         (FPE_INTDIV): Likewise.
35397         (FPE_INTOVF): Likewise.
35398         (FPE_FLTDIV): Likewise.
35399         (FPE_FLTOVF): Likewise.
35400         (FPE_FLTUND): Likewise.
35401         (FPE_FLTRES): Likewise.
35402         (FPE_FLTINV): Likewise.
35403         (FPE_FLTSUB): Likewise.
35404         (FPE_DECOVF): Likewise.
35405         (FPE_DECDIV): Likewise.
35406         (FPE_DECERR): Likewise.
35407         (FPE_INVASC): Likewise.
35408         (FPE_INVDEC): Likewise.
35409         (SEGV_MAPERR): Likewise.
35410         (SEGV_ACCERR): Likewise.
35411         (SEGV_PSTKOVF): Likewise.
35412         (BUS_ADRALN): Likewise.
35413         (BUS_ADRERR): Likewise.
35414         (BUS_OBJERR): Likewise.
35415         (BUS_MCEERR_AR): Likewise.
35416         (BUS_MCEERR_AO): Likewise.
35417         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35418         (TRAP_TRACE): Likewise.
35419         (TRAP_BRANCH): Likewise.
35420         (TRAP_HWBKPT): Likewise.
35421         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35422         __USE_XOPEN2K8].
35423         (CLD_KILLED): Likewise.
35424         (CLD_DUMPED): Likewise.
35425         (CLD_TRAPPED): Likewise.
35426         (CLD_STOPPED): Likewise.
35427         (CLD_CONTINUED): Likewise.
35428         (POLL_IN): Likewise.
35429         (POLL_OUT): Likewise.
35430         (POLL_MSG): Likewise.
35431         (POLL_ERR): Likewise.
35432         (POLL_PRI): Likewise.
35433         (POLL_HUP): Likewise.
35434         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
35435         (ILL_ILLOPN): Likewise.
35436         (ILL_ILLADR): Likewise.
35437         (ILL_ILLTRP): Likewise.
35438         (ILL_PRVOPC): Likewise.
35439         (ILL_PRVREG): Likewise.
35440         (ILL_COPROC): Likewise.
35441         (ILL_BADSTK): Likewise.
35442         (FPE_INTDIV): Likewise.
35443         (FPE_INTOVF): Likewise.
35444         (FPE_FLTDIV): Likewise.
35445         (FPE_FLTOVF): Likewise.
35446         (FPE_FLTUND): Likewise.
35447         (FPE_FLTRES): Likewise.
35448         (FPE_FLTINV): Likewise.
35449         (FPE_FLTSUB): Likewise.
35450         (SEGV_MAPERR): Likewise.
35451         (SEGV_ACCERR): Likewise.
35452         (BUS_ADRALN): Likewise.
35453         (BUS_ADRERR): Likewise.
35454         (BUS_OBJERR): Likewise.
35455         (BUS_MCEERR_AR): Likewise.
35456         (BUS_MCEERR_AO): Likewise.
35457         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35458         (TRAP_TRACE): Likewise.
35459         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35460         __USE_XOPEN2K8].
35461         (CLD_KILLED): Likewise.
35462         (CLD_DUMPED): Likewise.
35463         (CLD_TRAPPED): Likewise.
35464         (CLD_STOPPED): Likewise.
35465         (CLD_CONTINUED): Likewise.
35466         (POLL_IN): Likewise.
35467         (POLL_OUT): Likewise.
35468         (POLL_MSG): Likewise.
35469         (POLL_ERR): Likewise.
35470         (POLL_PRI): Likewise.
35471         (POLL_HUP): Likewise.
35472         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
35473         (ILL_ILLOPN): Likewise.
35474         (ILL_ILLADR): Likewise.
35475         (ILL_ILLTRP): Likewise.
35476         (ILL_PRVOPC): Likewise.
35477         (ILL_PRVREG): Likewise.
35478         (ILL_COPROC): Likewise.
35479         (ILL_BADSTK): Likewise.
35480         (FPE_INTDIV): Likewise.
35481         (FPE_INTOVF): Likewise.
35482         (FPE_FLTDIV): Likewise.
35483         (FPE_FLTOVF): Likewise.
35484         (FPE_FLTUND): Likewise.
35485         (FPE_FLTRES): Likewise.
35486         (FPE_FLTINV): Likewise.
35487         (FPE_FLTSUB): Likewise.
35488         (SEGV_MAPERR): Likewise.
35489         (SEGV_ACCERR): Likewise.
35490         (BUS_ADRALN): Likewise.
35491         (BUS_ADRERR): Likewise.
35492         (BUS_OBJERR): Likewise.
35493         (BUS_MCEERR_AR): Likewise.
35494         (BUS_MCEERR_AO): Likewise.
35495         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35496         (TRAP_TRACE): Likewise.
35497         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35498         __USE_XOPEN2K8].
35499         (CLD_KILLED): Likewise.
35500         (CLD_DUMPED): Likewise.
35501         (CLD_TRAPPED): Likewise.
35502         (CLD_STOPPED): Likewise.
35503         (CLD_CONTINUED): Likewise.
35504         (POLL_IN): Likewise.
35505         (POLL_OUT): Likewise.
35506         (POLL_MSG): Likewise.
35507         (POLL_ERR): Likewise.
35508         (POLL_PRI): Likewise.
35509         (POLL_HUP): Likewise.
35510         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
35511         (ILL_ILLOPN): Likewise.
35512         (ILL_ILLADR): Likewise.
35513         (ILL_ILLTRP): Likewise.
35514         (ILL_PRVOPC): Likewise.
35515         (ILL_PRVREG): Likewise.
35516         (ILL_COPROC): Likewise.
35517         (ILL_BADSTK): Likewise.
35518         (FPE_INTDIV): Likewise.
35519         (FPE_INTOVF): Likewise.
35520         (FPE_FLTDIV): Likewise.
35521         (FPE_FLTOVF): Likewise.
35522         (FPE_FLTUND): Likewise.
35523         (FPE_FLTRES): Likewise.
35524         (FPE_FLTINV): Likewise.
35525         (FPE_FLTSUB): Likewise.
35526         (SEGV_MAPERR): Likewise.
35527         (SEGV_ACCERR): Likewise.
35528         (BUS_ADRALN): Likewise.
35529         (BUS_ADRERR): Likewise.
35530         (BUS_OBJERR): Likewise.
35531         (BUS_MCEERR_AR): Likewise.
35532         (BUS_MCEERR_AO): Likewise.
35533         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35534         (TRAP_TRACE): Likewise.
35535         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35536         __USE_XOPEN2K8].
35537         (CLD_KILLED): Likewise.
35538         (CLD_DUMPED): Likewise.
35539         (CLD_TRAPPED): Likewise.
35540         (CLD_STOPPED): Likewise.
35541         (CLD_CONTINUED): Likewise.
35542         (POLL_IN): Likewise.
35543         (POLL_OUT): Likewise.
35544         (POLL_MSG): Likewise.
35545         (POLL_ERR): Likewise.
35546         (POLL_PRI): Likewise.
35547         (POLL_HUP): Likewise.
35548         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
35549         (ILL_ILLOPN): Likewise.
35550         (ILL_ILLADR): Likewise.
35551         (ILL_ILLTRP): Likewise.
35552         (ILL_PRVOPC): Likewise.
35553         (ILL_PRVREG): Likewise.
35554         (ILL_COPROC): Likewise.
35555         (ILL_BADSTK): Likewise.
35556         (ILL_DBLFLT): Likewise.
35557         (ILL_HARDWALL): Likewise.
35558         (FPE_INTDIV): Likewise.
35559         (FPE_INTOVF): Likewise.
35560         (FPE_FLTDIV): Likewise.
35561         (FPE_FLTOVF): Likewise.
35562         (FPE_FLTUND): Likewise.
35563         (FPE_FLTRES): Likewise.
35564         (FPE_FLTINV): Likewise.
35565         (FPE_FLTSUB): Likewise.
35566         (SEGV_MAPERR): Likewise.
35567         (SEGV_ACCERR): Likewise.
35568         (BUS_ADRALN): Likewise.
35569         (BUS_ADRERR): Likewise.
35570         (BUS_OBJERR): Likewise.
35571         (BUS_MCEERR_AR): Likewise.
35572         (BUS_MCEERR_AO): Likewise.
35573         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35574         (TRAP_TRACE): Likewise.
35575         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35576         __USE_XOPEN2K8].
35577         (CLD_KILLED): Likewise.
35578         (CLD_DUMPED): Likewise.
35579         (CLD_TRAPPED): Likewise.
35580         (CLD_STOPPED): Likewise.
35581         (CLD_CONTINUED): Likewise.
35582         (POLL_IN): Likewise.
35583         (POLL_OUT): Likewise.
35584         (POLL_MSG): Likewise.
35585         (POLL_ERR): Likewise.
35586         (POLL_PRI): Likewise.
35587         (POLL_HUP): Likewise.
35588         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
35589         (ILL_ILLOPN): Likewise.
35590         (ILL_ILLADR): Likewise.
35591         (ILL_ILLTRP): Likewise.
35592         (ILL_PRVOPC): Likewise.
35593         (ILL_PRVREG): Likewise.
35594         (ILL_COPROC): Likewise.
35595         (ILL_BADSTK): Likewise.
35596         (FPE_INTDIV): Likewise.
35597         (FPE_INTOVF): Likewise.
35598         (FPE_FLTDIV): Likewise.
35599         (FPE_FLTOVF): Likewise.
35600         (FPE_FLTUND): Likewise.
35601         (FPE_FLTRES): Likewise.
35602         (FPE_FLTINV): Likewise.
35603         (FPE_FLTSUB): Likewise.
35604         (SEGV_MAPERR): Likewise.
35605         (SEGV_ACCERR): Likewise.
35606         (BUS_ADRALN): Likewise.
35607         (BUS_ADRERR): Likewise.
35608         (BUS_OBJERR): Likewise.
35609         (BUS_MCEERR_AR): Likewise.
35610         (BUS_MCEERR_AO): Likewise.
35611         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35612         (TRAP_TRACE): Likewise.
35613         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35614         __USE_XOPEN2K8].
35615         (CLD_KILLED): Likewise.
35616         (CLD_DUMPED): Likewise.
35617         (CLD_TRAPPED): Likewise.
35618         (CLD_STOPPED): Likewise.
35619         (CLD_CONTINUED): Likewise.
35620         (POLL_IN): Likewise.
35621         (POLL_OUT): Likewise.
35622         (POLL_MSG): Likewise.
35623         (POLL_ERR): Likewise.
35624         (POLL_PRI): Likewise.
35625         (POLL_HUP): Likewise.
35626         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
35627         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
35628
35629         [BZ #16670]
35630         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
35631         before #include of <time.h>.
35632         [!__USE_XOPEN2K] (__need_timespec): Likewise.
35633         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
35634         (test-xfail-UNIX98/sched.h/conform): Likewise.
35635
35636 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
35637
35638         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
35639         error absence of trapping exception support.
35640         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
35641
35642 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35643
35644         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
35645         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
35646         * timezone/Makefile (testdata): Move definition above include of
35647         Rules.
35648         (test-zones): New variable.
35649         (tests-special): Add zone files.
35650         (build-testdata): Use $(evaluate-test).
35651
35652         * elf/Makefile (tests-special): Rename tests to end with .out.
35653         ($(objpfx)noload-mem): Likewise.
35654         ($(objpfx)tst-leaks1-mem): Likewise.
35655         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
35656         * iconv/Makefile (xtests-special): Change test-iconvconfig to
35657         $(objpfx)test-iconvconfig.out.
35658         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
35659         set -e inside subshell and redirect output to file.
35660         * iconvdata/Makefile (generated): Rename tests to end with .out.
35661         Correct type.
35662         (tests-special): Rename tests to end with .out.
35663         ($(objpfx)mtrace-tst-loading): Likewise.
35664         * intl/Makefile (generated): Likewise.
35665         (tests-special): Likewise.
35666         ($(objpfx)mtrace-tst-gettext): Likewise.
35667         * misc/Makefile (generated): Likewise.
35668         (tests-special): Likewise.
35669         ($(objpfx)tst-error1-mem): Likewise.
35670         * nptl/Makefile (tests-special): Likewise.
35671         ($(objpfx)tst-stack3-mem): Likewise.
35672         (generated): Likewise.
35673         * posix/Makefile (generated): Likewise.
35674         (tests-special): Likewise.
35675         (xtests-special): Likewise.
35676         ($(objpfx)tst-fnmatch-mem): Likewise.
35677         ($(objpfx)bug-regex2-mem): Likewise.
35678         ($(objpfx)bug-regex14-mem): Likewise.
35679         ($(objpfx)bug-regex21-mem): Likewise.
35680         ($(objpfx)bug-regex31-mem): Likewise.
35681         ($(objpfx)tst-vfork3-mem): Likewise.
35682         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
35683         ($(objpfx)tst-pcre-mem): Likewise.
35684         ($(objpfx)tst-boost-mem): Likewise.
35685         ($(objpfx)bug-ga2-mem): Likewise.
35686         ($(objpfx)bug-glob2-mem): Likewise.
35687         * resolv/Makefile (generate): Likewise.
35688         (tests-special): Likewise.
35689         (xtests-special): Likewise.
35690         (generated): Likewise.
35691         ($(objpfx)mtrace-tst-leaks): Likewise.
35692         ($(objpfx)mtrace-tst-leaks2): Likewise.
35693
35694         * scripts/merge-test-results.sh: New file.
35695         * Makefile (tests-special-notdir): New variable.
35696         (tests): Run merge-test-results.sh.
35697         (xtests): Likewise.
35698         * Rules (tests-special-notdir): New variable.
35699         (xtests-special-notdir): Likewise.
35700         (tests): Run merge-test-results.sh
35701         (xtests): Likewise.
35702
35703         * Makeconfig (test-xfail-name): New variable.
35704         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
35705         compute variable name for expected failures.
35706         * conform/Makefile (conformtest-headers-data): New variable.
35707         (conformtest-standards): Likewise.
35708         (conformtest-headers-ISO): Likewise.
35709         (conformtest-headers-ISO99): Likewise.
35710         (conformtest-headers-ISO11): Likewise.
35711         (conformtest-headers-POSIX): Likewise.
35712         (conformtest-headers-XPG3): Likewise.
35713         (conformtest-headers-XPG4): Likewise.
35714         (conformtest-headers-UNIX98): Likewise.
35715         (conformtest-headers-XOPEN2K): Likewise.
35716         (conformtest-headers-POSIX2008): Likewise.
35717         (conformtest-headers-XOPEN2K8): Likewise.
35718         (conformtest-header-list-base): Likewise.
35719         (conformtest-header-list-tests): Likewise.
35720         (conformtest-header-base): Likewise.
35721         (conformtest-header-tests): Likewise.
35722         (tests-special): Add $(conformtest-header-list-tests).  If
35723         [$(fast-check) && !$(cross-compiling)], add
35724         $(conformtest-header-tests) instead of
35725         $(objpfx)run-conformtest.out.
35726         (generated): Add $(conformtest-header-list-base).  If
35727         [$(fast-check) && !$(cross-compiling)], add
35728         $(conformtest-header-base).  Remove previous setting.
35729         ($(conformtest-header-list-tests)): New target.
35730         (test-xfail-run-conformtest): Remove variable.
35731         ($(objpfx)run-conformtest.out): Remove target.
35732         (test-xfail-ISO11/complex.h/conform): New variable.
35733         (test-xfail-ISO11/stdalign.h/conform): Likewise.
35734         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
35735         (test-xfail-XPG3/varargs.h/conform): Likewise.
35736         (test-xfail-XPG4/varargs.h/conform): Likewise.
35737         (test-xfail-UNIX98/varargs.h/conform): Likewise.
35738         (test-xfail-XPG4/ndbm.h/conform): Likewise.
35739         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
35740         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
35741         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
35742         (test-xfail-XPG3/fcntl.h/conform): Likewise.
35743         (test-xfail-XPG3/ftw.h/conform): Likewise.
35744         (test-xfail-XPG3/grp.h/conform): Likewise.
35745         (test-xfail-XPG3/langinfo.h/conform): Likewise.
35746         (test-xfail-XPG3/limits.h/conform): Likewise.
35747         (test-xfail-XPG3/pwd.h/conform): Likewise.
35748         (test-xfail-XPG3/search.h/conform): Likewise.
35749         (test-xfail-XPG3/signal.h/conform): Likewise.
35750         (test-xfail-XPG3/stdio.h/conform): Likewise.
35751         (test-xfail-XPG3/stdlib.h/conform): Likewise.
35752         (test-xfail-XPG3/string.h/conform): Likewise.
35753         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
35754         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
35755         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
35756         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
35757         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
35758         (test-xfail-XPG3/sys/types.h/conform): Likewise.
35759         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
35760         (test-xfail-XPG3/termios.h/conform): Likewise.
35761         (test-xfail-XPG3/time.h/conform): Likewise.
35762         (test-xfail-XPG3/unistd.h/conform): Likewise.
35763         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
35764         (test-xfail-XPG4/fcntl.h/conform): Likewise.
35765         (test-xfail-XPG4/langinfo.h/conform): Likewise.
35766         (test-xfail-XPG4/netdb.h/conform): Likewise.
35767         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
35768         (test-xfail-XPG4/signal.h/conform): Likewise.
35769         (test-xfail-XPG4/stdio.h/conform): Likewise.
35770         (test-xfail-XPG4/stdlib.h/conform): Likewise.
35771         (test-xfail-XPG4/stropts.h/conform): Likewise.
35772         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
35773         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
35774         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
35775         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
35776         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
35777         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
35778         (test-xfail-XPG4/sys/time.h/conform): Likewise.
35779         (test-xfail-XPG4/sys/types.h/conform): Likewise.
35780         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
35781         (test-xfail-XPG4/termios.h/conform): Likewise.
35782         (test-xfail-XPG4/ucontext.h/conform): Likewise.
35783         (test-xfail-XPG4/unistd.h/conform): Likewise.
35784         (test-xfail-XPG4/utmpx.h/conform): Likewise.
35785         (test-xfail-POSIX/sched.h/conform): Likewise.
35786         (test-xfail-POSIX/signal.h/conform): Likewise.
35787         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
35788         (test-xfail-POSIX/tar.h/conform): Likewise.
35789         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
35790         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
35791         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
35792         (test-xfail-UNIX98/netdb.h/conform): Likewise.
35793         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
35794         (test-xfail-UNIX98/sched.h/conform): Likewise.
35795         (test-xfail-UNIX98/signal.h/conform): Likewise.
35796         (test-xfail-UNIX98/stdio.h/conform): Likewise.
35797         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
35798         (test-xfail-UNIX98/stropts.h/conform): Likewise.
35799         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
35800         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
35801         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
35802         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
35803         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
35804         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
35805         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
35806         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
35807         (test-xfail-UNIX98/unistd.h/conform): Likewise.
35808         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
35809         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
35810         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
35811         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
35812         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
35813         (test-xfail-XOPEN2K/math.h/conform): Likewise.
35814         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
35815         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
35816         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
35817         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
35818         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
35819         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
35820         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
35821         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
35822         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
35823         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
35824         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
35825         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
35826         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
35827         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
35828         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
35829         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
35830         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
35831         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
35832         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
35833         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
35834         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
35835         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
35836         (test-xfail-POSIX2008/signal.h/conform): Likewise.
35837         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
35838         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
35839         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
35840         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
35841         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
35842         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
35843         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
35844         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
35845         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
35846         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
35847         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
35848         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
35849         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
35850         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
35851         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
35852         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
35853         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
35854         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
35855         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
35856         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
35857         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
35858         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
35859         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
35860         (conformtest-cc-flags): Likewise.
35861         ($(conformtest-header-tests): New target.
35862         * conform/check-header-lists.sh: New file.
35863         * conform/run-conformtest.sh: Remove.
35864
35865         * conform/conformtest.pl: Allow ' and \ in values given for
35866         constants.
35867         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
35868         inclusion.
35869         [POSIX] (sys/types.h): Likewise.
35870         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
35871         inclusion.
35872         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
35873         inclusion.
35874         * conform/data/signal.h-data (SIGIO): Remove expectation.
35875         [XPG3] (SIGBUS): Do not expect.
35876         [POSIX || XPG3] (SIGPOLL): Likewise.
35877         [POSIX || XPG3] (SIGPROF): Likewise.
35878         [POSIX || XPG3] (SIGSYS): Likewise.
35879         [XPG3] (SIGTRAP): Likewise.
35880         [POSIX || XPG3] (SIGURG): Likewise.
35881         [POSIX || XPG3] (SIGVTALRM): Likewise.
35882         [POSIX || XPG3] (SIGXCPU): Likewise.
35883         [POSIX || XPG3] (SIGXFSZ): Likewise.
35884         [POSIX] (SA_SIGINFO): Expect.
35885         [XPG3] (siginfo_t): Do not expect type or contents.
35886         [POSIX] (si_pid): Do not expect element.
35887         [POSIX] (si_uid): Likewise.
35888         [POSIX] (si_addr): Likewise.
35889         [POSIX] (si_status): Likewise.
35890         [POSIX] (si_band): Likewise.
35891         [XPG4] (si_value): Likewise.
35892         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
35893         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
35894         [POSIX || XPG3] (ILL_ILLADR): Likewise.
35895         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
35896         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
35897         [POSIX || XPG3] (ILL_PRVREG): Likewise.
35898         [POSIX || XPG3] (ILL_COPROC): Likewise.
35899         [POSIX || XPG3] (ILL_BADSTK): Likewise.
35900         [POSIX || XPG3] (FPE_INTDIV): Likewise.
35901         [POSIX || XPG3] (FPE_INTOVF): Likewise.
35902         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
35903         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
35904         [POSIX || XPG3] (FPE_FLTUND): Likewise.
35905         [POSIX || XPG3] (FPE_FLTRES): Likewise.
35906         [POSIX || XPG3] (FPE_FLTINV): Likewise.
35907         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
35908         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
35909         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
35910         [POSIX || XPG3] (BUS_ADRALN): Likewise.
35911         [POSIX || XPG3] (BUS_ADRERR): Likewise.
35912         [POSIX || XPG3] (BUS_OBJERR): Likewise.
35913         [POSIX || XPG3] (CLD_EXITED): Likewise.
35914         [POSIX || XPG3] (CLD_KILLED): Likewise.
35915         [POSIX || XPG3] (CLD_DUMPED): Likewise.
35916         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
35917         [POSIX || XPG3] (CLD_STOPPED): Likewise.
35918         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
35919         [POSIX || XPG3] (POLL_IN): Likewise.
35920         [POSIX || XPG3] (POLL_OUT): Likewise.
35921         [POSIX || XPG3] (POLL_MSG): Likewise.
35922         [POSIX || XPG3] (POLL_ERR): Likewise.
35923         [POSIX || XPG3] (POLL_PRI): Likewise.
35924         [POSIX || XPG3] (POLL_HUP): Likewise.
35925         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
35926         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
35927         (SIG*): Do not allow.
35928         [XPG3] (si_*): Likewise.
35929         [XPG3] (SI_*): Likewise.
35930         [XPG3 || XPG4] (sigev_*): Likewise.
35931         [XPG3 || XPG4] (SIGEV_*): Likewise.
35932         [XPG3 || XPG4] (sival_*): Likewise.
35933         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
35934         [POSIX || XPG3] (BUS_*): Likewise.
35935         [POSIX || XPG3] (CLD_*): Likewise.
35936         [POSIX || XPG3] (FPE_*): Likewise.
35937         [POSIX || XPG3] (ILL_*): Likewise.
35938         [POSIX || XPG3] (POLL_*): Likewise.
35939         [POSIX || XPG3] (SEGV_*): Likewise.
35940         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
35941         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
35942         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
35943         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
35944         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
35945         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
35946         Specify type and value.
35947         (TVERSLEN): Likewise.
35948         (REGTYPE): Likewise.
35949         (AREGTYPE): Likewise.
35950         (LNKTYPE): Likewise.
35951         (SYMTYPE): Likewise.
35952         (CHRTYPE): Likewise.
35953         (BLKTYPE): Likewise.
35954         (DIRTYPE): Likewise.
35955         (FIFOTYPE): Likewise.
35956         (CONTTYPE): Likewise.
35957         (TSUID): Likewise.
35958         (TSGID): Likewise.
35959         (TSVTX): Likewise.
35960         (TUREAD): Likewise.
35961         (TUWRITE): Likewise.
35962         (TUEXEC): Likewise.
35963         (TGREAD): Likewise.
35964         (TGWRITE): Likewise.
35965         (TGEXEC): Likewise.
35966         (TOREAD): Likewise.
35967         (TOWRITE): Likewise.
35968         (TOEXEC): Likewise.
35969         [POSIX] (TSVTX): Expect constant.
35970
35971 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
35972
35973         * Makefile (tests): Change dependencies to ....
35974         (tests-special): ... additions to this variable.
35975         (tests): Depend on $(tests-special).
35976         * Makerules (check-abi-list): New variable.
35977         (check-abi): Depend on $(check-abi-list).
35978         [$(subdir) = elf] (tests-special): Add
35979         $(objpfx)check-abi-libc.out.
35980         [$(build-shared) = yes && subdir] (tests-special): Add
35981         $(check-abi-list).
35982         [$(build-shared) = yes && subdir] (tests): Do not depend on
35983         check-abi.
35984         * Rules (tests): Depend on $(tests-special).
35985         (xtests): Depend on $(xtests-special).
35986         * catgets/Makefile (tests): Change dependencies to ....
35987         (tests-special): ... additions to this variable.
35988         * conform/Makefile (tests): Change dependencies to ....
35989         (tests-special): ... additions to this variable.
35990         * elf/Makefile (tests): Change dependencies to ....
35991         (tests-special): ... additions to this variable.
35992         * grp/Makefile (tests): Change dependencies to ....
35993         (tests-special): ... additions to this variable.
35994         * iconv/Makefile (xtests): Change dependencies to ....
35995         (xtests-special): ... additions to this variable.
35996         * iconvdata/Makefile (tests): Change dependencies to ....
35997         (tests-special): ... additions to this variable.
35998         * intl/Makefile (tests): Change dependencies to ....
35999         (tests-special): ... additions to this variable.  Also add
36000         $(objpfx)tst-gettext.out.
36001         * io/Makefile (tests): Change dependencies to ....
36002         (tests-special): ... additions to this variable.
36003         * libio/Makefile (tests): Change dependencies to ....
36004         (tests-special): ... additions to this variable.
36005         * malloc/Makefile (tests): Change dependencies to ....
36006         (tests-special): ... additions to this variable.
36007         * misc/Makefile (tests): Change dependencies to ....
36008         (tests-special): ... additions to this variable.
36009         * nptl/Makefile (tests): Change dependencies to ....
36010         (tests-special): ... additions to this variable.
36011         * nptl_db/Makefile (tests): Change dependencies to ....
36012         (tests-special): ... additions to this variable.
36013         * posix/Makefile (tests): Change dependencies to ....
36014         (tests-special): ... additions to this variable.
36015         (xtests): Change dependencies to ....
36016         (xtests-special): ... additions to this variable.
36017         * resolv/Makefile (tests): Change dependencies to ....
36018         (tests-special): ... additions to this variable.
36019         (xtests): Change dependencies to ....
36020         (xtests-special): ... additions to this variable.
36021         * stdio-common/Makefile (tests): Change dependencies to ....
36022         (tests-special): ... additions to this variable.
36023         (do-tst-unbputc): Remove target.
36024         (do-tst-printf): Likewise.
36025         * stdlib/Makefile (tests): Change dependencies to ....
36026         (tests-special): ... additions to this variable.
36027         * string/Makefile (tests): Change dependencies to ....
36028         (tests-special): ... additions to this variable.
36029         * sysdeps/x86/Makefile (tests): Change dependencies to ....
36030         (tests-special): ... additions to this variable.
36031
36032         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
36033         whole file.
36034         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
36035         whole file.
36036         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
36037         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
36038
36039         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
36040         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
36041         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
36042         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
36043         * conform/data/libgen.h-data [XPG3]: Likewise.
36044         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
36045         * conform/data/ndbm.h-data [XPG3]: Likewise.
36046         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36047         * conform/data/netdb.h-data [XPG3]: Likewise.
36048         * conform/data/netinet/in.h-data [XPG3]: Likewise.
36049         * conform/data/poll.h-data [XPG3]: Likewise.
36050         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36051         * conform/data/strings.h-data [XPG3]: Likewise.
36052         * conform/data/stropts.h-data [XPG3]: Likewise.
36053         * conform/data/sys/mman.h-data [XPG3]: Likewise.
36054         * conform/data/sys/resource.h-data [XPG3]: Likewise.
36055         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
36056         Likewise.
36057         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
36058         * conform/data/sys/time.h-data [XPG3]: Likewise.
36059         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
36060         * conform/data/sys/uio.h-data [XPG3]: Likewise.
36061         * conform/data/sys/un.h-data [XPG3]: Likewise.
36062         * conform/data/syslog.h-data [XPG3]: Likewise.
36063         * conform/data/ucontext.h-data [XPG3]: Likewise.
36064         * conform/data/utmpx.h-data [XPG3]: Likewise.
36065         * conform/data/varargs.h-data [UNIX98]: Enable file.
36066
36067         * manual/Makefile (INSTALL_INFO): Remove variable setting.
36068
36069         * math/libm-test.inc (struct test_f_f_data): Move expected results
36070         into structure for each rounding mode.
36071         (struct test_ff_f_data): Likewise.
36072         (struct test_ff_f_data_nexttoward): Likewise.
36073         (struct test_fi_f_data): Likewise.
36074         (struct test_fl_f_data): Likewise.
36075         (struct test_if_f_data): Likewise.
36076         (struct test_fff_f_data): Likewise.
36077         (struct test_c_f_data): Likewise.
36078         (struct test_f_f1_data): Likewise.
36079         (struct test_fF_f1_data): Likewise.
36080         (struct test_ffI_f1_data): Likewise.
36081         (struct test_c_c_data): Likewise.
36082         (struct test_cc_c_data): Likewise.
36083         (struct test_f_i_data): Likewise.
36084         (struct test_ff_i_data): Likewise.
36085         (struct test_f_l_data): Likewise.
36086         (struct test_f_L_data): Likewise.
36087         (struct test_fFF_11_data): Likewise.
36088         (RM_): New macro.
36089         (RM_FE_DOWNWARD): Likewise.
36090         (RM_FE_TONEAREST): Likewise.
36091         (RM_FE_TOWARDZERO): Likewise.
36092         (RM_FE_UPWARD): Likewise.
36093         (RUN_TEST_LOOP_f_f): Update references to expected results.
36094         (RUN_TEST_LOOP_2_f): Likewise.
36095         (RUN_TEST_LOOP_fff_f): Likewise.
36096         (RUN_TEST_LOOP_c_f): Likewise.
36097         (RUN_TEST_LOOP_f_f1): Likewise.
36098         (RUN_TEST_LOOP_fF_f1): Likewise.
36099         (RUN_TEST_LOOP_fI_f1): Likewise.
36100         (RUN_TEST_LOOP_ffI_f1): Likewise.
36101         (RUN_TEST_LOOP_c_c): Likewise.
36102         (RUN_TEST_LOOP_cc_c): Likewise.
36103         (RUN_TEST_LOOP_f_i): Likewise.
36104         (RUN_TEST_LOOP_f_i_tg): Likewise.
36105         (RUN_TEST_LOOP_ff_i_tg): Likewise.
36106         (RUN_TEST_LOOP_f_b): Likewise.
36107         (RUN_TEST_LOOP_f_b_tg): Likewise.
36108         (RUN_TEST_LOOP_f_l): Likewise.
36109         (RUN_TEST_LOOP_f_L): Likewise.
36110         (RUN_TEST_LOOP_fFF_11): Likewise.
36111         * math/gen-libm-test.pl (parse_args): Output four copies of
36112         expected results for each test.
36113
36114         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36115         (__ASSUME_UTIMES): Remove.
36116         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36117         (__ASSUME_UTIMES): Likewise.
36118
36119         * math/gen-auto-libm-tests.c: Update comment on output format.
36120         (output_for_one_input_case): Generate before-rounding and
36121         after-rounding information as conditions on output flags not
36122         floating-point format.
36123         * math/auto-libm-test-out: Regenerated.
36124         * math/gen-libm-test.pl (cond_value): New function.
36125         (or_cond_value): Use cond_value.
36126         (generate_testfile): Handle conditional exceptions.
36127
36128 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
36129
36130         * math/libm-test.inc (max_valid_error): New variable.
36131         (init_max_error): Take new argument specifying whether function
36132         results are exactly determined.  Set max_valid_error and bound
36133         other variables for errors based on this argument.
36134         (set_max_error): Do not record results above max_valid_error.
36135         (check_float_internal): Only accept errors of up to 0.5ulps if
36136         also at most max_valid_error.
36137         (START): Take new argument EXACT and pass it to init_max_error.
36138         (acos_test): Update call to START.
36139         (acos_test_tonearest): Likewise.
36140         (acos_test_towardzero): Likewise.
36141         (acos_test_downward): Likewise.
36142         (acos_test_upward): Likewise.
36143         (acosh_test): Likewise.
36144         (asin_test): Likewise.
36145         (asin_test_tonearest): Likewise.
36146         (asin_test_towardzero): Likewise.
36147         (asin_test_downward): Likewise.
36148         (asin_test_upward): Likewise.
36149         (asinh_test): Likewise.
36150         (atan_test): Likewise.
36151         (atanh_test): Likewise.
36152         (atan2_test): Likewise.
36153         (cabs_test): Likewise.
36154         (cacos_test): Likewise.
36155         (cacosh_test): Likewise.
36156         (carg_test): Likewise.
36157         (casin_test): Likewise.
36158         (casinh_test): Likewise.
36159         (catan_test): Likewise.
36160         (catanh_test): Likewise.
36161         (cbrt_test): Likewise.
36162         (ccos_test): Likewise.
36163         (ccosh_test): Likewise.
36164         (ceil_test): Likewise.
36165         (cexp_test): Likewise.
36166         (cimag_test): Likewise.
36167         (clog_test): Likewise.
36168         (clog10_test): Likewise.
36169         (conj_test): Likewise.
36170         (copysign_test): Likewise.
36171         (cos_test): Likewise.
36172         (cos_test_tonearest): Likewise.
36173         (cos_test_towardzero): Likewise.
36174         (cos_test_downward): Likewise.
36175         (cos_test_upward): Likewise.
36176         (cosh_test): Likewise.
36177         (cosh_test_tonearest): Likewise.
36178         (cosh_test_towardzero): Likewise.
36179         (cosh_test_downward): Likewise.
36180         (cosh_test_upward): Likewise.
36181         (cpow_test): Likewise.
36182         (cproj_test): Likewise.
36183         (creal_test): Likewise.
36184         (csin_test): Likewise.
36185         (csinh_test): Likewise.
36186         (csqrt_test): Likewise.
36187         (ctan_test): Likewise.
36188         (ctan_test_tonearest): Likewise.
36189         (ctan_test_towardzero): Likewise.
36190         (ctan_test_downward): Likewise.
36191         (ctan_test_upward): Likewise.
36192         (ctanh_test): Likewise.
36193         (ctanh_test_tonearest): Likewise.
36194         (ctanh_test_towardzero): Likewise.
36195         (ctanh_test_downward): Likewise.
36196         (ctanh_test_upward): Likewise.
36197         (erf_test): Likewise.
36198         (erfc_test): Likewise.
36199         (exp_test): Likewise.
36200         (exp_test_tonearest): Likewise.
36201         (exp_test_towardzero): Likewise.
36202         (exp_test_downward): Likewise.
36203         (exp_test_upward): Likewise.
36204         (exp10_test): Likewise.
36205         (exp10_test_tonearest): Likewise.
36206         (exp10_test_towardzero): Likewise.
36207         (exp10_test_downward): Likewise.
36208         (exp10_test_upward): Likewise.
36209         (pow10_test): Likewise.
36210         (exp2_test): Likewise.
36211         (expm1_test): Likewise.
36212         (expm1_test_tonearest): Likewise.
36213         (expm1_test_towardzero): Likewise.
36214         (expm1_test_downward): Likewise.
36215         (expm1_test_upward): Likewise.
36216         (fabs_test): Likewise.
36217         (fdim_test): Likewise.
36218         (floor_test): Likewise.
36219         (fma_test): Likewise.
36220         (fma_test_towardzero): Likewise.
36221         (fma_test_downward): Likewise.
36222         (fma_test_upward): Likewise.
36223         (fmax_test): Likewise.
36224         (fmin_test): Likewise.
36225         (fmod_test): Likewise.
36226         (fpclassify_test): Likewise.
36227         (frexp_test): Likewise.
36228         (hypot_test): Likewise.
36229         (ilogb_test): Likewise.
36230         (isfinite_test): Likewise.
36231         (finite_test): Likewise.
36232         (isgreater_test): Likewise.
36233         (isgreaterequal_test): Likewise.
36234         (isinf_test): Likewise.
36235         (isless_test): Likewise.
36236         (islessequal_test): Likewise.
36237         (islessgreater_test): Likewise.
36238         (isnan_test): Likewise.
36239         (isnormal_test): Likewise.
36240         (issignaling_test): Likewise.
36241         (isunordered_test): Likewise.
36242         (j0_test): Likewise.
36243         (j1_test): Likewise.
36244         (jn_test): Likewise.
36245         (ldexp_test): Likewise.
36246         (lgamma_test): Likewise.
36247         (gamma_test): Likewise.
36248         (lrint_test): Likewise.
36249         (lrint_test_tonearest): Likewise.
36250         (lrint_test_towardzero): Likewise.
36251         (lrint_test_downward): Likewise.
36252         (lrint_test_upward): Likewise.
36253         (llrint_test): Likewise.
36254         (llrint_test_tonearest): Likewise.
36255         (llrint_test_towardzero): Likewise.
36256         (llrint_test_downward): Likewise.
36257         (llrint_test_upward): Likewise.
36258         (log_test): Likewise.
36259         (log10_test): Likewise.
36260         (log1p_test): Likewise.
36261         (log2_test): Likewise.
36262         (logb_test): Likewise.
36263         (logb_test_downward): Likewise.
36264         (lround_test): Likewise.
36265         (llround_test): Likewise.
36266         (modf_test): Likewise.
36267         (nearbyint_test): Likewise.
36268         (nextafter_test): Likewise.
36269         (nexttoward_test): Likewise.
36270         (pow_test): Likewise.
36271         (pow_test_tonearest): Likewise.
36272         (pow_test_towardzero): Likewise.
36273         (pow_test_downward): Likewise.
36274         (pow_test_upward): Likewise.
36275         (remainder_test): Likewise.
36276         (drem_test): Likewise.
36277         (remainder_test_tonearest): Likewise.
36278         (drem_test_tonearest): Likewise.
36279         (remainder_test_towardzero): Likewise.
36280         (drem_test_towardzero): Likewise.
36281         (remainder_test_downward): Likewise.
36282         (drem_test_downward): Likewise.
36283         (remainder_test_upward): Likewise.
36284         (drem_test_upward): Likewise.
36285         (remquo_test): Likewise.
36286         (rint_test): Likewise.
36287         (rint_test_tonearest): Likewise.
36288         (rint_test_towardzero): Likewise.
36289         (rint_test_downward): Likewise.
36290         (rint_test_upward): Likewise.
36291         (round_test): Likewise.
36292         (scalb_test): Likewise.
36293         (scalbn_test): Likewise.
36294         (scalbln_test): Likewise.
36295         (signbit_test): Likewise.
36296         (sin_test): Likewise.
36297         (sin_test_tonearest): Likewise.
36298         (sin_test_towardzero): Likewise.
36299         (sin_test_downward): Likewise.
36300         (sin_test_upward): Likewise.
36301         (sincos_test): Likewise.
36302         (sinh_test): Likewise.
36303         (sinh_test_tonearest): Likewise.
36304         (sinh_test_towardzero): Likewise.
36305         (sinh_test_downward): Likewise.
36306         (sinh_test_upward): Likewise.
36307         (sqrt_test): Likewise.
36308         (sqrt_test_tonearest): Likewise.
36309         (sqrt_test_towardzero): Likewise.
36310         (sqrt_test_downward): Likewise.
36311         (sqrt_test_upward): Likewise.
36312         (tan_test): Likewise.
36313         (tan_test_tonearest): Likewise.
36314         (tan_test_towardzero): Likewise.
36315         (tan_test_downward): Likewise.
36316         (tan_test_upward): Likewise.
36317         (tanh_test): Likewise.
36318         (tgamma_test): Likewise.
36319         (trunc_test): Likewise.
36320         (y0_test): Likewise.
36321         (y1_test): Likewise.
36322         (yn_test): Likewise.
36323         (significand_test): Likewise.
36324
36325         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
36326         individual tests in comment.
36327         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
36328         (prev_max_error): New variable.
36329         (prev_real_max_error): Likewise.
36330         (prev_imag_max_error): Likewise.
36331         (compare_ulp_data): Don't refer to test names in comment.
36332         (find_test_ulps): Remove function.
36333         (find_function_ulps): Likewise.
36334         (find_complex_function_ulps): Likewise.
36335         (init_max_error): Take function name as argument.  Look up ulps
36336         for that function.
36337         (print_ulps): Remove function.
36338         (print_max_error): Use prev_max_error instead of calling
36339         find_function_ulps.
36340         (print_complex_max_error): Use prev_real_max_error and
36341         prev_imag_max_error instead of calling find_complex_function_ulps.
36342         (check_float_internal): Take max_ulp parameter instead of calling
36343         find_test_ulps.  Don't call print_ulps.
36344         (check_float): Update call to check_float_internal.
36345         (check_complex): Update calls to check_float_internal.
36346         (START): Pass argument to init_max_error.
36347         * math/gen-libm-test.pl (%results): Don't include "kind"
36348         information.
36349         (parse_ulps): Don't handle ulps of individual tests.
36350         (print_ulps_file): Likewise.
36351         (output_ulps): Likewise.
36352         * math/README.libm-test: Update.
36353         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
36354         individual tests.
36355         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
36356         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
36357         * sysdeps/arm/libm-test-ulps: Likewise.
36358         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
36359         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
36360         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
36361         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
36362         * sysdeps/microblaze/libm-test-ulps: Likewise.
36363         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
36364         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
36365         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
36366         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
36367         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
36368         * sysdeps/sh/libm-test-ulps: Likewise.
36369         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
36370         * sysdeps/tile/libm-test-ulps: Likewise.
36371         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36372
36373 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
36374
36375         * math/libm-test.inc (print_complex_max_error): Check separately
36376         whether real and imaginary errors are within allowed range and
36377         pass 0 to print_complex_function_ulps instead of value within
36378         allowed range.
36379
36380 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
36381
36382         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
36383         formatting.
36384         (get_handles_fopen): Likewise.
36385         (do_write_test): Likewise.
36386
36387         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
36388
36389         * libio/fileops.c (do_ftell): Use cached offset when
36390         available.
36391         * libio/iofwide.c (do_ftell_wide): Likewise.
36392         * libio/iofdopen.c (_IO_new_fdopen): Don't use
36393         _IO_file_attach.
36394         * libio/wfileops.c (_IO_fwide): Don't cache offset.
36395
36396         [BZ #16532]
36397         * libio/libioP.h (get_file_offset): New function.
36398         * libio/fileops.c (get_file_offset): Likewise.
36399         (do_ftell): Likewise.
36400         (_IO_new_file_seekoff): Split out ftell logic.
36401         * libio/wfileops.c (do_ftell_wide): Likewise.
36402         (_IO_wfile_seekoff): Split out ftell logic.
36403         * libio/tst-ftell-active-handler.c: New test case.
36404         * libio/Makefile (tests): Add it.
36405
36406 2014-03-03  Roland McGrath  <roland@hack.frob.com>
36407
36408         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
36409         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
36410
36411 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
36412
36413         [BZ #16639]
36414         * nscd/connections.c (nscd_init): Call do_exit.
36415         (start_threads): Call do_exit and notify_parent.
36416         (begin_drop_privileges): Call do_exit.
36417         (finish_drop_privileges): Likewise.
36418         * nscd/selinux.c (preserve_capabilities): Likewise.
36419         (install_real_capabilities): Likewise.
36420         (nscd_selinux_enabled): Likewise.
36421         (avc_create_thread): Likewise.
36422         (avc_alloc_lock): Likewise.
36423         (nscd_avc_init): Likewise.
36424         * nscd/nscd.c (parent_fd): New static variable.
36425         (main): Create a pipe between parent and child processes.
36426         Skip closing parent_fd.
36427         (monitor_child): New function.
36428         (do_exit): Likewise.
36429         (notify_parent): Likewise.
36430         * nscd/nscd.h (notify_parent): Likewise.
36431         (do_exit): Likewise.
36432
36433 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
36434
36435         * malloc/malloc.c (__libc_calloc): Revert last change.
36436
36437 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36438
36439         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36440
36441 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
36442
36443         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
36444         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
36445         implementation.
36446         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
36447         (__libc_ifunc_impl_list): Likewise.
36448         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
36449         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
36450         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
36451         * string/strrchr.c: Define STRRCHR.
36452
36453 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
36454
36455         * benchtest/bench-strtok.c (simple_strtok): Delete.
36456         (strtok_string): Use as benchmark.
36457         * string/strtok (STRTOK): New macro.
36458
36459 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
36460
36461         * manual/threads.texi: Add header and standard comments to all
36462         functions.
36463
36464         * elf/dl-lookup.c (check_match): New function.
36465         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
36466         (do_lookup_x): Remove nested function check_match. Use non-nested
36467         function check_match.
36468
36469 2014-02-28  Roland McGrath  <roland@hack.frob.com>
36470
36471         * csu/Makefile (generated, before-compile): Use += rather than =.
36472         * catgets/Makefile (generated, generated-dirs): Likewise.
36473         * debug/Makefile (generated): Likewise.
36474         * dlfcn/Makefile (generated): Likewise.
36475         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
36476         * iconvdata/Makefile (before-compile, generated): Likewise.
36477         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
36478         * libio/Makefile (generated): Likewise.
36479         * malloc/Makefile (generated): Likewise.
36480         * manual/Makefile (generated, generated-dirs): Likewise.
36481         * misc/Makefile (generated): Likewise.
36482         * posix/Makefile (generated): Likewise.
36483         * resolv/Makefile (generated): Likewise.
36484         * sunrpc/Makefile (generated, generated-dirs): Likewise.
36485         * timezone/Makefile (generated, generated-dirs): Likewise.
36486
36487         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
36488
36489 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36490
36491         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
36492         power8 implementation.
36493         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
36494         file: POWER8 llround ifunc implementation.
36495         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
36496         (__lllround): Add POWER8 implementation.
36497         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
36498         POWER8 llround implementation.
36499
36500         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
36501         power8 implementation.
36502         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
36503         file: POWER8 llrint ifunc implementation.
36504         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
36505         Add POWER8 implementation.
36506         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
36507         POWER8 llrint implementation.
36508
36509         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
36510         power8 implementation.
36511         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
36512         file: POWER8 finite ifunc implementation.
36513         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
36514         Add POWER8 implementation.
36515         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
36516         Likewise.
36517         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
36518         POWER8 finite implementation.
36519         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
36520
36521         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
36522         power8 implementation.
36523         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
36524         file: POWER8 isinf ifunc implementation.
36525         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
36526         POWER8 implementation.
36527         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
36528         Likewise.
36529         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
36530         isinf implementation.
36531         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
36532
36533         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
36534         (INIT_ARCH): Add hwcap2 initialization.
36535         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
36536         power8 implementation.
36537         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
36538         file: POWER8 isnan ifunc implementation.
36539         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
36540         POWER8 implementation.
36541         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
36542         Likewise.
36543         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
36544         isnan implementation.
36545         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
36546
36547 2014-02-27  Joey Ye  <joey.ye@arm.com>
36548
36549         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
36550         (_FP_NANFRAC_Q): Set to zero.
36551
36552 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
36553
36554         [BZ #16623]
36555         * math/auto-libm-test-in: New test inputs.
36556         * math/auto-libm-test-out: Regenerate.
36557         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
36558         and DA.
36559         (__cos): Likewise.
36560         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
36561
36562 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
36563
36564         * scripts/evaluate-test.sh: Take new argument indicating whether
36565         failure is expected.
36566         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
36567         indicating whether failure is expected.
36568         * conform/Makefile (test-xfail-run-conformtest): New variable.
36569         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
36570         level.
36571         * posix/Makefile (test-xfail-annexc): New variable.
36572         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
36573
36574 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
36575
36576         * argp/Makefile: Include Makeconfig immediately after defining
36577         subdir.
36578         * assert/Makefile: Likewise.
36579         * benchtests/Makefile: Likewise.
36580         * catgets/Makefile: Likewise.
36581         * conform/Makefile: Likewise.
36582         * crypt/Makefile: Likewise.
36583         * csu/Makefile: Likewise.
36584         (all): Remove target.
36585         * ctype/Makefile: Include Makeconfig immediately after defining
36586         subdir.
36587         * debug/Makefile: Likewise.
36588         * dirent/Makefile: Likewise.
36589         * dlfcn/Makefile: Likewise.
36590         * gmon/Makefile: Likewise.
36591         * gnulib/Makefile: Likewise.
36592         * grp/Makefile: Likewise.
36593         * gshadow/Makefile: Likewise.
36594         * hesiod/Makefile: Likewise.
36595         * hurd/Makefile: Likewise.
36596         (all): Remove target.
36597         * iconvdata/Makefile: Include Makeconfig immediately after
36598         defining subdir.
36599         * inet/Makefile: Likewise.
36600         * intl/Makefile: Likewise.
36601         * io/Makefile: Likewise.
36602         * libio/Makefile: Likewise.
36603         (all): Remove target.
36604         * locale/Makefile: Include Makeconfig immediately after defining
36605         subdir.
36606         * login/Makefile: Likewise.
36607         * mach/Makefile: Likewise.
36608         (all): Remove target.
36609         * malloc/Makefile: Include Makeconfig immediately after defining
36610         subdir.
36611         (all): Remove target.
36612         * manual/Makefile: Include Makeconfig immediately after defining
36613         subdir.
36614         * math/Makefile: Likewise.
36615         * misc/Makefile: Likewise.
36616         * nis/Makefile: Likewise.
36617         * nss/Makefile: Likewise.
36618         * po/Makefile: Likewise.
36619         (all): Remove target.
36620         * posix/Makefile: Include Makeconfig immediately after defining
36621         subdir.
36622         * pwd/Makefile: Likewise.
36623         * resolv/Makefile: Likewise.
36624         * resource/Makefile: Likewise.
36625         * rt/Makefile: Likewise.
36626         * setjmp/Makefile: Likewise.
36627         * shadow/Makefile: Likewise.
36628         * signal/Makefile: Likewise.
36629         * socket/Makefile: Likewise.
36630         * soft-fp/Makefile: Likewise.
36631         * stdio-common/Makefile: Likewise.
36632         * stdlib/Makefile: Likewise.
36633         * streams/Makefile: Likewise.
36634         * string/Makefile: Likewise.
36635         * sunrpc/Makefile: Likewise.
36636         (all): Remove target.
36637         * sysvipc/Makefile: Include Makeconfig immediately after defining
36638         subdir.
36639         * termios/Makefile: Likewise.
36640         * time/Makefile: Likewise.
36641         * timezone/Makefile: Likewise.
36642         (all): Remove target.
36643         * wcsmbs/Makefile: Include Makeconfig immediately after defining
36644         subdir.
36645         * wctype/Makefile: Likewise.
36646
36647 2014-02-26  Steve Ellcey  <sellcey@mips.com>
36648
36649         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
36650         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
36651         (libc_feholdexcept_setround_mips): Ditto.
36652         (libc_feholdsetround): New.
36653         (libc_feholdsetroundf): New.
36654         (libc_feholdsetroundl): New.
36655         (libc_feupdateenv_test_mips): New.
36656         (libc_feupdateenv_test): New.
36657         (libc_feupdateenv_testf): New.
36658         (libc_feupdateenv_testl): New.
36659         (libc_feresetround): New.
36660         (libc_feresetroundf): New.
36661         (libc_feresetroundl): New.
36662         (libc_fetestexcept_mips): New.
36663         (libc_fetestexcept): New.
36664         (libc_fetestexceptf): New.
36665         (libc_fetestexceptl): New.
36666         (HAVE_RM_CTX): New.
36667         (libc_feholdexcept_setround_mips_ctx): New.
36668         (libc_feholdexcept_setround_ctx): New.
36669         (libc_feholdexcept_setroundf_ctx): New.
36670         (libc_feholdexcept_setroundl_ctx): New.
36671         (libc_fesetenv_mips_ctx): New.
36672         (libc_fesetenv_ctx): New.
36673         (libc_fesetenv_ctxf): New.
36674         (libc_fesetenv_ctxl): New.
36675         (libc_feupdateenv_mips_ctx): New.
36676         (libc_feupdateenv_ctx): New.
36677         (libc_feupdateenvf_ctx): New.
36678         (libc_feupdateenvl_ctx): New.
36679         (libc_feholdsetround_mips_ctx): New.
36680         (libc_feholdsetround_ctx): New.
36681         (libc_feholdsetroundf_ctx): New.
36682         (libc_feholdsetroundl_ctx): New.
36683         (libc_feresetround_mips_ctx): New.
36684         (libc_feresetround_ctx): New.
36685         (libc_feresetroundf_ctx): New.
36686         (libc_feresetroundl_ctx): New.
36687
36688 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
36689
36690         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
36691
36692         * manual/ipc.texi: New file.
36693         * manual/Makefile (chapters): Add ipc.
36694         * manual/job.texi: Add "Inter-Process Communication" to next.
36695         * manual/process.texi: Add "Inter-Process Communication" to prev.
36696
36697 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36698
36699         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36700
36701 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
36702
36703         * malloc/malloc.c (__libc_calloc): Simplify implementation.
36704
36705         * manual/arith.texi: Fix spaces after sentences.
36706         * manual/charset.texi: Likewise.
36707         * manual/errno.texi: Likewise.
36708         * manual/install.texi: Likewise.
36709         * manual/llio.texi: Likewise.
36710         * manual/locale.texi: Likewise.
36711         * manual/maint.texi: Likewise.
36712         * manual/math.texi: Likewise.
36713         * manual/memory.texi: Likewise.
36714         * manual/message.texi: Likewise.
36715         * manual/probes.texi: Likewise.
36716         * manual/resource.texi: Likewise.
36717         * manual/signal.texi: Likewise.
36718         * manual/socket.texi: Likewise.
36719         * manual/stdio.texi: Likewise.
36720         * manual/string.texi: Likewise.
36721         * manual/time.texi: Likewise.
36722         * manual/users.texi: Likewise.
36723
36724 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
36725
36726         [BZ #16632]
36727         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
36728         _DEFAULT_SOURCE is defined.
36729
36730 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
36731             Carlos O'Donell  <carlos@redhat.com>
36732
36733         [BZ #16613]
36734         * elf/dl-tls.c (_dl_count_modids): New function.
36735         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
36736         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
36737         audit library and increment generation counter.
36738         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
36739         * elf/tst-audit9.c: New file.
36740         * elf/tst-auditmod9a.c: New file.
36741         * elf/tst-auditmod9b.c: New file.
36742         * elf/Makefile: Add rules to build and run tst-audit9.
36743
36744 2014-02-25  Florian Weimer  <fweimer@redhat.com>
36745
36746         [BZ #15347]
36747         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
36748
36749 2014-02-25  Will Newton  <will.newton@linaro.org>
36750
36751         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
36752         (__longjmp): Restore sp and lr before restoring callee
36753         saved registers.  Add longjmp and longjmp_target
36754         SystemTap probe point.
36755         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
36756         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
36757         Define to zero to match jmpbuf layout.
36758         * sysdeps/arm/setjmp.S: Include stap-probe.h.
36759         (__sigsetjmp): Save sp and lr before saving callee
36760         saved registers.  Add setjmp SystemTap probe point.
36761
36762 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
36763
36764         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
36765
36766 2014-02-24  Andreas Schwab  <schwab@suse.de>
36767
36768         [BZ #15804]
36769         * elf/pldd.c (wait_for_ptrace_stop): New function.
36770         (main): Call it after attaching.
36771
36772 2014-02-22  Roland McGrath  <roland@hack.frob.com>
36773
36774         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
36775         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
36776         Versions files is now verboten.
36777         * hurd/Versions (libc: GLIBC_2.0):
36778         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
36779         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
36780         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
36781         * mach/Versions: Likewise.
36782
36783         * csu/Versions: Remove unused %include.
36784         * resolv/Versions: Likewise.
36785
36786 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
36787
36788         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
36789         ($(objpfx)check-local-headers.out): Likewise.
36790         ($(objpfx)begin-end-check.out): Likewise.
36791         * Makerules (check-abi-%.out): Likewise.
36792         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
36793         ($(objpfx)test2.cat): Likewise.
36794         ($(objpfx)de/libc.cat): Likewise.
36795         ($(objpfx)test-gencat.out): Likewise.
36796         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
36797         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
36798         ($(objpfx)noload-mem): Likewise.
36799         ($(objpfx)tst-pathopt.out): Likewise.
36800         ($(objpfx)tst-rtld-load-self.out): Likewise.
36801         ($(objpfx)tst-array1-cmp.out): Likewise.
36802         ($(objpfx)tst-array1-static-cmp.out): Likewise.
36803         ($(objpfx)tst-array2-cmp.out): Likewise.
36804         ($(objpfx)tst-array3-cmp.out): Likewise.
36805         ($(objpfx)tst-array4-cmp.out): Likewise.
36806         ($(objpfx)tst-array5-cmp.out): Likewise.
36807         ($(objpfx)tst-array5-static-cmp.out): Likewise.
36808         ($(objpfx)check-textrel.out): Likewise.
36809         ($(objpfx)check-execstack.out): Likewise.
36810         ($(objpfx)check-localplt.out): Likewise.
36811         ($(objpfx)order2-cmp.out): Likewise.
36812         ($(objpfx)tst-leaks1-mem): Likewise.
36813         ($(objpfx)tst-leaks1-static-mem): Likewise.
36814         ($(objpfx)tst-initorder-cmp.out): Likewise.
36815         ($(objpfx)tst-initorder2-cmp.out): Likewise.
36816         ($(objpfx)tst-unused-dep.out): Likewise.
36817         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
36818         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
36819         * iconv/Makefile (test-iconvconfig): Likewise.
36820         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
36821         ($(objpfx)iconv-test.out): Likewise.
36822         ($(objpfx)tst-tables.out): Likewise.
36823         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
36824         ($(objpfx)tst-gettext.out): Likewise.
36825         ($(objpfx)tst-translit.out): Likewise.
36826         ($(objpfx)tst-gettext2.out): Likewise.
36827         ($(objpfx)tst-gettext4.out): Likewise.
36828         ($(objpfx)tst-gettext6.out): Likewise.
36829         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
36830         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
36831         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
36832         ($(objpfx)tst-fopenloc-mem.out): Likewise.
36833         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
36834         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
36835         * posix/Makefile ($(objpfx)globtest.out): Likewise.
36836         ($(objpfx)wordexp-tst.out): Likewise.
36837         ($(objpfx)annexc.out): Likewise.
36838         ($(objpfx)tst-fnmatch-mem): Likewise.
36839         ($(objpfx)bug-regex2-mem): Likewise.
36840         ($(objpfx)bug-regex14-mem): Likewise.
36841         ($(objpfx)bug-regex21-mem): Likewise.
36842         ($(objpfx)bug-regex31-mem): Likewise.
36843         ($(objpfx)tst-vfork3-mem): Likewise.
36844         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
36845         ($(objpfx)tst-pcre-mem): Likewise.
36846         ($(objpfx)tst-boost-mem): Likewise.
36847         ($(objpfx)tst-getconf.out): Likewise.
36848         ($(objpfx)bug-ga2-mem): Likewise.
36849         ($(objpfx)bug-glob2-mem): Likewise.
36850         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
36851         ($(objpfx)mtrace-tst-leaks2): Likewise.
36852         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
36853         ($(objpfx)tst-printf.out): Likewise.
36854         ($(objpfx)tst-setvbuf1.out): Likewise.
36855         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
36856         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
36857         ($(objpfx)tst-fmtmsg.out): Likewise.
36858         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
36859         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
36860
36861         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
36862         * bits/sigaction.h [__USE_MISC]: Likewise.
36863         * bits/waitstatus.h: Update #endif comments.
36864         * ctype/ctype.h: Likewise.
36865         * dirent/dirent.h: Likewise.
36866         [__USE_MISC]: Remove redundant conditionals.
36867         * grp/grp.h: Update #endif comments.
36868         [__USE_GNU]: Remove redundant conditionals.
36869         [__USE_MISC]: Likewise.
36870         * inet/netinet/in.h [__USE_GNU]: Likewise.
36871         * io/sys/stat.h [__USE_MISC]: Likewise.
36872         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
36873         * libio/bits/stdio.h: Update #endif comments.
36874         [__USE_MISC]: Remove redundant conditionals.
36875         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
36876         * libio/stdio.h: Update #endif comments.
36877         [__USE_MISC]: Remove redundant conditionals.
36878         * math/bits/math-finite.h [__USE_MISC]: Likewise.
36879         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
36880         * math/math.h: Update #else and #endif comments.
36881         [__USE_MISC]: Remove redundant conditionals.
36882         * misc/sys/uio.h: Update #endif comments.
36883         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
36884         * posix/glob.h [__USE_MISC]: Likewise.
36885         * posix/sys/types.h: Update #endif comments.
36886         [__USE_MISC]: Remove redundant conditionals.
36887         * posix/sys/wait.h: Update #endif comments.
36888         [__USE_MISC]: Remove redundant conditionals.
36889         * posix/unistd.h: Update #endif comments.
36890         [__USE_MISC]: Remove redundant conditionals.
36891         * pwd/pwd.h [__USE_GNU]: Likewise.
36892         [__USE_MISC]: Likewise.
36893         * resolv/netdb.h [__USE_GNU]: Likewise.
36894         * signal/signal.h: Update #endif comments.
36895         [__USE_MISC]: Remove redundant conditionals.
36896         * stdlib/stdlib.h: Update #else and #endif comments.
36897         [__USE_MISC]: Remove redundant conditionals.
36898         [__USE_GNU]: Likewise.
36899         * string/bits/string2.h [__USE_MISC]: Likewise.
36900         * string/string.h: Update #endif comments.
36901         [__USE_MISC]: Remove redundant conditionals.
36902         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
36903         Likewise.
36904         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
36905         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
36906         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
36907         Likewise.
36908         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
36909         Likewise.
36910         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
36911         comments.
36912         [__USE_MISC]: Remove redundant conditionals.
36913         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
36914         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
36915         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
36916         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
36917         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
36918         Likewise.
36919         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
36920         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
36921         Likewise.
36922         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
36923         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
36924         Likewise.
36925         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
36926         Likewise.
36927         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
36928         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
36929         Likewise.
36930         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
36931         Likewise.
36932         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
36933         * sysdeps/x86/bits/string.h: Update #endif comments.
36934         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
36935         conditionals.
36936         * time/sys/time.h: Update #endif comments.
36937         * time/time.h: Likewise.
36938         [__USE_MISC]: Remove redundant conditionals.
36939
36940 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
36941
36942         [BZ #16600]
36943         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
36944
36945 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
36946
36947         * Versions.def (librt): Add GLIBC_2.17.
36948
36949 2014-02-21  Adam Conrad  <adconrad@0c3.net>
36950
36951         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
36952         synonym for _SYS_AUXV_H to allow direct inclusion.
36953         * sysdeps/sparc/bits/hwcap.h: Likewise.
36954         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
36955         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
36956         * sysdeps/sparc/sysdep.h: Likewise.
36957
36958 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
36959
36960         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
36961
36962 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
36963
36964         * benchtests/bench-strrchr.c: Print length instead of position.
36965
36966 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
36967
36968         [BZ #16611]
36969         * sysdeps/unix/sysv/linux/kernel-features.h
36970         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
36971         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
36972         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
36973         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
36974         Likewise.
36975         [__i386__ || __powerpc__ || __sh__ || __sparc__]
36976         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
36977         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
36978         (__ASSUME_SENDMMSG): Define instead of using previous
36979         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
36980         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36981         (__ASSUME_SENDMMSG_SYSCALL): Define.
36982         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36983         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
36984         Likewise.
36985         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36986         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
36987         Likewise.
36988         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36989         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
36990         Likewise.
36991         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
36992         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
36993         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
36994         [__ASSUME_SENDMMSG]: Change conditionals to
36995         [__ASSUME_SENDMMSG_SOCKETCALL].
36996         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
36997         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
36998         Define.
36999         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37000         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
37001         Likewise.
37002         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
37003         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37004         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37005         [!__ASSUME_SENDMMSG]: Change conditional to
37006         [!__ASSUME_SENDMMSG_SOCKETCALL].
37007         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37008         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37009         Define.
37010
37011         [BZ #16610]
37012         * sysdeps/unix/sysv/linux/kernel-features.h
37013         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
37014         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
37015         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
37016         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
37017         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
37018         [__i386__ || __sparc__]
37019         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37020         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
37021         (__ASSUME_RECVMMSG): Define instead of using previous
37022         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
37023         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37024         (__ASSUME_RECVMMSG_SYSCALL): Define.
37025         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37026         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37027         Likewise.
37028         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37029         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37030         Likewise.
37031         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37032         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37033         Likewise.
37034         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
37035         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37036         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37037         [__ASSUME_RECVMMSG]: Change condition to
37038         [__ASSUME_RECVMMSG_SOCKETCALL].
37039         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37040         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37041         Define.
37042         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37043         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37044         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37045         Likewise.
37046         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
37047         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37048         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37049         [!__ASSUME_RECVMMSG]: Change condition to
37050         [!__ASSUME_RECVMMSG_SOCKETCALL].
37051         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37052         (__ASSUME_RECVMMSG_SYSCALL): Define.
37053
37054         [BZ #16609]
37055         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
37056         __powerpc__ || __s390__ || __sh__ || __sparc__]
37057         (__ASSUME_SOCKETCALL): Define.
37058         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
37059         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
37060         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
37061         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
37062         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
37063         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
37064         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
37065         (__ASSUME_ACCEPT4): Define instead of using previous
37066         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
37067         __powerpc__ || __sparc__ || __s390__)] condition.
37068         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37069         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37070         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
37071         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37072         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37073         [!__ASSUME_ACCEPT4]: Change condition to
37074         [!__ASSUME_ACCEPT4_SOCKETCALL].
37075         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37076         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
37077         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
37078         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37079         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
37080         __ASSUME_ACCEPT4_SYSCALL.
37081         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
37082         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
37083         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37084         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
37085         __ASSUME_ACCEPT4_SYSCALL.
37086         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
37087         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37088         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37089         [__ASSUME_ACCEPT4]: Change condition to
37090         [__ASSUME_ACCEPT4_SOCKETCALL].
37091         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
37092         (__ASSUME_SOCKETCALL): Define.
37093         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
37094         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37095         (__ASSUME_SOCKETCALL): Define.
37096         (__ASSUME_ACCEPT4): Remove.
37097         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
37098         Define.
37099         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37100         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
37101         Likewise.
37102         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37103         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37104
37105         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
37106         macro.
37107         (HWCAP_ARM_LPAE): Likewise.
37108         (HWCAP_ARM_EVTSTRM): Likewise.
37109         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
37110         Add vpfd32, lpae and evtstrm.
37111         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
37112         Increase to 22.
37113
37114 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
37115
37116         * math/auto-libm-test-in: Add tests of clog10.
37117         * math/auto-libm-test-out: Regenerated.
37118         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
37119         * sysdeps/i386/fpu/libm-test-ulps: Update.
37120         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37121
37122 2014-02-18  Andreas Schwab  <schwab@suse.de>
37123
37124         [BZ #16574]
37125         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
37126         Store non-zero if the second buffer was newly allocated.
37127         (send_dg): Likewise.
37128         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
37129         to send_vc and send_dg.
37130         (res_nsend): Pass NULL for ansp2_malloced.
37131         * resolv/res_query.c (__libc_res_nquery): Add parameter
37132         answerp2_malloced and pass it down to __libc_res_nsend.
37133         (res_nquery): Pass additional NULL to __libc_res_nquery.
37134         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
37135         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
37136         second answer buffer if answerp2_malloced was set.
37137         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
37138         (__libc_res_nquerydomain): Add parameter
37139         answerp2_malloced and pass it down to __libc_res_nquery.
37140         (res_nquerydomain): Pass additional NULL to
37141         __libc_res_nquerydomain.
37142         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
37143         additional NULL to __libc_res_nsend and __libc_res_nquery.
37144         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
37145         additional NULL to __libc_res_nsearch.
37146         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
37147         parameter of __libc_res_nsearch to check for separately allocated
37148         second buffer.
37149         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
37150         __libc_res_nquery.
37151         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
37152         additional NULL to __libc_res_nquery.
37153         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
37154         __libc_res_nsearch.
37155         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
37156         * include/resolv.h: Update prototypes of __libc_res_nquery,
37157         __libc_res_nsearch, __libc_res_nsend.
37158
37159 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
37160
37161         * math/auto-libm-test-in: Add tests of fma.
37162         * math/auto-libm-test-out: Regenerated.
37163         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
37164         (fma_towardzero_test_data): Likewise.
37165         (fma_downward_test_data): Likewise.
37166         (fma_upward_test_data): Likewise.
37167         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
37168         mpc_mode.
37169         (rounding_modes): Add values for new field.
37170         (func_calc_method): Add value mpfr_fff_f.
37171         (func_calc_desc): Add mpfr_fff_f union field.
37172         (test_function): Add field exact_args.
37173         (FUNC): Add macro argument EXACT_ARGS.
37174         (FUNC_mpfr_f_f): Update call to FUNC.
37175         (FUNC_mpfr_f_f): Likewise.
37176         (FUNC_mpfr_ff_f): Likewise.
37177         (FUNC_mpfr_if_f): Likewise.
37178         (FUNC_mpc_c_f): Likewise.
37179         (FUNC_mpc_c_c): Likewise.
37180         (test_functions): Add fma.  Update calls to FUNC.
37181         (handle_input_arg): Add argument exact_args.
37182         (add_test): Update call to handle_input_arg.
37183         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
37184         (output_for_one_input_case): Update call to calc_generic_results.
37185         Recalculate exact zero results in each rounding mode.
37186
37187         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
37188         non-negative before setting low bit.
37189         * math/auto-libm-test-in: Mark one asin test possibly having
37190         spurious underflow.
37191         * math/auto-libm-test-out: Regenerated.
37192         * sysdeps/i386/fpu/libm-test-ulps: Update.
37193         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37194
37195 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
37196
37197         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
37198         * sysdeps/unix/sysv/linux/microblaze: Move directory from
37199         ports/sysdeps/unix/sysv/linux/microblaze.
37200         * README: Add missing listing for microblaze*-*-linux-gnu.
37201
37202 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
37203
37204         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
37205         duplicate code
37206
37207 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
37208
37209         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
37210         * sysdeps/unix/sysv/linux/ia64: Move directory from
37211         ports/sysdeps/unix/sysv/linux/ia64.
37212         * README: Update listing for ia64-*-linux-gnu.
37213
37214 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
37215             Joseph Myers  <joseph@codesourcery.com>
37216
37217         * Makeconfig (test-name): New variable.
37218         (evaluate-test): Likewise.
37219         * Makerules (do-test-clean): Remove .test-result files.
37220         (common-mostlyclean): Likewise.
37221         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
37222         * scripts/evaluate-test.sh: New file.
37223
37224 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
37225
37226         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
37227         separate $(objpfx)tst-fopenloc-cmp.out and
37228         $(objpfx)tst-fopenloc-mem.out targets.
37229         (tests): Update dependencies.
37230         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
37231         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
37232         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
37233         (tst-rxspencer-no-utf8-ARGS): New variable.
37234         (tst-rxspencer-no-utf8-ENV): Likewise.
37235         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
37236         instead of $(objpfx)tst-rxspencer-mem.
37237         ($(objpfx)tst-rxspencer-mem): Change target to
37238         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
37239         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
37240         * posix/tst-rxspencer-no-utf8.c: New file.
37241
37242         * elf/Makefile ($(objpfx)order.out): Remove rule.
37243         [$(run-built-tests) = yes] (tests): Depend on
37244         $(objpfx)order-cmp.out.
37245         ($(objpfx)order-cmp.out): New rule.
37246         [$(run-built-tests) = yes] (tests): Depend on
37247         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
37248         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
37249         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
37250         $(objpfx)tst-array5-static-cmp.out.
37251         ($(objpfx)tst-array1.out): Remove rule.
37252         ($(objpfx)tst-array1-cmp.out): New rule.
37253         ($(objpfx)tst-array1-static.out): Remove rule.
37254         ($(objpfx)tst-array1-static-cmp.out): New rule.
37255         ($(objpfx)tst-array2.out): Remove rule.
37256         ($(objpfx)tst-array2-cmp.out): New rule.
37257         ($(objpfx)tst-array3.out): Remove rule.
37258         ($(objpfx)tst-array3-cmp.out): New rule.
37259         ($(objpfx)tst-array4.out): Remove rule.
37260         ($(objpfx)tst-array4-cmp.out): New rule.
37261         ($(objpfx)tst-array5.out): Remove rule.
37262         ($(objpfx)tst-array5-cmp.out): New rule.
37263         ($(objpfx)tst-array5-static.out): Remove rule.
37264         ($(objpfx)tst-array5-static-cmp.out): New rule.
37265         [$(run-built-tests) = yes] (tests): Depend on
37266         $(objpfx)order2-cmp.out.
37267         ($(objpfx)order2.out): Remove rule.
37268         ($(objpfx)order2-cmp.out): New rule.
37269         ($(objpfx)tst-initorder.out): Remove rule.
37270         [$(run-built-tests) = yes] (tests): Depend on
37271         $(objpfx)tst-initorder-cmp.out.
37272         ($(objpfx)tst-initorder-cmp.out): New rule.
37273         ($(objpfx)tst-initorder2.out): Remove rule.
37274         [$(run-built-tests) = yes] (tests): Depend on
37275         $(objpfx)tst-initorder2-cmp.out.
37276         ($(objpfx)tst-initorder2-cmp.out): New rule.
37277         [$(run-built-tests) = yes] (tests): Depend on
37278         $(objpfx)tst-unused-dep-cmp.out.
37279         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
37280         ($(objpfx)tst-unused-dep-cmp.out): New rule.
37281         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
37282         on $(objpfx)tst-setvbuf1-cmp.out.
37283         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
37284         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
37285         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
37286         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
37287         ($(objpfx)tst-svc.out): Remove rule.
37288         ($(objpfx)tst-svc-cmp.out): New rule.
37289
37290 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
37291
37292         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
37293         * ctype/ctype.h [__USE_MISC]: Likewise.
37294         * dirent/dirent.h [__USE_MISC]: Likewise.
37295         * grp/grp.h [__USE_MISC]: Likewise.
37296         * io/fcntl.h [__USE_MISC]: Likewise.
37297         * io/sys/stat.h [__USE_MISC]: Likewise.
37298         * libio/stdio.h [__USE_MISC]: Likewise.
37299         * posix/unistd.h [__USE_MISC]: Likewise.
37300         * pwd/pwd.h [__USE_MISC]: Likewise.
37301         * stdlib.h [__USE_MISC]: Likewise.
37302         * string/bits/string2.h [__USE_MISC]: Likewise.
37303         * string/string.h [__USE_MISC]: Likewise.
37304         * time/time.h [__USE_MISC]: Likewise.
37305
37306 2014-02-13  Andreas Schwab  <schwab@suse.de>
37307
37308         [BZ #16574]
37309         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
37310         second answer buffer if it was separately allocated.
37311
37312 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
37313
37314         * sysdeps/mips/math-tests.h: Include <features.h>.
37315         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37316         (ROUNDING_TESTS_long_double): Do not define.
37317         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37318         (EXCEPTION_TESTS_long_double): Likewise.
37319         * sysdeps/mips/mips64/libm-test-ulps: Update.
37320
37321         * include/features.h (__USE_BSD): Remove macro definitions.
37322         (__USE_SVID): Likewise.
37323         (_BSD_SOURCE): Likewise.
37324         (_SVID_SOURCE): Likewise.
37325         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
37326         from definition of _DEFAULT_SOURCE.
37327         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
37328         [_DEFAULT_SOURCE].
37329         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
37330         * bits/mman.h [__USE_BSD]: Likewise.
37331         * bits/termios.h [__USE_BSD]: Likewise.
37332         * bits/waitstatus.h [__USE_BSD]: Likewise.
37333         * ctype/ctype.h [__USE_SVID]: Likewise.
37334         * dirent/dirent.h [__USE_BSD]: Likewise.
37335         * grp/grp.h [__USE_SVID]: Likewise.
37336         [__USE_BSD]: Likewise.
37337         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
37338         * io/fcntl.h [__USE_BSD]: Likewise.
37339         * io/ftw.h [__USE_BSD]: Likewise.
37340         * io/sys/stat.h [__USE_BSD]: Likewise.
37341         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
37342         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
37343         * libio/stdio.h [__USE_SVID]: Likewise.
37344         [__USE_BSD]: Likewise.
37345         * math/math.h [__USE_SVID]: Likewise.
37346         [__USE_BSD]: Likewise.
37347         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
37348         * misc/bits/syslog.h [__USE_BSD]: Likewise.
37349         * misc/search.h [__USE_SVID]: Likewise.
37350         * misc/sys/mman.h [__USE_BSD]: Likewise.
37351         * misc/sys/syslog.h [__USE_BSD]: Likewise.
37352         * misc/sys/uio.h [__USE_BSD]: Likewise.
37353         * posix/bits/unistd.h [__USE_BSD]: Likewise.
37354         * posix/glob.h [__USE_BSD]: Likewise.
37355         * posix/regex.h [__USE_BSD]: Likewise.
37356         * posix/sys/types.h [__USE_BSD]: Likewise.
37357         [__USE_SVID]: Likewise.
37358         * posix/sys/utsname.h [__USE_SVID]: Likewise.
37359         * posix/sys/wait.h [__USE_BSD]: Likewise.
37360         [__USE_SVID]: Likewise.
37361         * posix/unistd.h [__USE_BSD]: Likewise.
37362         [__USE_SVID]: Likewise.
37363         * pwd/pwd.h [__USE_SVID]: Likewise.
37364         * resolv/netdb.h [__USE_BSD]: Likewise.
37365         * setjmp/setjmp.h [__USE_BSD]: Likewise.
37366         * signal/signal.h [__USE_BSD]: Likewise.
37367         [__USE_SVID]: Likewise.
37368         * socket/sys/socket.h [__USE_BSD]: Likewise.
37369         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
37370         * stdlib/stdlib.h [__USE_BSD]: Likewise.
37371         [__USE_SVID]: Likewise.
37372         * string/bits/string2.h [__USE_BSD]: Likewise.
37373         [__USE_SVID]: Likewise.
37374         * string/bits/string3.h [__USE_BSD]: Likewise.
37375         * string/endian.h [__USE_BSD]: Likewise.
37376         * string/string.h [__USE_SVID]: Likewise.
37377         [__USE_BSD]: Likewise.
37378         * string/strings.h [__USE_BSD]: Likewise.
37379         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
37380         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
37381         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
37382         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
37383         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
37384         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
37385         Likewise.
37386         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
37387         Likewise.
37388         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
37389         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
37390         Likewise.
37391         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
37392         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
37393         Likewise.
37394         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
37395         Likewise.
37396         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
37397         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
37398         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
37399         Likewise.
37400         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
37401         Likewise.
37402         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
37403         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
37404         * termios/termios.h [__USE_BSD]: Likewise.
37405         * time/sys/time.h [__USE_BSD]: Likewise.
37406         * time/time.h [__USE_BSD]: Likewise.
37407         [__USE_SVID]: Likewise.
37408
37409         * Makefile (subdir_targets): Remove subdir_lint.out.
37410
37411         * stdio-common/Makefile (do-tst-unbputc): Remove target.
37412         (do-tst-printf): Likewise.
37413         (tests): Depend directly on $(objpfx)tst-unbputc.out and
37414         $(objpfx)tst-printf.out.
37415
37416         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
37417
37418         * Makerules (check-abi-%): Change target to
37419         $(objpfx)check-abi-%.out.
37420         (check-abi target): Update dependencies.
37421         (check-abi-pattern variable): Redirect output of diff to $@.
37422         (check-abi variable): Likewise.
37423         * elf/Makefile (check-abi): Update dependencies.
37424
37425         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
37426         unused.
37427         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
37428         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
37429         subnormal range.
37430         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
37431         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
37432         value has largest subnormal exponent.
37433         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
37434         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
37435         * sysdeps/aarch64/soft-fp/sfp-machine.h
37436         (_FP_TININESS_AFTER_ROUNDING): New macro.
37437         * sysdeps/alpha/soft-fp/sfp-machine.h
37438         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37439         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37440         Likewise.
37441         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
37442         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37443         * sysdeps/mips/soft-fp/sfp-machine.h
37444         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37445         * sysdeps/powerpc/soft-fp/sfp-machine.h
37446         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37447         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37448         Likewise.
37449         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
37450         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37451         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
37452         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37453         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37454         Likewise.
37455
37456 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
37457
37458         [BZ #16545]
37459         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
37460         model 1.
37461
37462 2014-02-12  Richard Henderson  <rth@redhat.com>
37463
37464         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
37465         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
37466         * sysdeps/unix/sysv/linux/alpha: Move directory from
37467         ports/sysdeps/unix/sysv/linux/alpha.
37468         * README: Update listing for alpha-*-linux-gnu.
37469
37470 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
37471
37472         * include/features.h: Update comment documenting feature test
37473         macros.
37474         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
37475         _DEFAULT_SOURCE.
37476         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
37477         (_SVID_SOURCE): Likewise.
37478         (_DEFAULT_SOURCE): Update description of default features.
37479         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
37480         with _GNU_SOURCE.
37481         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
37482         (S_ISVTX): Likewise.
37483         * manual/math.texi (Mathematical Constants): Likewise.
37484         * manual/signal.texi (Interrupted Primitives): Likewise.
37485         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
37486         * math/test-matherr.c (_SVID_SOURCE): Do not define.
37487         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
37488         Don't refer to _SVID_SOURCE in warning text.
37489
37490         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
37491
37492         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
37493         already defined.
37494         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
37495         * sysdeps/mips/dl-lookup.c: Remove.
37496         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
37497
37498 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
37499
37500         [BZ #16447]
37501         * math/auto-libm-test-in: Add testcase for expl.
37502         * math/auto-libm-test-out: Regenerate.
37503         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
37504         calculation of unsafe.
37505         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
37506
37507 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
37508
37509         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
37510         * sysdeps/unix/sysv/linux/aarch64: Move directory from
37511         ports/sysdeps/unix/sysv/linux/aarch64.
37512         * README: Update listing for aarch64*-*-linux-gnu.
37513
37514 2014-02-11  Will Newton  <will.newton@linaro.org>
37515
37516         * manual/probes.texi (Mathematical Function Probes): Use
37517         "triggered" instead of "hit".
37518
37519         * manual/probes.texi (Internal Probes): Add documentation
37520         of setjmp, longjmp and longjmp_target probes.
37521
37522         * include/stap-probe.h: Add comment about probe argument
37523         format.
37524
37525         * malloc/mtrace.c (attribute_hidden): Remove unused macro
37526         definition.  (tr_where, tr_freehook, tr_mallochook,
37527         tr_reallochook, tr_memalignhook): Use ANSI protoype.
37528
37529 2014-02-11  David S. Miller  <davem@davemloft.net>
37530
37531         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
37532         processing int_tests.
37533
37534 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
37535
37536         * sysdeps/mips: Move directory from ports/sysdeps/mips.
37537         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
37538         * sysdeps/unix/sysv/linux/mips: Move directory from
37539         ports/sysdeps/unix/sysv/linux/mips.
37540         * README: Update listing for mips-*-linux-gnu and
37541         mips64-*-linux-gnu.
37542
37543 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
37544
37545         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
37546         * sysdeps/unix/sysv/linux/m68k: Move directory from
37547         ports/sysdeps/unix/sysv/linux/m68k.
37548         * README: Update listing for m68k-*-linux-gnu.
37549
37550 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
37551
37552         * sysdeps/tile: Move directory from ports/sysdeps/tile.
37553         * sysdeps/unix/sysv/linux/generic: Move directory from
37554         ports/sysdeps/unix/sysv/linux/generic.
37555         * sysdeps/unix/sysv/linux/tile: Move directory from
37556         ports/sysdeps/unix/sysv/linux/tile.
37557         * README: Update listing for tile*-*-linux-gnu.
37558
37559 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
37560
37561         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
37562         __builtin_expect.
37563         * benchtests/bench-memmem.c (simple_memmem): Likewise.
37564         * catgets/open_catalog.c (__open_catalog): Likewise.
37565         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
37566         * debug/confstr_chk.c: Likewise.
37567         * debug/fread_chk.c (__fread_chk): Likewise.
37568         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
37569         * debug/getgroups_chk.c: Likewise.
37570         * debug/mbsnrtowcs_chk.c: Likewise.
37571         * debug/mbsrtowcs_chk.c: Likewise.
37572         * debug/mbstowcs_chk.c: Likewise.
37573         * debug/memcpy_chk.c: Likewise.
37574         * debug/memmove_chk.c: Likewise.
37575         * debug/mempcpy_chk.c: Likewise.
37576         * debug/memset_chk.c: Likewise.
37577         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
37578         * debug/strcat_chk.c (__strcat_chk): Likewise.
37579         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
37580         * debug/strncat_chk.c (__strncat_chk): Likewise.
37581         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
37582         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
37583         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
37584         * debug/wcpncpy_chk.c: Likewise.
37585         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
37586         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
37587         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
37588         * debug/wcsncpy_chk.c: Likewise.
37589         * debug/wcsnrtombs_chk.c: Likewise.
37590         * debug/wcsrtombs_chk.c: Likewise.
37591         * debug/wcstombs_chk.c: Likewise.
37592         * debug/wmemcpy_chk.c: Likewise.
37593         * debug/wmemmove_chk.c: Likewise.
37594         * debug/wmempcpy_chk.c: Likewise.
37595         * debug/wmemset_chk.c: Likewise.
37596         * dirent/scandirat.c (SCANDIRAT): Likewise.
37597         * dlfcn/dladdr1.c (dladdr1): Likewise.
37598         * dlfcn/dladdr.c (dladdr): Likewise.
37599         * dlfcn/dlclose.c (dlclose_doit): Likewise.
37600         * dlfcn/dlerror.c (__dlerror): Likewise.
37601         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
37602         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
37603         * dlfcn/dlopen.c (dlopen_doit): Likewise.
37604         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
37605         * dlfcn/dlsym.c (dlsym_doit): Likewise.
37606         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
37607         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
37608         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
37609         Likewise.
37610         * elf/dl-conflict.c: Likewise.
37611         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
37612         * elf/dl-dst.h: Likewise.
37613         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
37614         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
37615         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
37616         * elf/dl-init.c (call_init, _dl_init): Likewise.
37617         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
37618         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
37619         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
37620         Likewise.
37621         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
37622         Likewise.
37623         * elf/dl-minimal.c (__libc_memalign): Likewise.
37624         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
37625         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
37626         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
37627         * elf/dl-sym.c (do_sym): Likewise.
37628         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
37629         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
37630         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
37631         * elf/dl-writev.h (_dl_writev): Likewise.
37632         * elf/ldconfig.c (search_dir): Likewise.
37633         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
37634         (dl_main): Likewise.
37635         * elf/setup-vdso.h (setup_vdso): Likewise.
37636         * grp/compat-initgroups.c (compat_call): Likewise.
37637         * grp/fgetgrent.c (fgetgrent): Likewise.
37638         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
37639         * grp/putgrent.c (putgrent): Likewise.
37640         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
37641         Likewise.
37642         * hurd/hurdinit.c: Likewise.
37643         * iconvdata/8bit-gap.c (struct): Likewise.
37644         * iconvdata/ansi_x3.110.c : Likewise.
37645         * iconvdata/big5.c : Likewise.
37646         * iconvdata/big5hkscs.c : Likewise.
37647         * iconvdata/cp1255.c: Likewise.
37648         * iconvdata/cp1258.c : Likewise.
37649         * iconvdata/cp932.c : Likewise.
37650         * iconvdata/euc-cn.c: Likewise.
37651         * iconvdata/euc-jisx0213.c : Likewise.
37652         * iconvdata/euc-jp.c: Likewise.
37653         * iconvdata/euc-jp-ms.c : Likewise.
37654         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
37655         * iconvdata/gb18030.c : Likewise.
37656         * iconvdata/gbbig5.c (const): Likewise.
37657         * iconvdata/gbgbk.c: Likewise.
37658         * iconvdata/gbk.c : Likewise.
37659         * iconvdata/ibm1364.c : Likewise.
37660         * iconvdata/ibm930.c : Likewise.
37661         * iconvdata/ibm932.c: Likewise.
37662         * iconvdata/ibm933.c : Likewise.
37663         * iconvdata/ibm935.c : Likewise.
37664         * iconvdata/ibm937.c : Likewise.
37665         * iconvdata/ibm939.c : Likewise.
37666         * iconvdata/ibm943.c: Likewise.
37667         * iconvdata/iso_11548-1.c: Likewise.
37668         * iconvdata/iso-2022-cn.c : Likewise.
37669         * iconvdata/iso-2022-cn-ext.c : Likewise.
37670         * iconvdata/iso-2022-jp-3.c: Likewise.
37671         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
37672         * iconvdata/iso-2022-kr.c : Likewise.
37673         * iconvdata/iso646.c (gconv_end): Likewise.
37674         * iconvdata/iso_6937-2.c : Likewise.
37675         * iconvdata/iso_6937.c : Likewise.
37676         * iconvdata/iso8859-1.c: Likewise.
37677         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
37678         * iconvdata/shift_jisx0213.c : Likewise.
37679         * iconvdata/sjis.c : Likewise.
37680         * iconvdata/t.61.c : Likewise.
37681         * iconvdata/tcvn5712-1.c : Likewise.
37682         * iconvdata/tscii.c: Likewise.
37683         * iconvdata/uhc.c : Likewise.
37684         * iconvdata/unicode.c (gconv_end): Likewise.
37685         * iconvdata/utf-16.c (gconv_end): Likewise.
37686         * iconvdata/utf-32.c (gconv_end): Likewise.
37687         * iconvdata/utf-7.c (base64): Likewise.
37688         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
37689         * iconv/gconv_close.c (__gconv_close): Likewise.
37690         * iconv/gconv_open.c (__gconv_open): Likewise.
37691         * iconv/gconv_simple.c (internal_ucs4_loop_single)
37692         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
37693         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
37694         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
37695         (ucs4le_internal_loop_single): Likewise.
37696         * iconv/iconv.c (iconv): Likewise.
37697         * iconv/iconv_close.c: Likewise.
37698         * iconv/loop.c (SINGLE): Likewise.
37699         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
37700         * include/atomic.h: Likewise.
37701         * inet/inet6_option.c (option_alloc): Likewise.
37702         * intl/bindtextdom.c (set_binding_values): Likewise.
37703         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
37704         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
37705         * intl/localealias.c (read_alias_file): Likewise.
37706         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
37707         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
37708         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
37709         * libio/fmemopen.c (fmemopen): Likewise.
37710         * libio/iofgets.c (_IO_fgets): Likewise.
37711         * libio/iofgets_u.c (fgets_unlocked): Likewise.
37712         * libio/iofgetws.c (fgetws): Likewise.
37713         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
37714         * libio/iogetdelim.c (_IO_getdelim): Likewise.
37715         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
37716         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
37717         * locale/findlocale.c (_nl_find_locale): Likewise.
37718         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
37719         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
37720         Likewise.
37721         * locale/setlocale.c (setlocale): Likewise.
37722         * login/programs/pt_chown.c (main): Likewise.
37723         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
37724         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
37725         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
37726         (mmap, mmap64, mremap, munmap): Likewise.
37727         * math/e_exp2l.c: Likewise.
37728         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
37729         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
37730         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
37731         * math/s_catan.c (__catan): Likewise.
37732         * math/s_catanf.c (__catanf): Likewise.
37733         * math/s_catanh.c (__catanh): Likewise.
37734         * math/s_catanhf.c (__catanhf): Likewise.
37735         * math/s_catanhl.c (__catanhl): Likewise.
37736         * math/s_catanl.c (__catanl): Likewise.
37737         * math/s_ccosh.c (__ccosh): Likewise.
37738         * math/s_ccoshf.c (__ccoshf): Likewise.
37739         * math/s_ccoshl.c (__ccoshl): Likewise.
37740         * math/s_cexp.c (__cexp): Likewise.
37741         * math/s_cexpf.c (__cexpf): Likewise.
37742         * math/s_cexpl.c (__cexpl): Likewise.
37743         * math/s_clog10.c (__clog10): Likewise.
37744         * math/s_clog10f.c (__clog10f): Likewise.
37745         * math/s_clog10l.c (__clog10l): Likewise.
37746         * math/s_clog.c (__clog): Likewise.
37747         * math/s_clogf.c (__clogf): Likewise.
37748         * math/s_clogl.c (__clogl): Likewise.
37749         * math/s_csin.c (__csin): Likewise.
37750         * math/s_csinf.c (__csinf): Likewise.
37751         * math/s_csinh.c (__csinh): Likewise.
37752         * math/s_csinhf.c (__csinhf): Likewise.
37753         * math/s_csinhl.c (__csinhl): Likewise.
37754         * math/s_csinl.c (__csinl): Likewise.
37755         * math/s_csqrt.c (__csqrt): Likewise.
37756         * math/s_csqrtf.c (__csqrtf): Likewise.
37757         * math/s_csqrtl.c (__csqrtl): Likewise.
37758         * math/s_ctan.c (__ctan): Likewise.
37759         * math/s_ctanf.c (__ctanf): Likewise.
37760         * math/s_ctanh.c (__ctanh): Likewise.
37761         * math/s_ctanhf.c (__ctanhf): Likewise.
37762         * math/s_ctanhl.c (__ctanhl): Likewise.
37763         * math/s_ctanl.c (__ctanl): Likewise.
37764         * math/w_pow.c: Likewise.
37765         * math/w_powf.c: Likewise.
37766         * math/w_powl.c: Likewise.
37767         * math/w_scalb.c (sysv_scalb): Likewise.
37768         * math/w_scalbf.c (sysv_scalbf): Likewise.
37769         * math/w_scalbl.c (sysv_scalbl): Likewise.
37770         * misc/error.c (error_tail): Likewise.
37771         * misc/pselect.c (__pselect): Likewise.
37772         * nis/nis_callback.c (__nis_create_callback): Likewise.
37773         * nis/nis_call.c (__nisfind_server): Likewise.
37774         * nis/nis_creategroup.c (nis_creategroup): Likewise.
37775         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
37776         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
37777         * nis/nis_getservlist.c (nis_getservlist): Likewise.
37778         * nis/nis_lookup.c (nis_lookup): Likewise.
37779         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
37780         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
37781         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
37782         * nis/nis_xdr.c (xdr_endpoint): Likewise.
37783         * nis/nss_compat/compat-grp.c (getgrent_next_file)
37784         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
37785         * nis/nss_compat/compat-initgroups.c (add_group)
37786         (internal_getgrent_r): Likewise.
37787         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
37788         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
37789         * nis/nss_compat/compat-spwd.c (getspent_next_file)
37790         (internal_getspnam_r): Likewise.
37791         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
37792         (_nss_nis_getaliasbyname_r): Likewise.
37793         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
37794         (_nss_nis_getntohost_r): Likewise.
37795         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
37796         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
37797         (_nss_nis_getgrgid_r): Likewise.
37798         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
37799         (internal_nis_gethostent_r, internal_gethostbyname2_r)
37800         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
37801         (_nss_nis_gethostbyname4_r): Likewise.
37802         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
37803         (initgroups_netid): Likewise.
37804         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
37805         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
37806         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
37807         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
37808         (_nss_nis_getprotobynumber_r): Likewise.
37809         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
37810         (_nss_nis_getsecretkey): Likewise.
37811         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
37812         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
37813         (_nss_nis_getpwuid_r): Likewise.
37814         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
37815         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
37816         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
37817         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
37818         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
37819         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
37820         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
37821         Likewise.
37822         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
37823         (_nss_nisplus_getntohost_r): Likewise.
37824         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
37825         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
37826         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
37827         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
37828         Likewise.
37829         * nis/nss_nisplus/nisplus-initgroups.c
37830         (_nss_nisplus_initgroups_dyn): Likewise.
37831         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
37832         (_nss_nisplus_getnetbyaddr_r): Likewise.
37833         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
37834         (_nss_nisplus_getprotobynumber_r): Likewise.
37835         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
37836         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
37837         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
37838         Likewise.
37839         * nis/nss_nisplus/nisplus-service.c
37840         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
37841         (_nss_nisplus_getservbyport_r): Likewise.
37842         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
37843         (_nss_nisplus_getspnam_r): Likewise.
37844         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
37845         Likewise.
37846         * nscd/aicache.c (addhstaiX): Likewise.
37847         * nscd/cache.c (cache_search, prune_cache): Likewise.
37848         * nscd/connections.c (register_traced_file, send_ro_fd)
37849         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
37850         (main_loop_epoll): Likewise.
37851         * nscd/grpcache.c (addgrbyX): Likewise.
37852         * nscd/hstcache.c (addhstbyX): Likewise.
37853         * nscd/initgrcache.c (addinitgroupsX): Likewise.
37854         * nscd/mem.c (gc, mempool_alloc): Likewise.
37855         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
37856         (addinnetgrX): Likewise.
37857         * nscd/nscd-client.h (__nscd_acquire_maplock)
37858         (__nscd_drop_map_ref): Likewise.
37859         * nscd/nscd_getai.c (__nscd_getai): Likewise.
37860         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
37861         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
37862         Likewise.
37863         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
37864         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
37865         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
37866         (__nscd_get_map_ref): Likewise.
37867         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
37868         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
37869         Likewise.
37870         * nscd/pwdcache.c (addpwbyX): Likewise.
37871         * nscd/selinux.c (preserve_capabilities): Likewise.
37872         * nscd/servicescache.c (addservbyX): Likewise.
37873         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
37874         * posix/fnmatch.c (fnmatch): Likewise.
37875         * posix/getopt.c (_getopt_internal_r): Likewise.
37876         * posix/glob.c (glob, glob_in_dir): Likewise.
37877         * posix/wordexp.c (exec_comm_child): Likewise.
37878         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
37879         (getanswer_r, gaih_getanswer_slice): Likewise.
37880         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
37881         * resolv/res_init.c: Likewise.
37882         * resolv/res_mkquery.c (res_nmkquery): Likewise.
37883         * resolv/res_query.c (__libc_res_nquery): Likewise.
37884         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
37885         Likewise.
37886         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
37887         * stdio-common/perror.c (perror): Likewise.
37888         * stdio-common/printf_fp.c (___printf_fp): Likewise.
37889         * stdio-common/tmpnam.c (tmpnam): Likewise.
37890         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
37891         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
37892         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
37893         Likewise.
37894         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
37895         * stdlib/putenv.c (putenv): Likewise.
37896         * stdlib/setenv.c (__add_to_environ): Likewise.
37897         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
37898         * stdlib/strtol_l.c (INTERNAL): Likewise.
37899         * string/memmem.c (memmem): Likewise.
37900         * string/strerror.c (strerror): Likewise.
37901         * string/strnlen.c (__strnlen): Likewise.
37902         * string/test-memmem.c (simple_memmem): Likewise.
37903         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
37904         * sunrpc/pm_getport.c (__get_socket): Likewise.
37905         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
37906         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
37907         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
37908         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
37909         Likewise.
37910         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
37911         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
37912         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
37913         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
37914         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
37915         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
37916         Likewise.
37917         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
37918         Likewise.
37919         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
37920         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
37921         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
37922         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
37923         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
37924         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
37925         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
37926         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
37927         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
37928         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
37929         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
37930         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
37931         Likewise.
37932         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
37933         Likewise.
37934         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
37935         Likewise.
37936         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
37937         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
37938         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
37939         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
37940         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
37941         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
37942         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
37943         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
37944         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
37945         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
37946         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
37947         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
37948         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
37949         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
37950         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
37951         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
37952         Likewise.
37953         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
37954         Likewise.
37955         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
37956         Likewise.
37957         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
37958         Likewise.
37959         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
37960         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
37961         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
37962         Likewise.
37963         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
37964         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
37965         * sysdeps/posix/opendir.c (__opendirat): Likewise.
37966         * sysdeps/posix/sleep.c: Likewise.
37967         * sysdeps/posix/tempname.c: Likewise.
37968         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
37969         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
37970         Likewise.
37971         * sysdeps/powerpc/powerpc32/dl-machine.h
37972         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
37973         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
37974         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
37975         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
37976         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
37977         Likewise.
37978         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
37979         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
37980         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
37981         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
37982         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
37983         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
37984         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
37985         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
37986         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
37987         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
37988         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
37989         (elf_machine_lazy_rel): Likewise.
37990         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
37991         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
37992         (elf_machine_lazy_rel): Likewise.
37993         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
37994         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
37995         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
37996         * sysdeps/unix/grantpt.c (grantpt): Likewise.
37997         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
37998         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
37999         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
38000         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
38001         Likewise.
38002         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
38003         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
38004         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
38005         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
38006         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
38007         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
38008         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
38009         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
38010         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
38011         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
38012         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
38013         Likewise.
38014         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
38015         (__posix_fallocate64_l64): Likewise.
38016         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
38017         (posix_fallocate): Likewise.
38018         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
38019         Likewise.
38020         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38021         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
38022         (getifaddrs_internal): Likewise.
38023         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
38024         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
38025         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
38026         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
38027         * sysdeps/unix/sysv/linux/posix_fallocate64.c
38028         (__posix_fallocate64_l64): Likewise.
38029         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
38030         Likewise.
38031         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
38032         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
38033         (__get_clockfreq): Likewise.
38034         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
38035         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
38036         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
38037         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
38038         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
38039         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
38040         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
38041         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
38042         Likewise.
38043         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
38044         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
38045         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
38046         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
38047         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
38048         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
38049         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
38050         Likewise.
38051         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
38052         (posix_fallocate): Likewise.
38053         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
38054         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
38055         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
38056         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
38057         (elf_machine_rela, elf_machine_rela_relative)
38058         (elf_machine_lazy_rel): Likewise.
38059         * time/asctime.c (asctime_internal): Likewise.
38060         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
38061         * time/tzset.c (__tzset_parse_tz): Likewise.
38062         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
38063         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
38064         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
38065         * wcsmbs/wcsmbsload.h: Likewise.
38066
38067         [BZ #15894]
38068         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
38069
38070         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
38071         (arena_get2): Remove THREAD_STATS conditionals.
38072         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
38073         (__malloc_stats, int): Likewise.
38074
38075 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
38076
38077         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
38078         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
38079
38080         * manual/setjmp.texi: Fix typos/grammar errors.
38081
38082         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
38083         Only return early when n is <= 0.  Delete unused return statement.
38084
38085         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
38086         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
38087         * debug/tst-longjmp_chk3.c: New file.
38088
38089         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
38090         (test_main): Replace code with set_fortify_handler call.
38091         * debug/test-strcpy_chk.c: Likewise.
38092         * debug/tst-chk1.c: Likewise.
38093         * debug/tst-longjmp_chk.c: Likewise.
38094         * test-skeleton.c: Include fcntl.h & paths.h
38095         (set_fortify_handler): Define.
38096
38097         * debug/tst-longjmp_chk.c: Add header comment and include
38098         ../test-skeleton.c.
38099         (do_test): Mark static.
38100         (TEST_FUNCTION): Define.
38101
38102         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
38103         (IP_PMTUDISC_INTERFACE): Likewise.
38104         (IP_MULTICAST_IF): Likewise.
38105         (IP_MULTICAST_TTL): Likewise.
38106         (IP_MULTICAST_LOOP): Likewise.
38107         (IP_ADD_MEMBERSHIP): Likewise.
38108         (IP_DROP_MEMBERSHIP): Likewise.
38109         (IP_UNBLOCK_SOURCE): Likewise.
38110         (IP_BLOCK_SOURCE): Likewise.
38111         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
38112         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
38113         (IP_MSFILTER): Likewise.
38114         (MCAST_JOIN_GROUP): Likewise.
38115         (MCAST_BLOCK_SOURCE): Likewise.
38116         (MCAST_UNBLOCK_SOURCE): Likewise.
38117         (MCAST_LEAVE_GROUP): Likewise.
38118         (MCAST_JOIN_SOURCE_GROUP): Likewise.
38119         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
38120         (MCAST_MSFILTER): Likewise.
38121         (IP_MULTICAST_ALL): Likewise.
38122         (IP_UNICAST_IF): Likewise.
38123
38124         * timezone/Makefile: Delete $(have-ksh) check.
38125         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
38126         * timezone/tzselect.ksh: Add +x mode bits.
38127
38128         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
38129         (ANON_INODE_FS_MAGIC): Likewise.
38130         (BDEVFS_MAGIC): Likewise.
38131         (BINFMTFS_MAGIC): Likewise.
38132         (BTRFS_TEST_MAGIC): Likewise.
38133         (CRAMFS_MAGIC_WEND): Likewise.
38134         (DEBUGFS_MAGIC): Likewise.
38135         (ECRYPTFS_SUPER_MAGIC): Likewise.
38136         (EXT3_SUPER_MAGIC): Likewise.
38137         (EXT4_SUPER_MAGIC): Likewise.
38138         (FUTEXFS_SUPER_MAGIC): Likewise.
38139         (HOSTFS_SUPER_MAGIC): Likewise.
38140         (HUGETLBFS_MAGIC): Likewise.
38141         (MINIX3_SUPER_MAGIC): Likewise.
38142         (MTD_INODE_FS_MAGIC): Likewise.
38143         (NILFS_SUPER_MAGIC): Likewise.
38144         (OPENPROM_SUPER_MAGIC): Likewise.
38145         (PIPEFS_MAGIC): Likewise.
38146         (PSTOREFS_MAGIC): Likewise.
38147         (QNX6_SUPER_MAGIC): Likewise.
38148         (RAMFS_MAGIC): Likewise.
38149         (REISERFS_SUPER_MAGIC_STRING): Likewise.
38150         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
38151         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
38152         (SECURITYFS_MAGIC): Likewise.
38153         (SELINUX_MAGIC): Likewise.
38154         (SMACK_MAGIC): Likewise.
38155         (SOCKFS_MAGIC): Likewise.
38156         (SQUASHFS_MAGIC): Likewise.
38157         (STACK_END_MAGIC): Likewise.
38158         (TMPFS_MAGIC): Likewise.
38159         (USBDEVICE_SUPER_MAGIC): Likewise.
38160         (V9FS_MAGIC): Likewise.
38161         (XENFS_SUPER_MAGIC): Likewise.
38162         (CRAMFS_MAGIC): Fix typo in comment.
38163         (EXT2_SUPER_MAGIC): Update comment.
38164         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
38165
38166 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
38167
38168         * sysdeps/arm: Move directory from ports/sysdeps/arm.
38169         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
38170         * sysdeps/unix/sysv/linux/arm: Move directory from
38171         ports/sysdeps/unix/sysv/linux/arm.
38172         * README: Update listing for arm-*-linux-gnueabi.
38173
38174         * README: Remove mention of am33.
38175
38176 2014-02-07  Roland McGrath  <roland@hack.frob.com>
38177
38178         * bits/sigset.h (__sigemptyset): Use a statement expression rather
38179         than the comma operator, to avoid "rhs of comma has no effect"
38180         compiler warnings.
38181         (__sigfillset, __sigandset, __sigorset): Likewise.
38182         * include/signal.h (__sigemptyset): Likewise.
38183         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
38184
38185 2014-02-07  Allan McRae  <allan@archlinux.org>
38186
38187         * version.h (RELEASE): Set to "development".
38188         (VERSION): Set to "2.19.90"
38189         * NEWS: Add 2.20 section.
38190
38191 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
38192
38193         [BZ #16529]
38194         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
38195
38196 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
38197
38198         * manual/contrib.texi: Update entry for Carlos O'Donell,
38199         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
38200
38201 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
38202
38203         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
38204
38205         * sysdeps/unix/sysv/linux/kernel-features.h
38206         [__LINUX_KERNEL_VERSION >= 0x020621]
38207         (__ASSUME_PROC_PID_TASK_COMM): Define.
38208
38209 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
38210
38211         [BZ #16398]
38212         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
38213         conversion when destination buffer does not have enough space.
38214         * libio/tst-ftell-partial-wide.c: New test case.
38215         * libio/Makefile (tests): Add tst-ftell-partial-wide.
38216
38217         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
38218         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
38219         Leonard and Allan McRae.
38220
38221 2014-02-04  David S. Miller  <davem@davemloft.net>
38222
38223         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
38224         32-bit.
38225
38226 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38227
38228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
38229         New file
38230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
38231         New file
38232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
38233         New file.
38234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
38235         New file.
38236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
38237         New file.
38238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
38239         New file.
38240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
38241         New file.
38242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
38243         New file.
38244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
38245         New file.
38246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
38247         New file.
38248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
38249         New file.
38250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
38251         New file.
38252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
38253         New file.
38254
38255 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38256
38257         * nptl/shlib-versions: Change powerpc*le start to 2.17.
38258         * shlib-versions: Likewise.
38259
38260 2014-02-04  Roland McGrath  <roland@hack.frob.com>
38261             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38262
38263         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
38264         (abilist-pattern): New variable, set to %-le.abilist.
38265
38266         * Makerules (abilist-pattern): New variable.
38267         (vpath): Use $(abilist-pattern) in place of %.abilist.
38268         (check-abi-% pattern rule): Likewise.
38269         (check-abi, update-abi): Likewise.
38270
38271 2014-02-04  Eric Wong  <normalperson@yhbt.net>
38272
38273         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38274
38275 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
38276
38277         * manual/startup.texi: Add next, previous, and top entries for
38278         the `Program Arguments' and `Environment Variables' nodes.
38279
38280 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
38281
38282         * manual/macros.texi: Add comments before MTASC-safety macros.
38283
38284         * manual/users.texi: Document MTASC-safety properties.
38285
38286         * manual/threads.texi (pthread_key_create, pthread_key_delete)
38287         (pthread_getspecific, pthread_setspecific): Format with
38288         @deftypefun, and add @safety note.
38289         * manual/signal.texi: Move comments that analyze the above
38290         functions to their home place.
38291
38292 2014-02-03  Allan McRae  <allan@archlinux.org>
38293
38294         * po/sl.po: Update Slovenian translation from translation project.
38295
38296 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
38297
38298         * manual/time.texi (timegm): Add missing blank after @c.
38299         Reported by Joseph Myers <joseph@codesourcery.com>.
38300
38301 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
38302
38303         * manual/check-safety.sh: New.
38304         * manual/Makefile ($(objpfx)stamp-summary): Run it.
38305
38306         * manual/terminal.texi: Document MTASC-safety properties.
38307
38308         * manual/filesys.texi: Document MTASC-safety properties.
38309
38310         * manual/errno.texi: Document MTASC-safety properties.
38311
38312         * manual/intro.texi: Document safety identifiers and
38313         conditionals.
38314
38315         * manual/string.texi (wcstok): Fix prototype.
38316         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
38317
38318         * manual/time.texi: Document MTASC-safety properties.
38319
38320         * manual/string.texi: Document MTASC-safety properties.
38321
38322         * manual/threads.texi: Document MTASC-safety properties.
38323
38324         * manual/stdio.texi: Document MTASC-safety properties.
38325
38326         * manual/syslog.texi: Document MTASC-safety properties.
38327
38328         * manual/sysinfo.texi: Document MTASC-safety properties.
38329
38330         * manual/startup.texi: Document MTASC-safety properties.
38331
38332         * manual/socket.texi: Document MTASC-safety properties.
38333
38334         * manual/signal.texi: Document MTASC-safety properties.
38335
38336 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
38337
38338         * manual/setjmp.texi: Document MTASC-safety properties.
38339
38340         * manual/search.texi: Document MTASC-safety properties.
38341
38342         * manual/resource.texi: Document MTASC-safety properties.
38343
38344         * manual/process.texi: Document MTASC-safety properties.
38345
38346         * manual/platform.texi: Document MTASC-safety properties.
38347
38348         * manual/pipe.texi: Document MTASC-safety properties.
38349
38350         * manual/pattern.texi: Document MTASC-safety properties.
38351
38352         * manual/message.texi: Document MTASC-safety properties.
38353
38354         [BZ #12751]
38355         * manual/memory.texi: Document MTASC-safety properties.
38356
38357         * manual/math.texi: Document MTASC-safety properties.
38358
38359         * manual/locale.texi: Document MTASC-safety properties.
38360
38361         * manual/llio.texi: Document MTASC-safety properties.
38362
38363         * manual/libdl.texi: New.
38364
38365         * manual/lang.texi: Document MTASC-safety properties.
38366
38367         * manual/job.texi: Document MTASC-safety properties.
38368
38369         * manual/getopt.texi: Document MTASC-safety properties.
38370
38371         * manual/ctype.texi: Document MTASC-safety properties.
38372
38373 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
38374
38375         [BZ #16046]
38376         * csu/libc-tls.c (static_map): Remove variable.
38377         (__libc_setup_tls): Use main executable's link map for TLS data.
38378         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
38379         casing for LM_ID_BASE and GL(dl_nns).
38380         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
38381         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
38382         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
38383         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
38384         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
38385         member.
38386         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
38387         l_phnum members.
38388
38389 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
38390
38391         * manual/debug.texi: Document MTASC-safety properties.
38392
38393 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
38394
38395         [BZ #16510]
38396         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
38397         of __x86_64__ when disabling x87 inline functions.
38398
38399 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
38400
38401         * manual/charset.texi: Document MTASC-safety properties.
38402
38403         * manual/crypt.texi: Document MTASC-safety properties.
38404
38405         * manual/conf.texi: Document MTASC-safety properties.
38406
38407         * manual/arith.texi: Document MTASC-safety properties.
38408
38409         * manual/argp.texi: Document MTASC-safety properties.
38410
38411         * manual/macros.texi: Introduce macros to document multi
38412         thread, asynchronous signal and asynchronous cancellation
38413         safety properties.
38414         * manual/intro.texi: Introduce the properties themselves.
38415
38416 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38417
38418         * sysdeps/sh/sh4/Makefile: New file.
38419
38420 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
38421
38422         * math/gen-libm-test.pl ($srcdir): New variable.
38423         ($auto_input): Use it.
38424
38425 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38426
38427         [BZ #16506]
38428         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
38429         access beyond array bounds when parsing netgroups file.
38430
38431         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
38432         the old buffer before realloc.
38433
38434 2014-01-27  Allan McRae  <allan@archlinux.org>
38435
38436         * po/fr.po: Update French translation from translation project.
38437
38438 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38439
38440         * sysdeps/sh/libm-test-ulps: Regenerate.
38441
38442 2014-01-24  David S. Miller  <davem@davemloft.net>
38443
38444         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
38445
38446 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38447
38448         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
38449         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
38450
38451 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
38452
38453         [BZ #16474]
38454         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
38455         string pointers after reallocation.
38456
38457 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38458
38459         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
38460         __SH4A__ instead of __SH_FPU_ANY__.
38461
38462 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38463
38464         * sysdeps/sh/fpu_control.h: New file.
38465         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
38466         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
38467         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
38468         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
38469         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
38470         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
38471         * sysdeps/sh/sys/ucontext.h: Remove.
38472         * sysdeps/sh/sys: Remove directory.
38473
38474 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38475
38476         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
38477         s390/sys/ucontext.h.
38478         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
38479         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
38480
38481 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
38482
38483         [BZ #15605]
38484         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
38485
38486 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38487
38488         [BZ#16431]
38489         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
38490         Adjust the vDSO correctly for internal calls.
38491         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
38492
38493 2014-01-20  Allan McRae  <allan@archlinux.org>
38494
38495         * po/ca.po: Update Catalan translation from translation project.
38496
38497 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
38498
38499         * sysdeps/s390/sotruss-lib.c: New file.
38500
38501 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38502
38503         [BZ#16430]
38504         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
38505         (__GI___gettimeofday): Alias for a different internal symbol to avoid
38506         local calls issues by not having a PLT stub required for IFUNC calls.
38507         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
38508
38509 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
38510
38511         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
38512         * math/test-fpucw-static.c: Likewise.
38513
38514 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
38515
38516         [BZ #16453]
38517         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
38518
38519 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38520
38521         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
38522         implementation for powerpc.
38523
38524 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
38525
38526         [BZ #14782]
38527         * sysdeps/posix/system.c (__libc_system): Do not enable
38528         asynchronous cancellation.
38529
38530 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38531
38532         [BZ #16427]
38533         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
38534         handling only for numbers special also in the IEEE case.
38535
38536 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38537
38538         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
38539
38540 2014-01-11  Allan McRae  <allan@archlinux.org>
38541
38542         * po/bg.po: Update Bulgarian translation from translation project.
38543
38544         * po/de.po: Update German translation from translation project.
38545
38546 2014-01-10  Roland McGrath  <roland@hack.frob.com>
38547
38548         * sysdeps/generic/gcc-compat.h: New file.
38549
38550 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
38551
38552         * benchtests/asin-inputs: Correct slow inputs.
38553         * benchtests/acos-inputs: Likewise.
38554
38555 2014-01-10  Allan McRae  <allan@archlinux.org>
38556
38557         * po:sv.po: Update Swedish translation from translation project.
38558
38559         * po/vi.po: Update Vietnamese translation from translation project.
38560
38561         * po/eo.po: Update Esperanto translation from translation project.
38562
38563         * po/cs.po: Update Czech translation from translation project.
38564
38565         * po/nl.po: Update Dutch translation from translation project.
38566
38567         * po/pl.po: Update Polish translation from translation project.
38568
38569         * po/ru.po: Update Russian translation from translation project.
38570
38571         * po/uk.po: Update Ukrainian translation from translation project.
38572
38573 2014-01-08  Brooks Moses  <bmoses@google.com>
38574
38575         * elf/dl-load.c: Fix comment typo.
38576
38577 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
38578
38579         * po/header.pot: Rename to...
38580         * po/pot.header: ... this.
38581         * po/Makefile: Use pot.header.
38582
38583 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
38584             Maxim Kuvyrkov  <maxim@kugelworks.com>
38585
38586         [BZ #16394]
38587         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
38588         SRC and DEST against LEN.
38589
38590 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38591
38592         [BZ #16414]
38593         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
38594         implementation.
38595         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
38596
38597 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38598
38599         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38600
38601 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
38602
38603         [BZ #16408]
38604         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
38605         for large positive arguments.
38606
38607 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
38608
38609         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
38610
38611         * math/auto-libm-test-in: Mark various tests with
38612         xfail-rounding:ldbl-128ibm.
38613         * math/auto-libm-test-out: Regenerated.
38614
38615         [BZ #16407]
38616         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
38617         Increase overflow threshold.
38618
38619 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
38620
38621         [BZ #14286]
38622         * stdio-common/vfprintf.c: Check for integer overflow.
38623
38624 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38625
38626         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
38627         the first argument and return value of __tls_get_addr_internal.
38628
38629 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38630
38631         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
38632         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
38633
38634 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38635
38636         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
38637         * sysdeps/s390/rtld-global-offsets.sym: New file.
38638         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
38639         GLIBC_2.19 symbol.
38640         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
38641         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
38642         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
38643         ... this.
38644         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
38645         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
38646         ... this.
38647         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38648         Regenerate.
38649         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38650         Regenerate.
38651         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
38652         halfs of GPRs for high_gprs contexts.
38653         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
38654         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
38655         field.
38656         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
38657         uc_flags field.
38658         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
38659         64 bit versions:
38660         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
38661         for high GPRs (uc_high_gprs) and for future extensions
38662         (__reserved).
38663         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
38664         for future extensions (__reserved).
38665         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
38666         64 bit versions:
38667         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
38668         SC_HIGHGPRS offset definition.
38669         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
38670         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
38671
38672         * Versions.def: Add GLIBC_2.19 for libpthread.
38673         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
38674         siglongjmp for libpthread with GLIBC_2.19 symver.
38675         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
38676         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
38677         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
38678         * sysdeps/s390/__longjmp.c: New file.
38679         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
38680         * sysdeps/s390/longjmp.c: New file.
38681         * sysdeps/s390/setjmp.S: New file.
38682         * sysdeps/s390/sigjmp.S: New file.
38683         * sysdeps/s390/v1-longjmp.c: New file.
38684         * sysdeps/s390/v1-setjmp.h: New file.
38685         * sysdeps/s390/v1-sigjmp.c: New file.
38686         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
38687         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
38688         GLIBC_2.19 version.
38689         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
38690         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
38691         versioned symbols for ____longjmp_chk.
38692         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
38693         Likewise.
38694         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38695         Regenerate.
38696         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
38697         Regenerate.
38698         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38699         Regenerate.
38700         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
38701         Regenerate.
38702         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
38703         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
38704         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
38705         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
38706         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
38707         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
38708         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
38709         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
38710         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
38711         * sysdeps/s390/rtld-__longjmp.c: New file.
38712         * sysdeps/s390/rtld-setjmp.S: New file.
38713
38714 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
38715
38716         [BZ #16400]
38717         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
38718         Return -__logl (x) for small positive arguments without evaluating
38719         a polynomial.
38720
38721 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
38722
38723         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
38724         Rename to ...
38725         (__ptrace_peeksiginfo_args): ... this.
38726         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
38727         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
38728         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
38729
38730 2014-01-06  Allan McRae  <allan@archlinux.org>
38731
38732         * inet/netinet/in.h: Fix typo in comment.
38733
38734 2014-01-05  Andreas Jaeger  <aj@suse.de>
38735
38736         * sysdeps/i386/fpu/libm-test-ulps: Update.
38737
38738 2014-01-05  Allan McRae  <allan@archlinux.org>
38739
38740         * po/libc.pot: Regenerated.
38741
38742         * malloc/memusagestat.c: Fix gettext call formatting.
38743
38744 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
38745
38746         * nscd/nscd.c: Improve usage() output.
38747
38748 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
38749
38750         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
38751         * sysdeps/unix/sysv/linux/configure: Regenerated.
38752         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
38753         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
38754
38755 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
38756
38757         [BZ #16390]
38758         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
38759         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
38760
38761 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38762
38763         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
38764         extra tokens at end of #undef directive.
38765         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
38766         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
38767         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
38768
38769 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
38770
38771         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
38772
38773         * math/auto-libm-test-in: Mark various tests with
38774         xfail-rounding:ldbl-128ibm.
38775         * math/auto-libm-test-out: Regenerated.
38776
38777 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
38778
38779         [BZ #16386]
38780         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
38781         numbers with subnormal high part when calculating exponent.
38782
38783         [BZ #16385]
38784         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
38785         fabs.
38786
38787         [BZ #16384]
38788         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
38789         M_LN2l.
38790         (__ieee754_acoshl): Use __log1pl not __log1p.
38791
38792 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
38793
38794         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
38795         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
38796         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
38797         (grow_heap, heap_trim, _int_new_arena, get_free_list)
38798         (reused_arena, arena_get2): Convert to GNU style.
38799         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
38800         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
38801         (memalign_check, __malloc_set_state): Likewise.
38802         * malloc/mallocbug.c (main): Likewise.
38803         * malloc/malloc.c (__malloc_assert, malloc_init_state)
38804         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
38805         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
38806         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
38807         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
38808         (__posix_memalign, malloc_info): Likewise.
38809         * malloc/malloc.h: Likewise.
38810         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
38811         (mallochook, memalignhook, reallochook, mabort): Likewise.
38812         * malloc/mcheck.h: Likewise.
38813         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
38814         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
38815         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
38816         * malloc/morecore.c (__default_morecore): Likewise.
38817         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
38818         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
38819         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
38820         (print_and_abort): Likewise.
38821         * malloc/obstack.h: Likewise.
38822         * malloc/set-freeres.c (__libc_freeres): Likewise.
38823         * malloc/tst-mallocstate.c (main): Likewise.
38824         * malloc/tst-mtrace.c (main): Likewise.
38825         * malloc/tst-realloc.c (do_test): Likewise.
38826
38827 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
38828
38829         [BZ #16366]
38830         * nscd/netgroupcache.c (do_notfound): New function.
38831         (addgetnetgrentX): Use it.
38832
38833         [BZ # 16365]
38834         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
38835         NSS_STATUS_NOTFOUND.
38836
38837 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
38838
38839         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
38840         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38841
38842 2014-01-01  Allan McRae  <allan@archlinux.org>
38843
38844         * scripts/update-copyrights: Update configure input file suffix.
38845
38846         * NEWS: Update copyright year.
38847         * catgets/gencat.c: Likewise.
38848         * csu/version.c: Likewise.
38849         * debug/catchsegv.sh: Likewise.
38850         * debug/pcprofiledump.c: Likewise.
38851         * debug/xtrace.sh: Likewise.
38852         * elf/ldconfig.c: Likewise.
38853         * elf/ldd.bash.in: Likewise.
38854         * elf/pldd.c: Likewise.
38855         * elf/sotruss.ksh: Likewise.
38856         * elf/sprof.c: Likewise.
38857         * iconv/iconv_prog.c: Likewise.
38858         * iconv/iconvconfig.c: Likewise.
38859         * locale/programs/locale.c: Likewise.
38860         * locale/programs/localedef.c: Likewise.
38861         * login/programs/pt_chown.c: Likewise.
38862         * malloc/memusage.sh: Likewise.
38863         * malloc/memusagestat.c: Likewise.
38864         * malloc/mtrace.pl: Likewise.
38865         * manual/libc.texinfo: Likewise.
38866         * nscd/nscd.c: Likewise.
38867         * nss/getent.c: Likewise.
38868         * nss/makedb.c: Likewise.
38869         * posix/getconf.c: Likewise.
38870         * scripts/test-installation.pl: Likewise.
38871
38872         * All files with FSF copyright notices: Update copyright dates
38873         using scripts/update-copyrights.
38874         * intl/plural.c: Regenerated.
38875         * locale/programs/charmap-kw.h: Likewise.
38876         * locale/programs/locfile-kw.h: Likewise.
38877
38878 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
38879
38880         * sysdeps/unix/sysv/linux/configure: Regenerated.
38881         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
38882         the linux/fanotify.h header.
38883         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
38884         HAVE_LINUX_FANOTIFY_H is defined.
38885
38886 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
38887
38888         * benchtests/cos-inputs: New inputs.
38889         * benchtests/sin-inputs: Likewise.
38890
38891         * benchtests/atan-inputs: New inputs. Fix name of multiple
38892         precision fallback inputs.
38893
38894         * benchtests/atanh-inputs: New inputs.
38895         * benchtests/tanh-inputs: Likewise.
38896
38897         * benchtests/acosh-inputs: New inputs.
38898         * benchtests/asinh-inputs: Likewise.
38899
38900         * benchtests/cosh-inputs: New inputs.
38901         * benchtests/sinh-inputs: Likewise.
38902
38903         * benchtests/acos-inputs: Add more inputs.
38904         * benchtests/asin-inputs: Likewise.
38905
38906 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
38907
38908         [BZ #16375]
38909         * manual/arith.texi: Fix spelling.
38910         * manual/charset.texi: Likewise.
38911         * manual/errno.texi: Likewise.
38912         * manual/filesys.texi: Likewise.
38913         * manual/lang.texi: Likewise.
38914         * manual/llio.texi: Likewise.
38915         * manual/locale.texi: Likewise.
38916         * manual/message.texi: Likewise.
38917         * manual/resource.texi: Likewise.
38918         * manual/search.texi: Likewise.
38919         * manual/setjmp.texi: Likewise.
38920         * manual/stdio.texi: Likewise.
38921         * manual/string.texi: Likewise.
38922         * manual/sysinfo.texi: Likewise.
38923         * manual/time.texi: Likewise.
38924
38925 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
38926
38927         * po/sl.po: New file.
38928
38929 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
38930
38931         * .gitignore: Add core/.gdbinit/.gdb_history.
38932
38933 2013-12-27  Allan McRae  <allan@archlinux.org>
38934
38935         [BZ #16369]
38936         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
38937         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
38938
38939 2013-12-24  Brooks Moses  <bmoses@google.com>
38940
38941         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
38942         all compilers that claim C++98 compliance, not just GCC.
38943         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
38944         Likewise.
38945
38946 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
38947
38948         * NEWS: Restore accidentally deleted bug-fix entries.
38949
38950 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
38951             Ondřej Bílka  <neleai@seznam.cz>
38952
38953         [BZ #15073]
38954         * malloc/malloc.c (_int_free): Perform sanity check only if we
38955         have_lock.
38956
38957 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
38958
38959         [BZ #12986]
38960         * manual/stdio.texi (String Input Conversions): Clarify that character
38961         classes are not supported.
38962
38963 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38964
38965         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38966
38967 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
38968
38969         [BZ #16337]
38970         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
38971         Calculate results for small negative arguments directly rather
38972         than using reflection formula with special underflow handling.
38973
38974         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
38975         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
38976         sysdeps/unix/bsd/bsd4.4/syscalls.list.
38977         (fchflags): Likewise.
38978         (revoke): Likewise.
38979         (setlogin): Likewise.
38980         (sigaltstack): Likewise.
38981         (wait4): Likewise.
38982         (sigblock): Remove.
38983         (sigsetmask): Likewise.
38984         (wait3): Likewise.
38985         (waitpid): Likewise.
38986         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
38987         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
38988         file.
38989         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
38990         * sysdeps/unix/bsd/Makefile: ... here.
38991         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
38992         * sysdeps/unix/bsd/Versions: ... here.
38993         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
38994         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
38995         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
38996         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
38997         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
38998         * sysdeps/unix/bsd/sigblock.c: ... here.
38999         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
39000         * sysdeps/unix/bsd/sigsetmask.c: ... here.
39001         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
39002         * sysdeps/unix/bsd/sigvec.c: ... here.
39003         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
39004         * sysdeps/unix/bsd/tcdrain.c: ... here.
39005         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
39006         * sysdeps/unix/bsd/tcgetattr.c: ... here.
39007         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
39008         * sysdeps/unix/bsd/tcsetattr.c: ... here.
39009         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
39010         * sysdeps/unix/bsd/wait.c: ... here.
39011         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
39012         * sysdeps/unix/bsd/wait3.c: ... here.
39013         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
39014         * sysdeps/unix/bsd/waitpid.c: ... here.
39015
39016 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
39017
39018         [BZ #16356]
39019         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
39020         round-to-nearest for [!USE_AS_EXPM1L].
39021         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
39022         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
39023         more tests of exp and exp10.  Expect some exp10 tests to miss
39024         exceptions or fail in directed rounding modes.
39025         * math/auto-libm-test-out: Regenerated.
39026         * math/libm-test.inc (exp10_tonearest_test_data): New array.
39027         (exp10_test_tonearest): New function.
39028         (exp10_towardzero_test_data): New array.
39029         (exp10_test_towardzero): New function.
39030         (exp10_downward_test_data): New array.
39031         (exp10_test_downward): New function.
39032         (exp10_upward_test_data): New array.
39033         (exp10_test_upward): New function.
39034         (main): Call the new functions.
39035         * sysdeps/i386/fpu/libm-test-ulps: Update.
39036         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39037
39038 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
39039
39040         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
39041         asinh, atan, atan2, atanh, cbrt, cos and cosh.
39042         * math/auto-libm-test-out: Regenerated.
39043         * math/libm-test.inc (acosh_test_data): Add more tests.
39044         (atanh_test_data): Likewise.
39045         (ceil_test_data): Likewise.
39046         (copysign_test_data): Likewise.
39047         * sysdeps/i386/fpu/libm-test-ulps: Update.
39048         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39049
39050         * timezone/checktab.awk: Update from tzcode 2013i.
39051         * timezone/private.h: Likewise.
39052         * timezone/scheck.c: Likewise.
39053         * timezone/tzfile.h: Likewise.
39054         * timezone/tzselect.ksh: Likewise.
39055         * timezone/zdump.c: Likewise.
39056         * timezone/zic.c: Likewise.
39057
39058         * math/auto-libm-test-in: Add tests of cpow.
39059         * math/auto-libm-test-out: Regenerated.
39060         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
39061         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39062         mpc_cc_c.
39063         (func_calc_desc): Add mpc_cc_c union field.
39064         (test_functions): Add cpow.
39065         (special_fill_2pi): New function.
39066         (special_real_inputs): Add 2pi.
39067         (calc_generic_results): Handle mpc_cc_c.
39068         * sysdeps/i386/fpu/libm-test-ulps: Update.
39069         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39070
39071         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
39072         csqrt, ctan and ctanh.
39073         * math/auto-libm-test-out: Regenerated.
39074         * math/libm-test.inc (TEST_COND_x86_64): New macro.
39075         (TEST_COND_x86): Likewise.
39076         (ccos_test_data): Use AUTO_TESTS_c_c.
39077         (ccosh_test_data): Likewise.
39078         (cexp_test_data): Likewise.
39079         (clog_test_data): Likewise.
39080         (csqrt_test_data): Likewise.
39081         (ctan_test_data): Likewise.
39082         (ctan_tonearest_test_data): Likewise.
39083         (ctan_towardzero_test_data): Likewise.
39084         (ctan_downward_test_data): Likewise.
39085         (ctan_upward_test_data): Likewise.
39086         (ctanh_test_data): Likewise.
39087         (ctanh_tonearest_test_data): Likewise.
39088         (ctanh_towardzero_test_data): Likewise.
39089         (ctanh_downward_test_data): Likewise.
39090         (ctanh_upward_test_data): Likewise.
39091         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39092         mpc_c_c.
39093         (func_calc_desc): Add mpc_c_c union field.
39094         (FUNC_mpc_c_c): New macro.
39095         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
39096         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
39097         ctanh.
39098         (special_fill_min_subnorm_p120): New function.
39099         (special_real_inputs): Add min_subnorm_p120.
39100         (calc_generic_results): Handle mpc_c_c.
39101         * sysdeps/i386/fpu/libm-test-ulps: Update.
39102         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39103
39104 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
39105
39106         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
39107         (do_sin_slow): New functions.
39108         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
39109         (cslow2, csloww1, csloww2): Use the new functions.
39110
39111         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
39112         Use M to change sign of result instead of X.  Assume X is
39113         positive.
39114         (csloww1): Likewise.
39115         (__sin): Adjust.
39116         (__cos): Adjust.
39117
39118         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
39119         arguments A and DA.
39120         (__sin): Adjust.
39121         (__cos): Likewise.
39122
39123         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
39124         (__cos): Likewise.
39125         (sloww1): Don't adjust sign of DX.
39126         (csloww1): Likewise.
39127         (sloww2): Use X directly and don't adjust sign of DX.
39128         (csloww2): Likewise.
39129
39130 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39131
39132         * math/auto-libm-test-in: Add tests of cabs and carg.
39133         * math/auto-libm-test-out: Regenerated.
39134         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
39135         (carg_test_data): Likewise.
39136         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39137         mpc_c_f.
39138         (func_calc_desc): Add mpc_c_f union field.
39139         (test_functions): Add cabs and carg.
39140         (calc_generic_results): Handle mpc_c_f.
39141
39142         * sysdeps/powerpc/powerpc32/libgcc-compat.S
39143         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
39144         as a macro and a compat symbol.
39145         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
39146         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
39147         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
39148         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
39149         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
39150         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
39151         not use .hidden.
39152         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
39153         Likewise.
39154         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
39155         Likewise.
39156         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
39157         Likewise.
39158         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
39159         Likewise.
39160         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
39161         Likewise.
39162         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
39163         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
39164         from GLIBC_2.3.2.
39165
39166 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39167
39168         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39169
39170 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39171
39172         * manual/texinfo.tex: Update to version 2013-11-26.10 with
39173         trailing whitespace removed.
39174         * scripts/config.guess: Update to version 2013-11-29.
39175         * scripts/config.sub: Update to version 2013-10-01.
39176
39177         * math/auto-libm-test-in: Add tests of sincos.
39178         * math/auto-libm-test-out: Regenerated.
39179         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
39180         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39181         mpfr_f_11.
39182         (func_calc_desc): Add mpfr_f_11 union field.
39183         (test_functions): Add sincos.
39184         (calc_generic_results): Handle mpfr_f_11.
39185         * sysdeps/i386/fpu/libm-test-ulps: Update.
39186         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39187
39188 2013-12-19  Andreas Schwab  <schwab@suse.de>
39189
39190         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
39191         CALL_MCOUNT.
39192         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
39193         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
39194         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
39195
39196 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39197
39198         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
39199         * sysdeps/i386/fpu/libm-test-ulps: Update.
39200         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39201
39202         [BZ #16293]
39203         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
39204         round-to-nearest mode when using frndint.
39205         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
39206         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
39207         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
39208         Likewise.
39209         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
39210         sinh test to fail.
39211         * math/auto-libm-test-out: Regenerated.
39212         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
39213         (TEST_COND_x86): Likewise.
39214         (expm1_tonearest_test_data): New array.
39215         (expm1_test_tonearest): New function.
39216         (expm1_towardzero_test_data): New array.
39217         (expm1_test_towardzero): New function.
39218         (expm1_downward_test_data): New array.
39219         (expm1_test_downward): New function.
39220         (expm1_upward_test_data): New array.
39221         (expm1_test_upward): New function.
39222         (main): Run the new test functions.
39223         * sysdeps/i386/fpu/libm-test-ulps: Update.
39224         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39225
39226         * include/features.h: Update comment documenting feature test
39227         macros.  Mention _DEFAULT_SOURCE in comment.
39228         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
39229         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
39230         _BSD_SOURCE and _SVID_SOURCE.
39231         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
39232         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
39233         !_SVID_SOURCE]: Likewise.
39234         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39235         (__USE_POSIX_IMPLICITLY): Define.
39236         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39237         (_POSIX_SOURCE): Undefine and redefine.
39238         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39239         (_POSIX_C_SOURCE): Likewise.
39240         * manual/creature.texi (_DEFAULT_SOURCE): Document.
39241         (Feature Test Macros): Update documentation of default features.
39242
39243 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
39244
39245         * benchtests/Makefile: Add bench-strtok.
39246         * benchtests/bench-strtok.c: New file: strtok benchtest.
39247
39248 2013-12-19  Allan McRae  <allan@archlinux.org>
39249
39250         * manual/install.texi: Suppress menu for plain text output.
39251         * INSTALL: Regenerated.
39252
39253 2013-12-18  Brooks Moses  <bmoses@google.com>
39254
39255         [BZ #15846]
39256         * misc/getauxval.c: Include errno.h.
39257         (__getauxval): Set errno to ENOENT if the requested type is not
39258         found.
39259         * misc/sys/auxv.h (getauxval): Document that it may set errno;
39260         don't declare with __attribute_const__.
39261         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
39262         * manual/startup.texi: Document that getauxval sets errno.
39263
39264 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39265
39266         * math/auto-libm-test-in: Add tests of jn and yn.
39267         * math/auto-libm-test-out: Regenerated.
39268         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
39269         (yn_test_data): Likewise.
39270         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39271         mpfr_if_f.
39272         (func_calc_desc): Add mpfr_if_f union field.
39273         (FUNC_mpfr_if_f): New macro.
39274         (test_functions): Add jn and yn.
39275         (calc_generic_results): Assert type of second input for
39276         mpfr_ff_f.  Handle mpfr_if_f.
39277         (output_for_one_input_case): Disable all checking for arguments
39278         fitting floating-point types in case of an integer argument.
39279         * sysdeps/i386/fpu/libm-test-ulps: Update.
39280         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39281
39282         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
39283         Don't expect fegetround reference in libm.so.
39284
39285 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
39286
39287         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
39288         $(config-cflags-nofma).
39289
39290 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39291
39292         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
39293         * math/auto-libm-test-out: Regenerated.
39294
39295         [BZ #16338]
39296         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
39297         to determine exponent and adjust argument to have exponent of -1.
39298         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
39299         log2.
39300         * math/auto-libm-test-out: Regenerated.
39301         * sysdeps/i386/fpu/libm-test-ulps: Update.
39302         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39303
39304 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
39305
39306         * manual/probes.texi: Remove cases when per-thread arenas are
39307         disabled.
39308
39309 2013-12-18  Andreas Schwab  <schwab@suse.de>
39310
39311         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
39312         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
39313         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
39314         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
39315         * sysdeps/i386/i686/multiarch/Makefile: Update.
39316         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
39317
39318 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39319
39320         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
39321         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
39322
39323 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
39324
39325         [BZ #15968]
39326         Support TZ transition times < 00:00:00.
39327         This is needed for version-3 tz-format files; it supports time
39328         stamps past 2037 for America/Godthab (the only entry in the tz
39329         database for which this change is relevant).
39330         * manual/time.texi (TZ Variable): Document transition times
39331         from -167:59:59 through -00:00:01.
39332         * time/tzset.c (tz_rule): Time of day is now signed.
39333         (__tzset_parse_tz): Parse negative time of day.
39334
39335         Document TZ transition times >= 25:00:00.
39336         * manual/time.texi (TZ Variable): Document transition times from
39337         25:00:00 through 167:59:59.  These are already supported, and this
39338         support will help with version-3 tz-format files.
39339
39340         * manual/time.texi (TZ Variable): Modernize North America example
39341         to reflect current (i.e., 2007-and-later) daylight saving rules.
39342
39343         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
39344
39345 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39346
39347         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
39348         * sysdeps/unix/bsd/bits/stat.h: Likewise.
39349         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
39350         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
39351         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
39352         * sysdeps/unix/bsd/bsdstat.h: Likewise.
39353         * sysdeps/unix/bsd/clock.c: Likewise.
39354         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
39355         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
39356         * sysdeps/unix/bsd/init-posix.c: Likewise.
39357         * sysdeps/unix/bsd/poll.c: Likewise.
39358         * sysdeps/unix/bsd/ptsname.c: Likewise.
39359         * sysdeps/unix/bsd/seekdir.c: Likewise.
39360         * sysdeps/unix/bsd/setegid.c: Likewise.
39361         * sysdeps/unix/bsd/seteuid.c: Likewise.
39362         * sysdeps/unix/bsd/setgid.c: Likewise.
39363         * sysdeps/unix/bsd/setrgid.c: Likewise.
39364         * sysdeps/unix/bsd/setruid.c: Likewise.
39365         * sysdeps/unix/bsd/setsid.c: Likewise.
39366         * sysdeps/unix/bsd/setuid.c: Likewise.
39367         * sysdeps/unix/bsd/sigaction.c: Likewise.
39368         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
39369         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
39370         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
39371         * sysdeps/unix/bsd/telldir.c: Likewise.
39372         * sysdeps/unix/bsd/times.c: Likewise.
39373         * sysdeps/unix/bsd/usleep.c: Likewise.
39374
39375         * misc/Makefile (install-lib): Remove libbsd-compat.a.
39376         ($(objpfx)libbsd-compat.a): Remove rule.
39377
39378         * include/features.h (__FAVOR_BSD): Do not define.
39379         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
39380         features conflicting with POSIX.
39381         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
39382         (_BSD_SOURCE): Remove description of not being a subset of other
39383         feature test macros.
39384         * manual/job.texi (getpgrp): Do not document BSD version.
39385         (getpgid): Do not document by reference to BSD getpgrp.
39386         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
39387         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
39388         * signal/signal.h [__FAVOR_BSD]: Likewise.
39389         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
39390         instead of making contents conditional on [__FAVOR_BSD].
39391         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
39392
39393 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39394
39395         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39396
39397 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39398
39399         [BZ #16314]
39400         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
39401         values below 2**-450, not 2**-500.
39402         * math/auto-libm-test-in: Don't allow spurious underflow from
39403         hypot.
39404         * math/auto-libm-test-out: Regenerated.
39405
39406         [BZ #16316]
39407         [BZ #16330]
39408         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
39409         values of ha and hb and sort them after adjusting subnormal
39410         arguments.
39411         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
39412         Likewise.
39413         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
39414         values of ea and eb and sort them after adjusting subnormal
39415         arguments.
39416         * math/auto-libm-test-in: Do not expect some hypot tests of
39417         subnormals to fail.  Add more hypot tests.
39418         * math/auto-libm-test-out: Regenerated.
39419
39420 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39421
39422         [BZ #13304]
39423         * sysdeps/sh/s_fma.c: New file.
39424         * sysdeps/sh/s_fmaf.c: New file.
39425         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
39426         version.
39427         * sysdeps/sh/Implies: Add sh/soft-fp.
39428
39429 2013-12-16  Roland McGrath  <roland@hack.frob.com>
39430
39431         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
39432         level of indirection to members `objname', `errstring', `malloced'.
39433         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
39434         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
39435         it as the __longjmp argument (just pass 1 instead).
39436         (_dl_catch_error): Initialize C with argument pointers and address of
39437         volatile local ERRCODE rather than copying values out of C at return.
39438
39439 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
39440
39441         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
39442         * math/auto-libm-test-out: Regenerated.
39443         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
39444         (hypot_test_data): Likewise.
39445         (pow_test_data): Likewise.
39446         (pow_tonearest_test_data): Likewise.
39447         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39448         mpfr_ff_f.
39449         (func_calc_desc): Add mpfr_ff_f union field.
39450         (FUNC_mpfr_ff_f): New macro.
39451         (test_functions): Add atan2, hypot and pow.
39452         (special_fill_min): New function.
39453         (special_fill_minus_min): Likewise.
39454         (special_fill_min_subnorm): Likewise.
39455         (special_fill_minus_min_subnorm): Likewise.
39456         (special_real_inputs): Add min, -min, min_subnorm and
39457         -min_subnorm.
39458         (calc_generic_results): Handle mpfr_ff_f.
39459         * sysdeps/i386/fpu/libm-test-ulps: Update.
39460         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39461
39462 2013-12-16  Will Newton  <will.newton@linaro.org>
39463
39464         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
39465         (Aligned Memory Blocks): Add documentation for aligned_alloc
39466         and suggest it as an alternative to posix_memalign.
39467         (Hooks for Malloc): Document __memalign_hook is also called
39468         for aligned_alloc.  (Summary of Malloc): Add summary for
39469         aligned alloc.  Document __memalign_hook is also called
39470         for aligned_alloc.
39471
39472 2013-12-16  Will Newton  <will.newton@linaro.org>
39473
39474         * manual/memory.texi (Malloc Examples): Clarify default
39475         alignment documentation.  Suggest posix_memalign rather
39476         than memalign or valloc.
39477         (Aligned Memory Blocks): Remove suggestion to use memalign
39478         or valloc.  Remove obsolete comment about BSD.
39479         Document memalign errno values and mark the function obsolete.
39480         Document posix_memalign returned error codes.  Mark valloc
39481         as obsolete.  (Hooks for Malloc): __memalign_hook is also
39482         called for posix_memalign and valloc.
39483         (Summary of Malloc): Add posix_memalign to function summary.
39484         __memalign_hook is also called for posix_memalign and valloc.
39485
39486 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39487
39488         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
39489         TAYLOR_SIN.
39490         (__sin): Adjust.
39491         (__cos): Likewise.
39492         (sloww): Use mynumber union.  Expand ternary operator into
39493         if-else statements.
39494         (cslow): use mynumber union.
39495
39496 2013-12-16  Allan McRae  <allan@archlinux.org>
39497
39498         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
39499         * configure: Regenerated.
39500
39501         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
39502
39503         [BZ #14120]
39504         * configure.ac: Added --enable-maintainer-mode. Check for
39505         autoconf when enabled.
39506         * configure: Regenerated.
39507
39508         * nscd/nscd.service: New file.
39509         * nscd/nscd.tmpfiles: New file.
39510
39511 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
39512
39513         [BZ #12100]
39514         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
39515         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
39516         * sysdeps/x86_64/multiarch/strstr.c: ... here.
39517         (strstr): Add __strstr_sse2_unaligned ifunc.
39518         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
39519         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
39520         (strcasestr): Remove __strcasestr_sse42 ifunc.
39521         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
39522         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
39523         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
39524
39525 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39526
39527         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
39528         * sysdeps/sh/bits/fenv.h: ... here.
39529         * sysdeps/sh/sh4/fpu/bits: Remove directory.
39530
39531 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39532
39533         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
39534
39535         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
39536         hypotf multiarch implementations.
39537         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
39538         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
39539         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
39540         multiarch hypot for PPC64.
39541         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
39542         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
39543         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
39544         multiarch hypotf for PPC64.
39545
39546         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
39547         modff multiarch implementations.
39548         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
39549         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
39550         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
39551         multiarch modf for PPC64.
39552         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
39553         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
39554         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
39555         multiarch modff for PPC64.
39556
39557         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
39558         and logl multiarch implementations.
39559         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
39560         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
39561         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
39562         multiarch logb for PPC64.
39563         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
39564         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
39565         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
39566         multiarch logb for PPC64.
39567         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
39568         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
39569         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
39570         multiarch logb for PPC64.
39571
39572         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
39573         isinff multiarch implementation.
39574         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
39575         file.
39576         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
39577         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
39578         multiarch isinf for PPC64.
39579         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
39580         file.
39581         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
39582         multiarch isinff for PPC64.
39583
39584         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
39585         finitef multiarch implementation.
39586         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
39587         file.
39588         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
39589         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
39590         multiarch finite for PPC64.
39591         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
39592         file.
39593         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
39594         multiarch finitef for PPC64.
39595
39596         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
39597         lrint multiarch implementation.
39598         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
39599         file.
39600         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
39601         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
39602         multiarch llrint for PPC64.
39603         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
39604         multiarch lrint for PPC64.
39605
39606         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
39607         copysignf multiarch implementation.
39608         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
39609         file.
39610         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
39611         file.
39612         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
39613         multiarch copysign for PPC64.
39614         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
39615         multiarch copysignf for PPC64.
39616
39617         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
39618         multiarch implementation.
39619         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
39620         file.
39621         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
39622         file.
39623         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
39624         file.
39625         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
39626         file.
39627         multiarch llround for PPC64.
39628         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
39629         multiarch trunc for PPC64.
39630         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
39631         multiarch truncf for PPC64.
39632
39633         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
39634         multiarch implementation.
39635         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
39636         file.
39637         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
39638         file.
39639         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
39640         file.
39641         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
39642         file.
39643         multiarch llround for PPC64.
39644         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
39645         multiarch round for PPC64.
39646         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
39647         multiarch roundf for PPC64.
39648
39649         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
39650         multiarch implementation.
39651         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
39652         file.
39653         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
39654         file.
39655         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
39656         file.
39657         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
39658         file.
39659         multiarch llround for PPC64.
39660         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
39661         multiarch floor for PPC64.
39662         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
39663         multiarch floorf for PPC64.
39664
39665         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
39666         multiarch implementation.
39667         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
39668         file.
39669         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
39670         file.
39671         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
39672         file.
39673         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
39674         file.
39675         multiarch llround for PPC64.
39676         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
39677         multiarch ceil for PPC64.
39678         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
39679         multiarch ceilf for PPC64.
39680
39681         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
39682         multiarch implementation.
39683         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
39684         file.
39685         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
39686         file.
39687         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
39688         file.
39689         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
39690         multiarch llround for PPC64.
39691         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
39692         multiarch lround for PPC64.
39693
39694         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
39695         multiarch implementation.
39696         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
39697         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
39698         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
39699         file.
39700         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
39701         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
39702         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
39703         multiarch isnan for PPC64.
39704         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
39705         multiarch isnanf for PPC64.
39706
39707         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
39708         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
39709         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
39710         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
39711         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
39712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
39713
39714         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
39715         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39716         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39717         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39718
39719         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
39720         multiarch implementations.
39721         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39722         (__libc_ifunc_impl_list): Likewise.
39723         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
39724         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
39725         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
39726         multiarch stpcpy for PPC64.
39727
39728         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
39729         multiarch implementations.
39730         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39731         (__libc_ifunc_impl_list): Likewise.
39732         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
39733         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
39734         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
39735         multiarch strcpy for PPC64.
39736
39737         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
39738         redefine function name.
39739         (_wordcopy_fwd_dest_aligned): Likewise.
39740         (_wordcopy_bwd_aligned): Likewise.
39741         (_wordcopy_bwd_dest_aligned): Likewise.
39742         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
39743         multiarch implementations.
39744         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39745         (__libc_ifunc_impl_list): Likewise.
39746         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
39747         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
39748         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
39749         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
39750         multiarch wcscpy for PPC64.
39751
39752         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
39753         multiarch implementations.
39754         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39755         (__libc_ifunc_impl_list): Likewise.
39756         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
39757         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
39758         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
39759         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
39760         multiarch wcscpy for PPC64.
39761
39762         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
39763         multiarch implementations.
39764         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39765         (__libc_ifunc_impl_list): Likewise.
39766         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
39767         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
39768         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
39769         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
39770         multiarch wcsrchr for PPC64.
39771
39772         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
39773         multiarch implementations.
39774         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39775         (__libc_ifunc_impl_list): Likewise.
39776         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
39777         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
39778         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
39779         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
39780         multiarch wcschr for PPC64.
39781
39782         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
39783         multiarch implementations.
39784         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39785         (__libc_ifunc_impl_list): Likewise.
39786         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
39787         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
39788         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
39789         multiarch strchrnul for PPC64.
39790
39791         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
39792         implementations.
39793         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39794         (__libc_ifunc_impl_list): Likewise.
39795         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
39796         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
39797         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
39798         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
39799         strchr for PPC64.
39800
39801         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
39802         implementations.
39803         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39804         (__libc_ifunc_impl_list): Likewise.
39805         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
39806         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
39807         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
39808         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
39809         strncmp for PPC64.
39810
39811         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
39812         multiarch implementations.
39813         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39814         (__libc_ifunc_impl_list): Likewise.
39815         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
39816         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
39817         strncasecmp for PPC64.
39818         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
39819         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
39820         multiarch strncasecmp_l for PPC64.
39821
39822         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
39823         multiarch implementations.
39824         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
39825         (__libc_ifunc_impl_list): Likewise.
39826         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
39827         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
39828         multiarch strcasecmp for PPC64.
39829         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
39830         file.
39831         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
39832         multiarch strcasecmp_l for PPC64.
39833
39834         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
39835         implementations.
39836         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39837         (__libc_ifunc_impl_list): Likewise.
39838         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
39839         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
39840         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
39841         strnlen for PPC64.
39842
39843         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
39844         implementations.
39845         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39846         (__libc_ifunc_impl_list): Likewise.
39847         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
39848         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
39849         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
39850         strlen for PPC64.
39851
39852         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
39853         implementations.
39854         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39855         (__libc_ifunc_impl_list): Likewise.
39856         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
39857         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
39858         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
39859         rawmemrchr for PPC64.
39860
39861         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
39862         implementation.
39863         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39864         (__libc_ifunc_impl_list): Likewise.
39865         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
39866         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
39867         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
39868         memrchr for PPC64.
39869
39870         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
39871         implementation.
39872         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39873         (__libc_ifunc_impl_list): Likewise.
39874         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
39875         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
39876         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
39877         memchr for PPC64.
39878
39879         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
39880         implementation.
39881         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39882         (__libc_ifunc_impl_list): Likewise.
39883         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
39884         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
39885         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
39886         mempcpy for PPC64.
39887
39888         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
39889         avoid cretion of __bzero symbol.
39890         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
39891         Likewise.
39892         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
39893         Likewise.
39894         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
39895         Likewise.
39896         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
39897         multiarch implementations.
39898         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39899         (__libc_ifunc_impl_list): Likewise.
39900         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
39901         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
39902         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
39903         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
39904         bzero for PPC32.
39905         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
39906         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
39907         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
39908         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
39909         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
39910         memset for PPC64.
39911         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
39912
39913         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
39914         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
39915         implementations.
39916         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39917         (__libc_ifunc_impl_list): Likewise.
39918         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
39919         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
39920         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
39921         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
39922         memcmp for PPC64.
39923
39924         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
39925         multiarch for POWER/PPC64.
39926         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
39927         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
39928         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
39929         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
39930         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
39931         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
39932         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
39933         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
39934         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
39935         memcpy for PPC64.
39936
39937         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
39938         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
39939         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
39940         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
39941         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
39942         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
39943         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
39944         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
39945         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
39946         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
39947         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
39948         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
39949         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
39950         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
39951         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
39952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
39953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
39954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
39955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
39956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
39957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
39958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
39959
39960 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39961
39962         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
39963
39964 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
39965
39966         * benchtests/Makefile (bench): Add exp2 and log2.
39967         (LDLIBS-bench-exp2): Add -lm.
39968         (LDLIBS-bench-log2): Likewise.
39969         * benchtests/exp2-inputs: New inputs file.
39970         * benchtests/log2-inputs: New inputs file.
39971         * benchtests/log-inputs: Add new inputs.
39972         * benchtests/tan-inputs: Likewise.
39973
39974 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
39975
39976         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
39977         definition...
39978         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
39979         (csloww2): ... from here.
39980
39981         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
39982         instead of structures.
39983         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
39984         (POLYNOMIAL): Likewise.
39985         (TAYLOR_SLOW): Likewise.
39986         (__sin): Likewise.
39987         (__cos): Likewise.
39988         (slow1): Likewise.
39989         (slow2): Likewise.
39990         (sloww): Likewise.
39991         (sloww1); Likewise.
39992         (sloww2): Likewise.
39993         (bsloww1): Likewise.
39994         (bsloww2): Likewise.
39995         (cslow2): Likewise.
39996         (csloww): Likewise.
39997         (csloww1): Likewise.
39998         (csloww2): Likewise.
39999
40000 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
40001
40002         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
40003         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
40004         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
40005         * malloc/hooks.c (realloc_check): Likewise.
40006
40007         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
40008         * malloc/arena.c: Remove PER_THREAD conditional.
40009         [!PER_THREAD]: Remove code.
40010         (ptmalloc_unlock_all2): Likewise.
40011         (ptmalloc_init): Likewise.
40012         (_int_new_arena): Likewise.
40013         (arena_get2): Likewise.
40014         * malloc/hooks.c (__malloc_get_state): Likewise.
40015         (__malloc_set_state): Likewise.
40016         * malloc/malloc.c: Likewise.
40017         (struct malloc_state): Likewise.
40018         (struct malloc_par): Likewise.
40019         (__libc_realloc): Likewise.
40020         (__libc_mallopt): Likewise.
40021
40022 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40023
40024         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
40025
40026 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
40027
40028         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
40029         macro to a function.  Check for zero perturb_byte.
40030         (_int_malloc, _int_free): Remove zero perturb_byte checks.
40031
40032         * malloc/malloc.c: (force_reg): Remove.
40033         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
40034         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
40035         force_reg by atomic_forced_read.
40036         * malloc/arena.c (ptmalloc_init): Likewise.
40037         * malloc/hooks.c (top_check): Likewise.
40038
40039 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40040
40041         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40042
40043 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
40044
40045         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
40046
40047 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
40048
40049         * math/auto-libm-test-in: Add tests of lgamma.
40050         * math/auto-libm-test-out: Regenerated.
40051         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
40052         (M_LOG_2_SQRT_PIl): Likewise.
40053         (lgamma_test_data): Use AUTO_TESTS_f_f1.
40054         * math/gen-auto-libm-tests.c (func_calc_method): Add value
40055         mpfr_f_f1.
40056         (func_calc_desc): Add mpfr_f_f1 union field.
40057         (ARGS1): New macro.
40058         (ARGS2): Likewise.
40059         (ARGS3): Likewise.
40060         (ARGS4): Likewise.
40061         (RET1): Likewise.
40062         (RET2): Likewise.
40063         (CALC): Likewise.
40064         (FUNC): Likewise.
40065         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
40066         (test_functions): Add lgamma.
40067         (calc_generic_results): Handle mpfr_f_f1.
40068         * sysdeps/i386/fpu/libm-test-ulps: Update.
40069         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40070
40071 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40072
40073         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
40074         __mpn_add_n for PowerPC64/POWER7.
40075         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
40076         __mpn_sub_n for PowerPC64/POWER7.
40077
40078         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
40079         __mpn_addmul_1 for PowerPC64.
40080         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
40081         __mpn_submul_1 for PowerPC64.
40082         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
40083         for PowerPC64.
40084         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
40085         for PowerPC64.
40086
40087 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
40088
40089         [BZ #15089]
40090         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
40091
40092 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40093
40094         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
40095
40096         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
40097         add multiarch folders.
40098         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
40099         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
40100         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
40101         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
40102         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
40103         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
40104         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
40105         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
40106         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
40107         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
40108         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
40109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
40110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
40111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
40112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
40113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
40114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
40115
40116         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40117         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
40118         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
40119         New file.
40120         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
40121         New file.
40122         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
40123         multiarch __ieee754_hypot for PowerPC32.
40124         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
40125         New file.
40126         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
40127         New file.
40128         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
40129         multiarch __ieee754_hypotf for PowerPC32.
40130
40131         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
40132         long_double_symbol only if __logbl is defined.
40133         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
40134         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
40135         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
40136         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
40137         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
40138         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
40139         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
40140         path for implementation.
40141         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
40142         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
40143         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
40144         logb, and logbl multiarch implementations for PowerPC32.
40145         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
40146         file.
40147         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
40148         file.
40149         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
40150         multiarch logb for PowerPC32.
40151         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
40152         file.
40153         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
40154         file.
40155         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
40156         multiarch logbf for PowerPC32.
40157         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
40158         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
40159         file.
40160         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
40161         multiarch logbl implementation for PowerPC32.
40162
40163         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
40164         and modff multiarch implementations.
40165         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
40166         New file.
40167         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
40168         New file.
40169         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
40170         multiarch modf for PowerPC32.
40171         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
40172         New file.
40173         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
40174         New file.
40175         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
40176         multiarch modff for PowerPC32.
40177
40178         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
40179         and lrintf multiarch implementations.
40180         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
40181         New file.
40182         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
40183         New file.
40184         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
40185         multiarch lrint for PowerPC32.
40186         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
40187         file: multiarch lrintf for PowerPC32.
40188
40189         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
40190         and lroundf multiarch implementations.
40191         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
40192         New file.
40193         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
40194         New file.
40195         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
40196         New file.
40197         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
40198         multiarch lround for PowerPC32.
40199         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
40200         file: multiarch lroundf for PowerPC32.
40201
40202         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40203         copysign and copysignf multiarch implementations.
40204         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
40205         New file.
40206         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
40207         New file.
40208         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
40209         file: multiarch copysign for PowerPC32.
40210         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
40211         file: multiarch copysignf for PowerPC32.
40212
40213         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
40214         and truncf multiarch implementations.
40215         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
40216         New file.
40217         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
40218         file.
40219         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
40220         multiarch trunc for PowerPC32.
40221         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
40222         New file.
40223         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
40224         New file.
40225         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
40226         multiarch truncf for PowerPC32.
40227
40228         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
40229         and roundf multiarch implementations.
40230         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
40231         New file.
40232         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
40233         file.
40234         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
40235         multiarch round for PowerPC32.
40236         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
40237         New file.
40238         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
40239         New file.
40240         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
40241         multiarch roundf for PowerPC32.
40242
40243         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
40244         and floorf multiarch implementations.
40245         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
40246         New file.
40247         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
40248         file.
40249         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
40250         multiarch floor for PowerPC32.
40251         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
40252         New file.
40253         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
40254         New file.
40255         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
40256         multiarch floorf for PowerPC32.
40257
40258         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
40259         and ceilf multiarch implementations.
40260         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
40261         New file.
40262         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
40263         file.
40264         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
40265         multiarch ceil for PowerPC32.
40266         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
40267         New file.
40268         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
40269         file.
40270         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
40271         multiarch ceilf for PowerPC32.
40272
40273         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
40274         is defined.
40275         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
40276         FINITEF is defined.
40277         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
40278         and finitef multiarch implementations.
40279         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
40280         New file.
40281         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
40282         file.
40283         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
40284         multiarch finite for PowerPC32.
40285         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
40286         New file.
40287         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
40288         file: multiarch finitef for PowerPC32.
40289
40290         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
40291         and isinff multiarch implementations.
40292         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
40293         file.
40294         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
40295         file.
40296         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
40297         multiarch isinf for PowerPC32.
40298         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
40299         New file.
40300         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
40301         multiarch isinff for PowerPC32.
40302
40303         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
40304         alias when __isnan is defined.
40305         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
40306         and isnanf multiarch implementations.
40307         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
40308         file.
40309         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
40310         file.
40311         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
40312         file.
40313         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
40314         file.
40315         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
40316         multiarch isnan for PowerPC32.
40317         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
40318         New file.
40319         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
40320         New file.
40321         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
40322         multiarch isnanf for PowerPC32.
40323
40324         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
40325         and sqrtf multiarch implementations.
40326         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
40327         file.
40328         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
40329         file.
40330         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
40331         multiarch sqrt for PowerPC32.
40332         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
40333         file.
40334         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
40335         file.
40336         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
40337         multiarch sqrtf for PowerPC32.
40338
40339         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
40340         and llroundf multiarch implementations.
40341         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
40342         New file.
40343         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
40344         New file.
40345         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
40346         New file.
40347         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
40348         file: multiarch llround for PowerPC32.
40349         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
40350         file: multiarch llroundf for PowerPC32.
40351
40352         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
40353         multiarch PowerPC32 fpu implementations.
40354         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
40355         New file.
40356         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
40357         New file.
40358         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
40359         multiarch llrint for PowerPC32.
40360         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
40361         New file.
40362         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
40363         New file.
40364         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
40365         file.
40366
40367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
40368
40369         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
40370         file.
40371         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
40372         file.
40373         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
40374         file.
40375         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
40376         multiarch wordcopy for PPC32.
40377         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40378         wordcopy objects.
40379         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40380         (__libc_ifunc_impl_list): Likewise.
40381         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
40382         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
40383         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
40384         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
40385         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
40386         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
40387
40388         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
40389         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
40390         file.
40391         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
40392         file.
40393         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
40394         file.
40395         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
40396         multiarch wcscpy for PPC32.
40397         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40398         multiarch objects.
40399         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40400         (__libc_ifunc_impl_list): Likewise.
40401         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40402         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40403         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
40404         sysdeps/powerpc/power6/wcscpy.c.
40405
40406         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
40407         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
40408         file.
40409         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
40410         file.
40411         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
40412         file.
40413         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
40414         multiarch wcsrchr for PPC32.
40415         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40416         multiarch objects.
40417         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40418         (__libc_ifunc_impl_list): Likewise.
40419         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40420         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40421         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
40422         sysdeps/powerpc/power6/wcsrchr.c.
40423
40424         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
40425         file.
40426         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
40427         file.
40428         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
40429         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
40430         multiarch wcschr for PPc32.
40431         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40432         multiarch objects.
40433         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40434         (__libc_ifunc_impl_list): Likewise.
40435         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
40436         * sysdeps/powerpc/power6/wcschr.c: ... to here.
40437         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
40438         sysdeps/powerpc/power6/wcschr.c.
40439
40440         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
40441         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
40442         file.
40443         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
40444         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
40445         file: multiarch strchr for PPC32.
40446         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
40447         multiarch objects.
40448         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40449         (__libc_ifunc_impl_list): Likewise.
40450
40451         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
40452         name.
40453         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
40454         file.
40455         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
40456         file.
40457         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
40458         multiarch strchrnul for PPC32.
40459         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
40460         multiarch objects.
40461         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40462         (__libc_ifunc_impl_list): Likewise.
40463
40464         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
40465         file.
40466         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
40467         multiarch strncasecmp for PPC32.
40468         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
40469         file.
40470         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
40471         multiarch strncasecmp_l for PPC32.
40472         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
40473         strncasecmp multiarch objects.
40474         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40475         (__libc_ifunc_impl_list): Likewise.
40476
40477         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
40478         file.
40479         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
40480         multiarch strncasecmp for PPC32.
40481         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
40482         New file.
40483         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
40484         multiarch strcasecmp_l for PPC32.
40485         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
40486         multiarch objects.
40487         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40488         (__libc_ifunc_impl_list): Likewise.
40489
40490         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
40491         file.
40492         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
40493         file.
40494         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
40495         multiarch strncmp for PPC32.
40496         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
40497         multiarch objects.
40498         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40499         (__libc_ifunc_impl_list): Likewise.
40500
40501         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
40502         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
40503         file.
40504         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
40505         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
40506         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
40507         multiarch objects.
40508         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40509         (__libc_ifunc_impl_list): Likewise.
40510
40511         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
40512         file.
40513         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
40514         file.
40515         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
40516         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
40517         multiarch objects.
40518         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40519         (__libc_ifunc_impl_list): Likewise.
40520
40521         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
40522         file.
40523         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
40524         file.
40525         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
40526         multiarch rawmemchr for PPC32.
40527         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
40528         multiarch objects.
40529         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40530         (__libc_ifunc_impl_list): Likewise.
40531
40532         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
40533         file.
40534         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
40535         file.
40536         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
40537         file: memrchr multiarch for PPC32.
40538         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
40539         multiarch objects.
40540         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40541         (__libc_ifunc_impl_list): Likewise.
40542
40543         * string/memchr.c (__memchr): Using macro to redefine symbol name.
40544         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
40545         file.
40546         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
40547         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
40548         multiarch memchr for PPC32.
40549         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
40550         multiarch objects.
40551         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40552         (__libc_ifunc_impl_list): Likewise.
40553
40554         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
40555         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
40556         file.
40557         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
40558         file.
40559         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
40560         file: multiarch mempcpy for PPC32.
40561         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
40562         multiarch objects.
40563         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40564         (__libc_ifunc_impl_list): Likewise.
40565
40566         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
40567         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
40568         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
40569         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
40570         multiarch bzero for PPC32.
40571         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
40572         file.
40573         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
40574         file.
40575         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
40576         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
40577         file: multiarch memset for PPC32.
40578         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
40579         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
40580         memset multiarch objects.
40581         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40582         (__libc_ifunc_impl_list): Likewise.
40583
40584         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
40585         file.
40586         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
40587         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
40588         memcmp for PPC32.
40589         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
40590         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
40591         multiarch objects.
40592         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40593         (__libc_ifunc_impl_list): Likewise.
40594
40595         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
40596         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
40597         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
40598         file.
40599         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
40600         file.
40601         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
40602         file.
40603         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
40604         multiarch memcpy for PPC32.
40605         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
40606         multiarch objects.
40607         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40608         (__libc_ifunc_impl_list): Likewise.
40609
40610         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
40611         support multiarch for POWER/PPC32.
40612         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
40613         Likewise.
40614         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
40615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
40616         Implies file to make multiarch folder appers before the fpu and
40617         default folder for power4 configuration.
40618
40619 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
40620
40621         * scripts/bench.pl: Append volatile keyword to type.
40622
40623 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40624
40625         * sysdeps/sh/sotruss-lib.c: New file.
40626         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
40627
40628 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40629
40630         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40631
40632 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
40633
40634         [BZ #6810]
40635         * math/w_tgamma.c: Include <errno.h>.
40636         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
40637         * math/w_tgammaf.c: Include <errno.h>.
40638         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
40639         * math/w_tgammal.c: Include <errno.h>.
40640         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
40641         * math/auto-libm-test-in: Do not allow missing errno on tgamma
40642         underflow.  Add more tgamma tests.
40643         * math/auto-libm-test-out: Regenerated.
40644         * sysdeps/i386/fpu/libm-test-ulps: Update.
40645         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40646
40647         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
40648         sin, sinh, tan, tanh, tgamma, y0 and y1.
40649         * math/auto-libm-test-out: Regenerated.
40650         * math/libm-test.inc (TEST_COND_x86_64): New macro.
40651         (TEST_COND_x86): Likewise.
40652         (M_E2l): Remove macro.
40653         (M_E3l): Likewise.
40654         (M_2_SQRT_PIl): Likewise.
40655         (M_SQRT_PIl): Likewise.
40656         (M_1_DIV_El): Likewise.
40657         (log_test_data): Use AUTO_TESTS_f_f.
40658         (log10_test_data): Likewise.
40659         (log1p_test_data): Likewise.
40660         (log2_test_data): Likewise.
40661         (sin_test_data): Likewise.
40662         (sin_tonearest_test_data): Likewise.
40663         (sin_towardzero_test_data): Likewise.
40664         (sin_downward_test_data): Likewise.
40665         (sin_upward_test_data): Likewise.
40666         (sinh_test_data): Likewise.
40667         (sinh_tonearest_test_data): Likewise.
40668         (sinh_towardzero_test_data): Likewise.
40669         (sinh_downward_test_data): Likewise.
40670         (sinh_upward_test_data): Likewise.
40671         (tan_test_data): Likewise.
40672         (tan_tonearest_test_data): Likewise.
40673         (tan_towardzero_test_data): Likewise.
40674         (tan_downward_test_data): Likewise.
40675         (tan_upward_test_data): Likewise.
40676         (tanh_test_data): Likewise.
40677         (tgamma_test_data): Likewise.
40678         (y0_test_data): Likewise.
40679         (y1_test_data): Likewise.
40680         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
40681         (special_real_inputs): Add pi/4.
40682         * sysdeps/i386/fpu/libm-test-ulps: Update.
40683         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40684
40685 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40686
40687         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
40688         "longjmp_target" static probes.
40689         (__longjmp): Rename to __longjmp_symbol.
40690         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
40691         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
40692         on which longjmp to generate.
40693         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
40694         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
40695         probe.
40696         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40697         (__sigjmp_save): Rename to __sigjmp_save_symbol.
40698         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
40699         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
40700         and __sigjmp_save_symbol based on which sigsetjmp to generated.
40701         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
40702         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
40703         __longjmp_symbol based on which __longjmp to generate.
40704         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
40705         probe.
40706         (setjmp): Rename to setjmp_symbol.
40707         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40708         (_setjmp): Rename to _setjmp_symbol.
40709         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40710         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
40711         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
40712         which setjmp to generate.
40713         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
40714         "longjmp_target" static probes.
40715
40716 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
40717
40718         * benchtests/README: Add note about output arguments.
40719         * benchtests/bench-sincos.c: Remove file.
40720         * benchtests/sincos-inputs: New file.
40721         * scripts/bench.pl: Identify output arguments and define
40722         static variables for them.
40723
40724         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
40725
40726         [BZ #15941]
40727         * Makefile (INSTALL): Add install-plain.texi as the primary
40728         dependency.
40729         * manual/install-plain.texi: New file.
40730         * manual/install.texi: Include node directive only for
40731         non-plaintext output.
40732
40733 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
40734
40735         * stdlib/longlong.h: Update from GCC.
40736
40737         [BZ #6807]
40738         [BZ #15901]
40739         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
40740         * math/w_j0f.c (y0f): Likewise.
40741         * math/w_j0l.c (__y0l): Likewise.
40742         * math/w_j1.c (y1): Likewise.
40743         * math/w_j1f.c (y1f): Likewise.
40744         * math/w_j1l.c (__y1l): Likewise.
40745         * math/w_jn.c (yn): Likewise.
40746         * math/w_jnf.c (ynf): Likewise.
40747         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
40748         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
40749         value for Bessel function domain errors outside _SVID_ mode.
40750         Adjust sign of return value for yn (negative integer, 0).
40751         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
40752         by zero in return for negative x and set sign appropriately for
40753         negative n.
40754         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
40755         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
40756         * math/libm-test.inc (y0_test_data): Add more tests and adjust
40757         expectations in error cases.
40758         (y1_test_data): Likewise.
40759         (yn_test_data): Likewise.
40760         * sysdeps/i386/fpu/libm-test-ulps: Update.
40761         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40762
40763 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40764
40765         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
40766         "64" to "64-v1".  Add "64-v2".
40767         (abi-64-options): Rename to ...
40768         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
40769         (abi-64-condition): Rename to ...
40770         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
40771         (abi-64-ld-soname): Rename to ...
40772         (abi-64-v1-ld-soname): ... this.
40773         (abi-64-v2-options): Define.
40774         (abi-64-v2-condition): Likewise.
40775         (abi-64-v2-ld-soname): Likewise.
40776         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
40777         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
40778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
40779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
40780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
40781
40782 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40783             Alan Modra  <amodra@gmail.com>
40784
40785         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
40786         New versions for use with the ELFv2 ABI.
40787         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
40788         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
40789         declaration.
40790         (struct La_ppc64v2_retval): Likewise.
40791         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
40792         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
40793         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
40794         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
40795         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
40796         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
40797         Do not save or restore CR.
40798         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
40799         (_dl_profile_resolve): Do no save or restore CR.  Support extended
40800         return values for ELFv2 ABI.  Fix location of FPR return registers.
40801         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
40802         updated values for _CALL_ELF == 2.
40803         (La_regs, La_retval, int_retval): Likewise.
40804
40805 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40806
40807         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
40808         (FRAME_MIN_SIZE_PARM): Likewise.
40809         (FRAME_BACKCHAIN): Likewise.
40810         (FRAME_CR_SAVE): Likewise.
40811         (FRAME_LR_SAVE): Likewise.
40812         (FRAME_TOC_SAVE): Likewise.
40813         (FRAME_PARM_SAVE): Likewise.
40814         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
40815         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
40816         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
40817         (call_mcount_parm_offset): New macro.
40818         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
40819         (PROF): Use symbolic stack frame offsets.
40820         (TAIL_CALL_SYSCALL_ERROR): Likewise.
40821         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
40822         Redefine in terms of FRAME_MIN_SIZE.
40823         (_dl_runtime_resolve): Use symbolic stack frame offsets.
40824         (_dl_profile_resolve): Likewise.  Update comment.
40825         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
40826         symbols stack frame offsets.
40827         (__sigsetjmp): Likewise.
40828         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
40829         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
40830         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
40831         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
40832
40833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
40834         (FRAME_BACKCHAIN): Remove.
40835         (FRAME_CR_SAVE): Likewise.
40836         (FRAME_LR_SAVE): Likewise.
40837         (FRAME_COMPILER_DW): Likewise.
40838         (FRAME_LINKER_DW): Likewise.
40839         (FRAME_TOC_SAVE): Likewise.
40840         (FRAME_PARM_SAVE): Likewise.
40841         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
40842         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
40843         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
40844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
40845         (CHECK_SP): Use symbolic stack frame offsets.
40846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
40847         zone" instead of caller's parameter save area for temp storage.
40848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
40849         Likewise.  Also, use symbolic stack frame offsets.
40850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
40851         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
40852         our own stack frame instead of the caller's.
40853         (__socket): Use symbolic stack frame offsets.
40854
40855 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40856             Alan Modra  <amodra@gmail.com>
40857
40858         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
40859         Define.
40860         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
40861         (PPC64_LOCAL_ENTRY_OFFSET): Define.
40862         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
40863         New function.
40864         (elf_machine_fixup_plt): Call it.
40865         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
40866         reloc arguments.
40867         (elf_machine_rela): Update call to elf_machine_plt_conflict.
40868         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
40869         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
40870         r2 before calling target.
40871
40872 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40873             Alan Modra  <amodra@gmail.com>
40874
40875         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
40876         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
40877         versions of macros to support ELFv2 ABI.
40878         (LOCALENTRY): New macro.
40879         (ENTRY, EALIGN): Use it.
40880         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
40881         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
40882         fall through into ENTRY entry point.
40883         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
40884         Only define if _CALL_ELF != 2.
40885
40886         (elf_machine_matches_host): Verify ABI version matches.
40887         (RTLD_START): Use LOCALENTRY.
40888         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
40889         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
40890         (PLT_ENTRY_WORDS): New macro.
40891         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
40892         (elf_machine_runtime_setup): Support ELFv2 ABI.
40893         (elf_machine_fixup_plt): Likewise.
40894         (elf_machine_plt_conflict): Likewise.
40895         (resolve_ifunc): Likewise.
40896         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
40897         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
40898         Likewise.
40899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
40900         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
40901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
40902         (makecontext): Support ELFv2 ABI.
40903         * elf/elf.h (EF_PPC64_ABI): Define.
40904
40905 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40906
40907         * sysdeps/powerpc/powerpc64/sysdep.h
40908         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
40909         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
40910         (ENTRY) [ASSEMBLER]: ... but instead here ...
40911         (EALIGN) [ASSEMBLER]: ... and here.
40912         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
40913         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
40914         (ENTRY_2) [!ASSEMBLER]: Use it.
40915         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
40916         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
40917         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
40918         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
40919         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
40920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
40921         Use PPC64_LOAD_FUNCPTR.
40922
40923         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
40924
40925 2013-12-04  Alan Modra  <amodra@gmail.com>
40926
40927         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
40928         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
40929         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
40930         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
40931
40932         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
40933         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
40934         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
40935         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
40936         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
40937         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
40938
40939 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40940
40941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
40942         (__makecontext): Fix incorrect CFI when backtracing out of
40943         context created via makecontext.
40944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
40945         (__setcontext): Fix incorrect CFI during switch to new context.
40946         (__novec_setcontext): Likewise.
40947
40948 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
40949
40950         [BZ #4772]
40951         * time/strptime_l.c (__strptime_internal): Allow modifiers
40952         in strptime.
40953         * time/tst-strptime.c (day_tests): Add testcase.
40954
40955 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
40956
40957         * scripts/bench.pl: Skip over blank lines.
40958
40959 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
40960
40961         [BZ #926]
40962         * manual/time.texi (Calendar Time): Clarify what timezone functions
40963         use.
40964
40965 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40966
40967         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40968
40969 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
40970
40971         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
40972         implementation.
40973         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
40974         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
40975         * debug/memset_chk.c (__memset_chk): Likewise.
40976         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
40977         * debug/strncpy_chk.c: Likewise.
40978
40979 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
40980
40981         [BZ #15268]
40982         [BZ #15425]
40983         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
40984         (__ieee754_exp): For possibly underflowing results, check size of
40985         result and force underflow exception if required.
40986         * math/auto-libm-test-in: Add more tests of exp.
40987         * math/auto-libm-test-out: Regenerated.
40988         * sysdeps/i386/fpu/libm-test-ulps: Update.
40989         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40990
40991         [BZ #16283]
40992         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
40993         * math/w_exp2f.c (__exp2f): Likewise.
40994         * math/w_exp2l.c (__exp2l): Likewise.
40995         * math/auto-libm-test-in: Do not allow missing errno on exp2
40996         underflow.
40997         * math/auto-libm-test-out: Regenerated.
40998
40999 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
41000
41001         [BZ #16274]
41002         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
41003         handle filename validation.
41004         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
41005         (do_open): Delete.
41006
41007 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41008
41009         [BZ #6786]
41010         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
41011         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
41012         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
41013         <float.h>.
41014         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
41015         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
41016         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41017         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
41018         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41019         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
41020         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41021         * math/auto-libm-test-in: Don't allow missing errno from erfc.
41022         Add more erfc tests.
41023         * math/auto-libm-test-out: Regenerated.
41024         * sysdeps/i386/fpu/libm-test-ulps: Update.
41025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41026
41027         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
41028         exp2, expm1, j0 and j1.
41029         * math/auto-libm-test-out: Regenerated.
41030         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
41031         (erfc_test_data): Likewise.
41032         (exp_test_data): Likewise.
41033         (exp_tonearest_test_data): Likewise.
41034         (exp_towardzero_test_data): Likewise.
41035         (exp_downward_test_data): Likewise.
41036         (exp_upward_test_data): Likewise.
41037         (exp10_test_data): Likewise.
41038         (exp2_test_data): Likewise.
41039         (expm1_test_data): Likewise.
41040         (j0_test_data): Likewise.
41041         (j1_test_data): Likewise.
41042         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
41043         (input_flag_type): Add flag_xfail_rounding.
41044         (input_flags): Add xfail-rounding.
41045         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
41046         (output_for_one_input_case): Handle flag_xfail_rounding.
41047         * sysdeps/i386/fpu/libm-test-ulps: Update.
41048         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41049
41050 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
41051
41052         [BZ #16289]
41053         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
41054         division by 0.
41055
41056 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
41057
41058         [BZ #16195]
41059         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
41060         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
41061         (STAP_PROBE0): New macro.
41062         (STAP_PROBE1): Likewise.
41063         (STAP_PROBE2): Likewise.
41064         (STAP_PROBE3): Likewise.
41065         (STAP_PROBE4): Likewise.
41066
41067 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
41068
41069         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
41070
41071 2013-12-02  Steve Ellcey  <sellcey@mips.com>
41072
41073         * benchtests/Makefile (bench): Add sqrt.
41074         (LDLIBS-bench-sqrt): New.
41075         * benchtests/sqrt-input: New.
41076
41077 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
41078
41079         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
41080         (GAIH_EAI): Likewise.
41081         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
41082         (gaih_inet): Likewise.
41083         (getaddrinfo): Don't use GAIH_EAI.
41084
41085         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
41086         (struct gaih): Remove definition.
41087
41088 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
41089
41090         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
41091         Use HERRNOP directly.
41092
41093 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41094
41095         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41096
41097 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
41098
41099         * math/gen-auto-libm-tests.c (test_functions): Add more
41100         single-argument functions.
41101         (special_fill_pi_2): New function.
41102         (special_fill_minus_pi_2): Likewise.
41103         (special_fill_pi_6): Likewise.
41104         (special_fill_minus_pi_6): Likewise.
41105         (special_fill_pi_3): Likewise.
41106         (special_fill_2pi_3): Likewise.
41107         (special_fill_e): Likewise.
41108         (special_fill_1_e): Likewise.
41109         (special_fill_e_minus_1): Likewise.
41110         (special_real_inputs): Add more special inputs.
41111         (output_for_one_input_case): Do not require ERANGE on underflow to
41112         zero if round-to-nearest result does not underflow to zero, unless
41113         exact results required.
41114         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
41115         atan, atanh, cbrt, cos and cosh.
41116         * math/auto-libm-test-out: Regenerated.
41117         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
41118         (acos_tonearest_test_data): Likewise.
41119         (acos_towardzero_test_data): Likewise.
41120         (acos_downward_test_data): Likewise.
41121         (acos_upward_test_data): Likewise.
41122         (acosh_test_data): Likewise.
41123         (asin_test_data): Likewise.
41124         (asin_tonearest_test_data): Likewise.
41125         (asin_towardzero_test_data): Likewise.
41126         (asin_upward_test_data): Likewise.
41127         (asinh_test_data): Likewise.
41128         (atan_test_data): Likewise.
41129         (atanh_test_data): Likewise.
41130         (cbrt_test_data): Likewise.
41131         (cos_test_data): Likewise.
41132         (cos_tonearest_test_data): Likewise.
41133         (cos_towardzero_test_data): Likewise.
41134         (cos_downward_test_data): Likewise.
41135         (cos_upward_test_data): Likewise.
41136         (cosh_test_data): Likewise.
41137         (cosh_tonearest_test_data): Likewise.
41138         (cosh_towardzero_test_data): Likewise.
41139         (cosh_downward_test_data): Likewise.
41140         (cosh_upward_test_data): Likewise.
41141         * sysdeps/i386/fpu/libm-test-ulps: Update.
41142         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41143
41144 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
41145
41146         [BZ #6787]
41147         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
41148         * math/w_exp10f.c (__exp10f): Likewise.
41149         * math/w_exp10l.c (__exp10l): Likewise.
41150         * math/libm-test.inc (exp10_test_data): Add more tests and expect
41151         errno settings in existing tests.
41152
41153         [BZ #14032]
41154         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
41155         precision control set to double precision.
41156         * sysdeps/i386/fpu/w_sqrt.c: New file.
41157         * math/auto-libm-test-in: Add more tests.
41158         * math/auto-libm-test-out: Update.
41159
41160         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
41161         (sqrt_test_tonearest): New function.
41162         (sqrt_towardzero_test_data): New variable.
41163         (sqrt_test_towardzero): New function.
41164         (sqrt_downward_test_data): New variable.
41165         (sqrt_test_downward): New function.
41166         (sqrt_upward_test_data): New variable.
41167         (sqrt_test_upward): New function.
41168         (main): Call the new functions.
41169
41170         * math/gen-auto-libm-tests.c: New file.
41171         * math/auto-libm-test-in: Likewise.
41172         * math/auto-libm-test-out: New generated file.
41173         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
41174         variables.
41175         (%beautify): Add generated representations of zero.
41176         (top level): Set $auto_input and call parse_auto_input.
41177         (beautify): Remove trailing "f" from hex float constants.
41178         (parse_args): Handle XFAIL_TEST.
41179         (convert_condition): New function.
41180         (or_value): Likewise.
41181         (or_cond_value): Likewise.
41182         (generate_testfile): Handle AUTO_TESTS_* lines.
41183         (parse_auto_input): New function.
41184         * math/libm-test.inc (XFAIL_TEST): New macro.
41185         (ERRNO_UNCHANGED): Update value.
41186         (ERRNO_EDOM): Likewise.
41187         (ERRNO_ERANGE): Likewise.
41188         (IGNORE_RESULT): Likewise.
41189         (TEST_COND_flt_32): New macro.
41190         (TEST_COND_dbl_64): Likewise.
41191         (TEST_COND_ldbl_96_intel): Likewise.
41192         (TEST_COND_ldbl_96_m68k): Likewise.
41193         (TEST_COND_ldbl_128): Likewise.
41194         (TEST_COND_ldbl_128ibm): Likewise.
41195         (TEST_COND_long32): Likewise.
41196         (TEST_COND_long64): Likewise.
41197         (TEST_COND_before_rounding): Likewise.
41198         (TEST_COND_after_rounding): Likewise.
41199         (enable_test): Handle XFAIL_TEST flag.
41200         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
41201         with finite results.
41202         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
41203         auto-libm-test-out.
41204
41205 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
41206             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41207
41208         [BZ #16214]
41209         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
41210         __tls_get_addr_internal instead of __tls_get_offset in order to
41211         avoid GOT pointer dependency.  Make rtld export
41212         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
41213         __tls_get_addr since we are a __tls_get_offset platform.
41214         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
41215         GOT pointer being set up before.
41216         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
41217
41218 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
41219
41220         * manual/math.texi (Errors in Math Functions): Document accuracy
41221         goals.
41222
41223         [BZ #15004]
41224         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
41225         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
41226         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
41227         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
41228         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
41229         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
41230         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
41231         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
41232         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
41233         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
41234         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
41235         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
41236         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
41237         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
41238         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
41239         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
41240
41241         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
41242         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
41243         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
41244         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
41245         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
41246         Likewise.
41247         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
41248         Likewise.
41249         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
41250         Likewise.
41251         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
41252         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
41253         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
41254         atomic-feupdateenv and flt-rounds.
41255         * sysdeps/powerpc/nofpu/Versions (libc): Add
41256         __atomic_feholdexcept, __atomic_feclearexcept,
41257         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
41258         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
41259         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
41260         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
41261         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
41262         here.
41263         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
41264         Update.
41265
41266         * manual/arith.texi (FP Exceptions): Document that exceptions may
41267         not be raised when matherr is used.
41268         (Math Error Reporting): Document overflow in directed rounding
41269         modes.  Document that errno may not be set when finite values are
41270         returned on overflow.  Document intent to set errno on underflow
41271         only for underflow to zero.
41272
41273         [BZ #16271]
41274         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
41275         round-to-nearest then adjust result for other rounding modes.
41276         * include/fenv.h (fegetround): Use libm_hidden_proto.
41277         * math/fegetround.c (fegetround): Use libm_hidden_def.
41278         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
41279         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
41280         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41281         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
41282         Likewise.
41283         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
41284         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
41285         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
41286         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
41287
41288 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41289
41290         [BZ #16077]
41291         * nss/Versions (libnss_files): Add
41292         _nss_files_gethostbyname3_r.
41293         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
41294         New function.
41295         (HOST_DB_LOOKUP): Remove macro.
41296         (_nss_files_gethostbyname_r): Implement function without the
41297         HOST_DB_LOOKUP macro.
41298         (_nss_files_gethostbyname2_r): Likewise.
41299
41300 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
41301
41302         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
41303
41304 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
41305
41306         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
41307         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
41308         warning.
41309
41310 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41311
41312         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
41313         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
41314         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
41315         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
41316         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
41317         __fe_nomask_env_priv and attribute_hidden.
41318         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
41319         (libc_feupdateenv_test_ppc): Likewise.
41320         (libc_feresetround_ppc): Likewise.
41321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41322         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
41323         compat_symbol macro.
41324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41325         (__fe_nomask_env): Likewise.
41326         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
41327
41328 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41329
41330         * string/Makefile: Remove ifunc tests.
41331         * string/test-string.h: Define TEST_IFUNC.
41332         * string/test-bcopy-ifunc.c: Remove.
41333         * string/test-bzero-ifunc.c: Likewise.
41334         * string/test-memccpy-ifunc.c: Likewise.
41335         * string/test-memchr-ifunc.c: Likewise.
41336         * string/test-memcmp-ifunc.c: Likewise.
41337         * string/test-memcpy-ifunc.c: Likewise.
41338         * string/test-memmem-ifunc.c: Likewise.
41339         * string/test-memmove-ifunc.c: Likewise.
41340         * string/test-mempcpy-ifunc.c: Likewise.
41341         * string/test-memrchr-ifunc.c: Likewise.
41342         * string/test-memset-ifunc.c: Likewise.
41343         * string/test-rawmemchr-ifunc.c: Likewise.
41344         * string/test-stpcpy-ifunc.c: Likewise.
41345         * string/test-stpncpy-ifunc.c: Likewise.
41346         * string/test-strcasecmp-ifunc.c: Likewise.
41347         * string/test-strcasestr-ifunc.c: Likewise.
41348         * string/test-strcat-ifunc.c: Likewise.
41349         * string/test-strchr-ifunc.c: Likewise.
41350         * string/test-strchrnul-ifunc.c: Likewise.
41351         * string/test-strcmp-ifunc.c: Likewise.
41352         * string/test-strcpy-ifunc.c: Likewise.
41353         * string/test-strcspn-ifunc.c: Likewise.
41354         * string/test-strlen-ifunc.c: Likewise.
41355         * string/test-strncasecmp-ifunc.c: Likewise.
41356         * string/test-strncat-ifunc.c: Likewise.
41357         * string/test-strncmp-ifunc.c: Likewise.
41358         * string/test-strncpy-ifunc.c: Likewise.
41359         * string/test-strnlen-ifunc.c: Likewise.
41360         * string/test-strpbrk-ifunc.c: Likewise.
41361         * string/test-strrchr-ifunc.c: Likewise.
41362         * string/test-strspn-ifunc.c: Likewise.
41363         * string/test-strstr-ifunc.c: Likewise.
41364
41365 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41366
41367         * benchtests/Makefile: Remove ifunc tests.
41368         * benchtests/bench-string.h: Define TEST_IFUNC.
41369         * benchtests/bench-bcopy-ifunc.c: Remove.
41370         * benchtests/bench-bzero-ifunc.c: Likewise.
41371         * benchtests/bench-memccpy-ifunc.c: Likewise.
41372         * benchtests/bench-memchr-ifunc.c: Likewise.
41373         * benchtests/bench-memcmp-ifunc.c: Likewise.
41374         * benchtests/bench-memcpy-ifunc.c: Likewise.
41375         * benchtests/bench-memmem-ifunc.c: Likewise.
41376         * benchtests/bench-memmove-ifunc.c: Likewise.
41377         * benchtests/bench-mempcpy-ifunc.c: Likewise.
41378         * benchtests/bench-memrchr-ifunc.c: Likewise.
41379         * benchtests/bench-memset-ifunc.c: Likewise.
41380         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
41381         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
41382         * benchtests/bench-stpcpy-ifunc.c: Likewise.
41383         * benchtests/bench-stpncpy-ifunc.c: Likewise.
41384         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
41385         * benchtests/bench-strcasestr-ifunc.c: Likewise.
41386         * benchtests/bench-strcat-ifunc.c: Likewise.
41387         * benchtests/bench-strchr-ifunc.c: Likewise.
41388         * benchtests/bench-strchrnul-ifunc.c: Likewise.
41389         * benchtests/bench-strcmp-ifunc.c: Likewise.
41390         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
41391         * benchtests/bench-strcpy-ifunc.c: Likewise.
41392         * benchtests/bench-strcspn-ifunc.c: Likewise.
41393         * benchtests/bench-strlen-ifunc.c: Likewise.
41394         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
41395         * benchtests/bench-strncat-ifunc.c: Likewise.
41396         * benchtests/bench-strncmp-ifunc.c: Likewise.
41397         * benchtests/bench-strncpy-ifunc.c: Likewise.
41398         * benchtests/bench-strnlen-ifunc.c: Likewise.
41399         * benchtests/bench-strpbrk-ifunc.c: Likewise.
41400         * benchtests/bench-strrchr-ifunc.c: Likewise.
41401         * benchtests/bench-strsep-ifunc.c: Likewise.
41402         * benchtests/bench-strspn-ifunc.c: Likewise.
41403         * benchtests/bench-strstr-ifunc.c: Likewise.
41404
41405 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41406
41407         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
41408
41409 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41410
41411         * resolv/netdb.h: Use __glibc_reserved instead __unused.
41412         * rt/aio.h: Likewise.
41413         * sysdeps/gnu/bits/utmp.h: Likewise.
41414         * sysdeps/gnu/bits/utmpx.h: Likewise.
41415         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
41416         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
41417         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
41418         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
41419         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
41420         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
41421         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
41422         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
41423         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
41424         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
41425         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
41426         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
41427         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
41428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
41429         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
41430         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
41431         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
41432         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
41433         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
41434         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
41435         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
41436         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
41437         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
41438         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
41439         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
41440         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
41441         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
41442         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
41443         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
41444         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
41445         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
41446         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
41447         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
41448         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
41449         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
41450         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
41451         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
41452         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
41453         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
41454         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
41455         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
41456         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
41457
41458 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
41459
41460         [BZ #16245]
41461         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
41462         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
41463
41464 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
41465
41466         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
41467         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
41468         Likewise.
41469
41470 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41471
41472         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
41473         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
41474         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
41475         (__fesetround): Remove define.
41476         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
41477         rounding and exceptions handling.
41478         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
41479         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
41480         (__fe_nomask_env): Likewise.
41481         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
41482         __fegetround instead of fegetround.
41483         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
41484         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
41485
41486 2013-11-21  Roland McGrath  <roland@hack.frob.com>
41487
41488         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
41489         it's there.
41490
41491         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
41492
41493 2013-11-21  Meador Inge  <meadori@codesourcery.com>
41494
41495         [BZ #11157]
41496         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
41497         (encrypt_r): Likewise.
41498         * malloc/obstack.h (obstack_free): Likewise.
41499         * posix/unistd.h (encrypt): Likewise.
41500
41501 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
41502
41503         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
41504         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
41505         DL_CALL_DT_FINI() that call the functions directly.
41506         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
41507         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
41508         * elf/dl-fini.c: Likewise.
41509
41510 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
41511
41512         * malloc/hooks.c (memalign_check): Add alignment rounding.
41513         * malloc/malloc.c (_mid_memalign): New function.
41514         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
41515         Implement by calling _mid_memalign.
41516         * manual/probes.texi (Memory Allocation Probes): Remove
41517         memory_valloc_retry and memory_pvalloc_retry.
41518
41519 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
41520
41521         * locale/programs/locarchive.c (open_archive): Add const
41522         qualifier to ARCHIVEFNAME and copy default fname to
41523         DEFAULT_FNAME.
41524
41525         [BZ #15601]
41526         * libio/tst-widetext.input: Rename Oriya to Odia.
41527         * locale/iso-639.def: Likewise.
41528
41529         * manual/probes.texi (Mathematical Function Probes): Add
41530         documentation for sin, cos, asin and acos probes.
41531         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
41532         (__sin32): Add slowasin probe.
41533         (__cos32): Add slowacos probe.
41534         (__mpsin): Add slowsin probe.
41535         (__mpcos): Add slowcos probe.
41536
41537 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
41538
41539         [BZ #15483]
41540         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
41541         thread-local __sim_exceptions_thread and global
41542         __sim_exceptions_global.
41543         (__sim_disabled_exceptions): Change to thread-local
41544         __sim_disabled_exceptions_thread and global
41545         __sim_disabled_exceptions_global.
41546         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41547         and global __sim_round_mode_global.
41548         (__simulate_exceptions): Use thread-local floating-point state and
41549         set global state from it as needed.
41550         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
41551         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
41552         __sim_round_mode_thread.
41553         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
41554         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
41555         and global __sim_exceptions_global.
41556         (__sim_disabled_exceptions): Change to thread-local
41557         __sim_disabled_exceptions_thread and global
41558         __sim_disabled_exceptions_global.
41559         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41560         and global __sim_round_mode_global.
41561         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
41562         (SIM_SET_GLOBAL): Likewise.
41563         * sysdeps/powerpc/soft-fp/sfp-machine.h
41564         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
41565         __sim_round_mode_thread.
41566         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
41567         __sim_disabled_exceptions_thread.
41568         (__sim_exceptions): Change to __sim_exceptions_thread.
41569         (__sim_disabled_exceptions): Change to
41570         __sim_disabled_exceptions_thread.
41571         (__sim_round_mode): Change to __sim_round_mode_thread.
41572         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
41573         thread-local floating-point state and set global state from it as
41574         needed.
41575         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
41576         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
41577         (__sim_disabled_exceptions): Remove extern declaration.
41578         (feenableexcept): Use thread-local floating-point state and set
41579         global state from it as needed.
41580         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
41581         extern declaration.
41582         (__sim_disabled_exceptions): Likewise.
41583         (__sim_round_mode): Likewise.
41584         (__fegetenv): Use thread-local floating-point state.
41585         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
41586         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41587         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
41588         floating-point state and set global state from it as needed.
41589         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
41590         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
41591         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
41592         Likewise.
41593         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
41594         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
41595         Likewise.
41596         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
41597         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
41598         Use __sim_round_mode_thread.
41599         * math/test-fenv-tls.c: New file.
41600         * math/Makefile (tests): Add test-fenv-tls.
41601         ($(objpfx)test-fenv-tls): Depend on
41602         $(common-objpfx)nptl/libpthread.so.
41603
41604 2013-11-19  Andreas Schwab  <schwab@suse.de>
41605
41606         * locale/programs/locale.c (show_info): Decode wordarray elements.
41607         * locale/categories.def (LC_MONETARY): Add element for
41608         _NL_MONETARY_CRNCYSTR.
41609         * locale/C-monetary.c (conversion_rate): New variable.
41610         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
41611         element.
41612
41613 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
41614
41615         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
41616         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
41617
41618 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
41619
41620         * elf/Makefile (tst-auxv): New test.
41621         * elf/tst-auxv.c: New
41622         * elf/rtld.c (dl_main): Adjust AT_EXECFN
41623
41624 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
41625
41626         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
41627         (hidden_proto): Caller changed.
41628         (hidden_tls_proto): New macro.
41629         (libc_hidden_tls_proto): Likewise.
41630         (rtld_hidden_tls_proto): Likewise.
41631         (libm_hidden_tls_proto): Likewise.
41632         (libresolv_hidden_tls_proto): Likewise.
41633         (librt_hidden_tls_proto): Likewise.
41634         (libdl_hidden_tls_proto): Likewise.
41635         (libnss_files_hidden_tls_proto): Likewise.
41636         (libnsl_hidden_tls_proto): Likewise.
41637         (libnss_nisplus_hidden_tls_proto): Likewise.
41638         (libutil_hidden_tls_proto): Likewise.
41639
41640 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
41641
41642         [BZ #10253]
41643         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
41644         (decompose_rpath): Defer expansion to fillin_rpath.
41645         (_dl_init_paths): Pass linkmap to fillin_rpath.
41646
41647 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
41648
41649         * benchtests/Makefile: Add strsep.
41650         * benchtests/bench-strsep.c: New file: strsep benchtest.
41651         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
41652
41653 2013-11-18  Andreas Schwab  <schwab@suse.de>
41654
41655         * locale/programs/locale.c (show_info) [case byte]: Check for
41656         '\377' instead of '\177'.
41657         * locale/C-monetary.c (not_available): Always use "\377".
41658         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
41659         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
41660         detect unavailable sign_posn locale elements.
41661         * locale/localeconv.c (__localeconv): For grouping and
41662         mon_grouping handle "\177" and "\377" like no grouping.
41663         (INT_ELEM): New macro.  Use it to set all numeric members.
41664         * locale/programs/ld-monetary.c (monetary_read)
41665         <tok_mon_grouping>: Normalize single -1 to the empty string.
41666         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
41667         Likewise.
41668
41669 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
41670
41671         [BZ #16055]
41672         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
41673         when we match (nil).
41674         * stdio-common/tst-sscanf.c (struct test): Add testcase.
41675
41676 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
41677
41678         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
41679         (NO_TEST_INLINE): Update value.
41680         (ERRNO_UNCHANGED): Likewise.
41681         (ERRNO_EDOM): Likewise.
41682         (ERRNO_ERANGE): Likewise.
41683         (IGNORE_RESULT): Likewise.
41684         (check_float_internal): Check signs of NaN results if
41685         TEST_NAN_SIGN used.
41686         (check_complex): Pass TEST_NAN_SIGN flag through to second
41687         check_float_internal call.
41688         (copysign_test_data): Add tests with quiet NaNs as second
41689         argument.  Use TEST_NAN_SIGN.
41690         (fabs_test_data): Add test of negative quiet NaN argument.  Use
41691         TEST_NAN_SIGN.
41692         (signbit_test_data): Add tests of quiet NaN argument.
41693         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
41694
41695         * math/gen-libm-test.pl (show_exceptions): Take extra argument
41696         $ignore_result.
41697         (parse_args): Handle function results specified as IGNORE.
41698         * math/libm-test.inc (IGNORE_RESULT): New macro.
41699         (check_float_internal): Do not check numerical result if flag
41700         IGNORE_RESULT set.
41701         (check_complex): Pass through IGNORE_RESULT to second
41702         check_float_internal call.
41703         (check_int): Do not check numerical result if flag IGNORE_RESULT
41704         set.
41705         (check_long): Likewise.
41706         (check_bool): Likewise.
41707         (check_longlong): Likewise.
41708         (lrint_test_data): Add tests of infinite and NaN arguments.
41709         (lrint_tonearest_test_data): Likewise.
41710         (lrint_towardzero_test_data): Likewise.
41711         (lrint_downward_test_data): Likewise.
41712         (lrint_upward_test_data): Likewise.
41713         (llrint_test_data): Likewise.
41714         (llrint_tonearest_test_data): Likewise.
41715         (llrint_towardzero_test_data): Likewise.
41716         (llrint_downward_test_data): Likewise.
41717         (llrint_upward_test_data): Likewise.
41718         (lround_test_data): Likewise.
41719         (llround_test_data): Likewise.
41720
41721         * math/libm-test.inc (NO_TEST_INLINE): New macro.
41722         (ERRNO_UNCHANGED): Update value.
41723         (ERRNO_EDOM): Likewise.
41724         (ERRNO_ERANGE): Likewise.
41725         (NO_TEST_INLINE_FLOAT): New macro.
41726         (NO_TEST_INLINE_DOUBLE): Likewise.
41727         (enable_test): New function.
41728         (RUN_TEST_f_f): Check enable_test before running test.
41729         (RUN_TEST_2_f): Likewise.
41730         (RUN_TEST_fff_f): Likewise.
41731         (RUN_TEST_c_f): Likewise.
41732         (RUN_TEST_f_f1): Likewise.
41733         (RUN_TEST_fF_f1): Likewise.
41734         (RUN_TEST_fI_f1): Likewise.
41735         (RUN_TEST_ffI_f1): Likewise.
41736         (RUN_TEST_c_c): Likewise.
41737         (RUN_TEST_cc_c): Likewise.
41738         (RUN_TEST_f_i): Likewise.
41739         (RUN_TEST_f_i_tg): Likewise.
41740         (RUN_TEST_ff_i_tg): Likewise.
41741         (RUN_TEST_f_b): Likewise.
41742         (RUN_TEST_f_b_tg): Likewise.
41743         (RUN_TEST_f_l): Likewise.
41744         (RUN_TEST_f_L): Likewise.
41745         (RUN_TEST_fFF_11): Likewise.
41746         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
41747         conditionals.
41748         (cosh_test_data): Likewise.
41749         (exp_test_data): Likewise.
41750         (expm1_test_data): Likewise.
41751         (hypot_test_data): Likewise.
41752         (pow_test_data): Likewise.
41753         (sinh_test_data): Likewise.
41754         (tanh_test_data): Likewise.
41755         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
41756         flags argument.
41757
41758         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
41759         tests with quiet NaN input and output.
41760         (acosh_test_data): Likewise.
41761         (asin_test_data): Likewise.
41762         (asinh_test_data): Likewise.
41763         (atan_test_data): Likewise.
41764         (atanh_test_data): Likewise.
41765         (atan2_test_data): Likewise.
41766         (cbrt_test_data): Likewise.
41767         (cos_test_data): Likewise.
41768         (cosh_test_data): Likewise.
41769         (erf_test_data): Likewise.
41770         (erfc_test_data): Likewise.
41771         (exp_test_data): Likewise.
41772         (exp10_test_data): Likewise.
41773         (exp2_test_data): Likewise.
41774         (expm1_test_data): Likewise.
41775         (hypot_test_data): Likewise.
41776         (j0_test_data): Likewise.
41777         (j1_test_data): Likewise.
41778         (jn_test_data): Likewise.
41779         (lgamma_test_data): Likewise.
41780         (log_test_data): Likewise.
41781         (log10_test_data): Likewise.
41782         (log1p_test_data): Likewise.
41783         (log2_test_data): Likewise.
41784         (pow_test_data): Likewise.
41785         (scalb_test_data): Likewise.
41786         (sin_test_data): Likewise.
41787         (sincos_test_data): Likewise.
41788         (sinh_test_data): Likewise.
41789         (tan_test_data): Likewise.
41790         (tanh_test_data): Likewise.
41791         (tgamma_test_data): Likewise.
41792         (y0_test_data): Likewise.
41793         (y1_test_data): Likewise.
41794         (yn_test_data): Likewise.
41795
41796         [BZ #16167]
41797         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
41798         argument being NaN and avoid computations with second argument in
41799         that case.
41800         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
41801         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
41802         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
41803
41804 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
41805
41806         * locale/iso-639.def: Add Chitwani Tharu (the).
41807
41808 2013-11-14  Andreas Schwab  <schwab@suse.de>
41809
41810         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
41811         word instead of empty string.
41812
41813 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41814
41815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41816         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
41817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41818         (__fe_nomask_env): Likewise.
41819
41820 2013-11-13  Steve Ellcey  <sellcey@mips.com>
41821
41822         * benchtests/bench-timing.h: Include time.h.
41823
41824 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
41825
41826         [BZ #15997]
41827         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
41828         to 3.4.0 for x32.
41829         * sysdeps/unix/sysv/linux/configure: Regenerated.
41830
41831 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
41832
41833         [BZ #16151]
41834         * stdlib/strtod_l.c (round_and_return): Do not consider
41835         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
41836         exponent one less than half the least subnormal exponent.
41837         * stdlib/test-strtod-round-data: Add more tests.
41838         * stdlib/tst-strtod-round.c (tests): Regenerated.
41839
41840 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41841
41842         [BZ #14143]
41843         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
41844         (__fe_mask_env): Likewise.
41845         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
41846         libm_hidden_proto and add function prototype.
41847         (__fe_mask_env): Add function prototype.
41848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41849         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
41850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
41851         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
41852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41853         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
41854
41855 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
41856
41857         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
41858         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
41859
41860 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
41861
41862         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
41863         of htab_find_slot().
41864
41865 2013-11-11  David S. Miller  <davem@davemloft.net>
41866
41867         [BZ #16150]
41868         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
41869         symbol in the non-vis3 case in static builds.
41870         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
41871         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
41872         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
41873         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
41874
41875 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
41876
41877         [BZ #387]
41878         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
41879         it is empty.
41880
41881 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41882
41883         * benchtests/Makefile: Add bench-strtod.
41884         * benchtests/bench-strtod.c: New file: strtod benchtest
41885
41886 2013-11-11  Andreas Schwab  <schwab@suse.de>
41887
41888         [BZ #16153]
41889         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
41890         terminating NUL in key length.
41891
41892 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41893
41894         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
41895         Add artificial ODP entry for vDSO symbol for PPC64.
41896         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
41897         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
41898
41899 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
41900
41901         [BZ #15374]
41902         * nss/getent.c (services_keys): Recognize services starting with digit.
41903
41904 2013-11-06  David S. Miller  <davem@davemloft.net>
41905
41906         [BZ #15985]
41907         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
41908         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
41909
41910 2013-11-06  Will Newton  <will.newton@linaro.org>
41911
41912         * manual/memory.texi (Malloc Examples): Remove register
41913         keyword from examples.
41914
41915 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
41916
41917         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
41918
41919 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
41920
41921         [BZ #6981]
41922         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
41923         depending on [__GCC_IEC_559 > 0].
41924         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
41925         depending on [__GCC_IEC_559_COMPLEX > 0].
41926
41927 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
41928
41929         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
41930         to iso-639.def.
41931
41932 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
41933
41934         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
41935
41936 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
41937
41938         [BZ #16112]
41939         * malloc/malloc (malloc_info): Do not handle first bin as
41940         special case.
41941
41942 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
41943
41944         * locale/iso-639.def: Add Central Nahuatl (nhn).
41945
41946 2013-11-01  Bruno Haible  <bruno@clisp.org>
41947
41948         [BZ #7003]
41949         * manual/math.texi (BSD Random): Specify range upper bound as
41950         in POSIX.
41951
41952 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
41953
41954         * locale/iso-639.def: Add Meadow Mari (mhr).
41955
41956 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
41957
41958         [BZ #14752], [BZ #15763]
41959         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
41960         Validate name.
41961         * rt/tst_shm.c: Add test for escaping directory.
41962
41963 2013-10-31  Andreas Schwab  <schwab@suse.de>
41964
41965         [BZ #15917]
41966         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
41967         followed by 'x' as part of digit sequence.
41968         * stdio-common/tst-sscanf.c (double_tests2): New tests.
41969
41970 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
41971
41972         [BZ #16037]
41973         * configure.ac: allow GNU Make 4.0 and greater.
41974         * configure: Regenerated.
41975
41976 2013-10-30  Will Newton  <will.newton@linaro.org>
41977
41978         [BZ #16038]
41979         * malloc/hooks.c (memalign_check): Limit alignment to the
41980         maximum representable power of two.
41981         * malloc/malloc.c (__libc_memalign): Likewise.
41982         * malloc/tst-memalign.c (do_test): Add test for very
41983         large alignment values.
41984         * malloc/tst-posix_memalign.c (do_test): Likewise.
41985
41986 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
41987
41988         [BZ #11087]
41989         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
41990         (munmap_chunk): Likewise.
41991         (mremap_chunk): Likewise.
41992
41993 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
41994
41995         [BZ #15799]
41996         * stdlib/div.c (div): Remove obsolete code.
41997         * stdlib/ldiv.c (ldiv): Likewise.
41998         * stdlib/lldiv.c (lldiv): Likewise.
41999
42000 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
42001
42002         [BZ #16071]
42003         * nss/nss_files/files-XXX.c (get_contents_ret): New
42004         enumerator.
42005         (get_contents): New function.
42006         (internal_getent): Use it.  Expand size of LINEBUFLEN.
42007
42008 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
42009
42010         * configure.in: Moved to ...
42011         * configure.ac: ... here. Change reference to configure.in
42012         to configure.ac.
42013         * sysdeps/arm/preconfigure.ac: ... here.
42014         configure.in to configure.ac.
42015         * sysdeps/gnu/configure.in: Moved to ...
42016         * sysdeps/gnu/configure.ac: ... here.
42017         * sysdeps/i386/configure.in: Moved to ...
42018         * sysdeps/i386/configure.ac: ... here.
42019         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
42020         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
42021         * sysdeps/mach/configure.in: Moved to ...
42022         * sysdeps/mach/configure.ac: ... here.
42023         * sysdeps/mach/hurd/configure.in: Moved to ...
42024         * sysdeps/mach/hurd/configure.ac: ... here.
42025         * sysdeps/powerpc/configure.in: Moved to ...
42026         * sysdeps/powerpc/configure.ac: ... here.
42027         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
42028         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
42029         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
42030         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
42031         * sysdeps/s390/s390-32/configure.in: Moved to ...
42032         * sysdeps/s390/s390-32/configure.ac: ... here.
42033         * sysdeps/s390/s390-64/configure.in: Moved to ...
42034         * sysdeps/s390/s390-64/configure.ac: ... here.
42035         * sysdeps/sh/configure.in: Moved to ...
42036         * sysdeps/sh/configure.ac: ... here.
42037         * sysdeps/sparc/configure.in: Moved to ...
42038         * sysdeps/sparc/configure.ac: ... here.
42039         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
42040         * sysdeps/unix/sysv/linux/configure.ac: ... here.
42041         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
42042         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
42043         * sysdeps/x86_64/configure.in: Moved to ...
42044         * sysdeps/x86_64/configure.ac: ... here.
42045         * sysdeps/x86_64/preconfigure.in: Moved to ...
42046         * sysdeps/x86_64/preconfigure.ac: ... here.
42047         * aclocal.m4: Change reference to configure.in to configure.ac.
42048         * config.h.in: Likewise.
42049         * manual/install.texi: Likewise.
42050         * manual/maint.texi: Likewise.
42051         * Makefile: Likewise.
42052         * malloc/Makefile: Likewise.
42053         * nscd/Makefile: Likewise.
42054         * Makeconfig: Change reference to configure.in and
42055         preconfigure.in to configure.ac and preconfigure.ac
42056         respectively.
42057         * INSTALL: Regenerated.
42058         * configure: Likewise.
42059         * sysdeps/gnu/configure: Likewise.
42060         * sysdeps/i386/configure: Likewise.
42061         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
42062         * sysdeps/mach/configure: Likewise.
42063         * sysdeps/mach/hurd/configure: Likewise.
42064         * sysdeps/powerpc/configure: Likewise.
42065         * sysdeps/powerpc/powerpc32/configure: Likewise.
42066         * sysdeps/powerpc/powerpc64/configure: Likewise.
42067         * sysdeps/s390/s390-32/configure: Likewise.
42068         * sysdeps/s390/s390-64/configure: Likewise.
42069         * sysdeps/sh/configure: Likewise.
42070         * sysdeps/sparc/configure: Likewise.
42071         * sysdeps/unix/sysv/linux/configure: Likewise.
42072         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
42073         * sysdeps/x86_64/configure: Likewise.
42074         * sysdeps/x86_64/preconfigure: Likewise.
42075
42076 2013-10-29  Andreas Schwab  <schwab@suse.de>
42077
42078         * stdio-common/Makefile (tst-swscanf-ENV): Define.
42079
42080 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
42081
42082         * benchtests/pow-inputs: Add new inputs.
42083
42084         * benchtests/exp-inputs: Add new inputs.
42085
42086         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
42087         conditional check for return value.
42088         (__cos32): Likewise.
42089
42090 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42091
42092         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
42093         to provide a boost for large inputs with word alignment.
42094         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
42095         implementation based on optimized PPC64 strcpy.
42096         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
42097         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
42098         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
42099         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
42100
42101 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42102
42103         [BZ #2801]
42104         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
42105
42106 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42107
42108         [BZ #14876]
42109         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
42110         * time/tst-strptime.c (day_tests): Add testcase.
42111
42112 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42113
42114         [BZ #14029]
42115         * manual/pattern.texi: Acknowledge that fnmatch can fail.
42116
42117 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
42118
42119         [BZ #16074]
42120         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
42121         MAP_FAILED on error.
42122
42123 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
42124
42125         [BZ #16072]
42126         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
42127         heap for large requests.
42128
42129 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
42130
42131         [BZ #9954]
42132         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
42133         result if the result has no associated interface.
42134         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
42135         interface for all 127.X.Y.Z addresses.
42136
42137 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
42138
42139         * locale/iso-639.def: Add Ligurian (lij)
42140
42141 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
42142
42143         [BZ #15825]
42144         * sunrpc/rpc_main.c: Document rpcgen -5.
42145
42146 2013-10-19  Michael Stahl  <mstahl@redhat.com>
42147
42148         * elf/rtld.c (do_preload): Print the reason why preloading failed.
42149
42150 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42151
42152         [BZ #10278]
42153         * posix/glob.c: Match only directories when trailing slash is present.
42154         * posix/tst-gnuglob.c (my_opendir): Do not open files.
42155         (main): Add testcase.
42156
42157 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42158
42159         [BZ #15670]
42160         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
42161
42162 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
42163
42164         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
42165         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
42166         AUTH_DES and cindex for FIPS 140-2.
42167         (DES Encryption): Add cindex FIPS 46-3.
42168
42169         * locale/locarchive.h (struct locarhandle): Add fname.
42170         * locale/programs/localedef.c (main): Pass ARGV[remaining]
42171         if an optional argument was specified to --list-archive,
42172         otherwise NULL.
42173         * locale/programs/locarchive.c (show_archive_content): Take new
42174         argument fname and pass it via ah.fname to open_archive.
42175         * locale/programs/localedef.h: Update decl.
42176         (open_archive): If AH->fname is non-null, open that file
42177         rather than the default file name, and don't ignore ENOENT.
42178         (create_archive): Set AH.fname to NULL.
42179         (delete_locales_from_archive): Likewise.
42180         (add_locales_to_archive): Likewise.
42181         * locale/programs/locfile.c (write_all_categories): Likewise.
42182
42183 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
42184             Aldy Hernandez  <aldyh@redhat.com>
42185
42186         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
42187         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
42188         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
42189         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
42190         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
42191         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
42192         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
42193         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
42194         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
42195         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
42196         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
42197         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
42198         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
42199         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
42200         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
42201         Likewise.
42202         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
42203         Likewise.
42204         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
42205         Likewise.
42206         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
42207         Likewise.
42208         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
42209         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
42210         Likewise.
42211         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
42212         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
42213         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
42214         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
42215         Likewise.
42216         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
42217         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
42218         * sysdeps/powerpc/preconfigure: Likewise.
42219         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
42220         Likewise.
42221         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
42222         Replace contents of file by #include of <fenv_libc.h>.
42223         * sysdeps/powerpc/soft-fp/sfp-machine.h
42224         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
42225         and <sys/prctl.h>.
42226         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
42227         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
42228         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
42229         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
42230         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
42231         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
42232         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
42233         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
42234         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
42235         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
42236         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
42237         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
42238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
42239         Allow copysignl PLT reference to be missing.
42240
42241 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
42242             Joseph Myers  <joseph@codesourcery.com
42243
42244         [BZ #15948]
42245         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
42246         single character.
42247         (add_to_tablewc): Assert sequence of wide characters is nonempty.
42248
42249 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
42250
42251         * elf/tst-tls-dlinfo.c: Don't include tls.h.
42252         * elf/tst-tls1.c: Likewise.
42253         * elf/tst-tls10.h: Likewise.
42254         * elf/tst-tls14.c: Likewise.
42255         * elf/tst-tls2.c: Likewise.
42256         * elf/tst-tls3.c: Likewise.
42257         * elf/tst-tls4.c: Likewise.
42258         * elf/tst-tls5.c: Likewise.
42259         * elf/tst-tls6.c: Likewise.
42260         * elf/tst-tls7.c: Likewise.
42261         * elf/tst-tls8.c: Likewise.
42262         * elf/tst-tls9.c: Likewise.
42263         * elf/tst-tlsmod1.c: Likewise.
42264         * elf/tst-tlsmod13.c: Likewise.
42265         * elf/tst-tlsmod13a.c: Likewise.
42266         * elf/tst-tlsmod14a.c: Likewise.
42267         * elf/tst-tlsmod16a.c: Likewise.
42268         * elf/tst-tlsmod16b.c: Likewise.
42269         * elf/tst-tlsmod2.c: Likewise.
42270         * elf/tst-tlsmod3.c: Likewise.
42271         * elf/tst-tlsmod4.c: Likewise.
42272         * elf/tst-tlsmod5.c: Likewise.
42273         * elf/tst-tlsmod6.c: Likewise.
42274
42275 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
42276
42277         [BZ #12486]
42278         * malloc/malloc.c: remove checks for statistics.
42279
42280 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42281
42282         [BZ #15277]
42283         * inet/inet_net.c (inet_network): Detect additional invalid strings.
42284         * inet/tst-network.c: Add testcase.
42285
42286 2013-10-17  Andreas Schwab  <schwab@suse.de>
42287
42288         [BZ #15218]
42289         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
42290         to determine canonical name.
42291
42292 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42293
42294         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
42295         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
42296         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42297         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42298         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42299         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42300         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42301         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42302         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42303         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42304         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
42305         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42306         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42307         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42308         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42309         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42310         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42311         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42312         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
42313         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42314         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42315         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42316         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
42317         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
42318         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
42319         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
42320         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
42321         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
42322         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42323         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
42324         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42325         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42326         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
42327         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
42328         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
42329         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
42330         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
42331         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
42332         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
42333         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42334         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
42335         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
42336         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
42337         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
42338         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
42339         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
42340         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
42341         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
42342         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
42343         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
42344         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
42345         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
42346         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
42347         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
42348         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42349         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
42350         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42351         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
42352
42353 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
42354
42355         [BZ #16041]
42356         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
42357         make result into a quiet NaN.
42358
42359 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
42360
42361         * soft-fp/adddf3.c: Fix horizontal whitespace.
42362         * soft-fp/addsf3.c: Likewise.
42363         * soft-fp/addtf3.c: Likewise.
42364         * soft-fp/divdf3.c: Likewise.
42365         * soft-fp/divsf3.c: Likewise.
42366         * soft-fp/divtf3.c: Likewise.
42367         * soft-fp/double.h: Likewise.
42368         * soft-fp/eqdf2.c: Likewise.
42369         * soft-fp/eqsf2.c: Likewise.
42370         * soft-fp/eqtf2.c: Likewise.
42371         * soft-fp/extenddftf2.c: Likewise.
42372         * soft-fp/extended.h: Likewise.
42373         * soft-fp/extendsfdf2.c: Likewise.
42374         * soft-fp/extendsftf2.c: Likewise.
42375         * soft-fp/extendxftf2.c: Likewise.
42376         * soft-fp/fixdfdi.c: Likewise.
42377         * soft-fp/fixdfsi.c: Likewise.
42378         * soft-fp/fixdfti.c: Likewise.
42379         * soft-fp/fixsfdi.c: Likewise.
42380         * soft-fp/fixsfsi.c: Likewise.
42381         * soft-fp/fixsfti.c: Likewise.
42382         * soft-fp/fixtfdi.c: Likewise.
42383         * soft-fp/fixtfsi.c: Likewise.
42384         * soft-fp/fixtfti.c: Likewise.
42385         * soft-fp/fixunsdfdi.c: Likewise.
42386         * soft-fp/fixunsdfsi.c: Likewise.
42387         * soft-fp/fixunsdfti.c: Likewise.
42388         * soft-fp/fixunssfdi.c: Likewise.
42389         * soft-fp/fixunssfsi.c: Likewise.
42390         * soft-fp/fixunssfti.c: Likewise.
42391         * soft-fp/fixunstfdi.c: Likewise.
42392         * soft-fp/fixunstfsi.c: Likewise.
42393         * soft-fp/fixunstfti.c: Likewise.
42394         * soft-fp/floatdidf.c: Likewise.
42395         * soft-fp/floatdisf.c: Likewise.
42396         * soft-fp/floatditf.c: Likewise.
42397         * soft-fp/floatsidf.c: Likewise.
42398         * soft-fp/floatsisf.c: Likewise.
42399         * soft-fp/floatsitf.c: Likewise.
42400         * soft-fp/floattidf.c: Likewise.
42401         * soft-fp/floattisf.c: Likewise.
42402         * soft-fp/floattitf.c: Likewise.
42403         * soft-fp/floatundidf.c: Likewise.
42404         * soft-fp/floatundisf.c: Likewise.
42405         * soft-fp/floatunditf.c: Likewise.
42406         * soft-fp/floatunsidf.c: Likewise.
42407         * soft-fp/floatunsisf.c: Likewise.
42408         * soft-fp/floatunsitf.c: Likewise.
42409         * soft-fp/floatuntidf.c: Likewise.
42410         * soft-fp/floatuntisf.c: Likewise.
42411         * soft-fp/floatuntitf.c: Likewise.
42412         * soft-fp/fmadf4.c: Likewise.
42413         * soft-fp/fmasf4.c: Likewise.
42414         * soft-fp/fmatf4.c: Likewise.
42415         * soft-fp/gedf2.c: Likewise.
42416         * soft-fp/gesf2.c: Likewise.
42417         * soft-fp/getf2.c: Likewise.
42418         * soft-fp/ledf2.c: Likewise.
42419         * soft-fp/lesf2.c: Likewise.
42420         * soft-fp/letf2.c: Likewise.
42421         * soft-fp/muldf3.c: Likewise.
42422         * soft-fp/mulsf3.c: Likewise.
42423         * soft-fp/multf3.c: Likewise.
42424         * soft-fp/negdf2.c: Likewise.
42425         * soft-fp/negsf2.c: Likewise.
42426         * soft-fp/negtf2.c: Likewise.
42427         * soft-fp/op-1.h: Likewise.
42428         * soft-fp/op-2.h: Likewise.
42429         * soft-fp/op-4.h: Likewise.
42430         * soft-fp/op-8.h: Likewise.
42431         * soft-fp/op-common.h: Likewise.
42432         * soft-fp/quad.h: Likewise.
42433         * soft-fp/single.h: Likewise.
42434         * soft-fp/soft-fp.h: Likewise.
42435         * soft-fp/sqrtdf2.c: Likewise.
42436         * soft-fp/sqrtsf2.c: Likewise.
42437         * soft-fp/sqrttf2.c: Likewise.
42438         * soft-fp/subdf3.c: Likewise.
42439         * soft-fp/subsf3.c: Likewise.
42440         * soft-fp/subtf3.c: Likewise.
42441         * soft-fp/truncdfsf2.c: Likewise.
42442         * soft-fp/trunctfdf2.c: Likewise.
42443         * soft-fp/trunctfsf2.c: Likewise.
42444         * soft-fp/trunctfxf2.c: Likewise.
42445         * soft-fp/unorddf2.c: Likewise.
42446         * soft-fp/unordsf2.c: Likewise.
42447         * soft-fp/unordtf2.c: Likewise.
42448
42449 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
42450
42451         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
42452         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
42453
42454 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
42455
42456         * elf/dl-libc.c: Clear initfini list after freeing.
42457
42458 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
42459
42460         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
42461         * soft-fp/addsf3.c: Likewise.
42462         * soft-fp/addtf3.c: Likewise.
42463         * soft-fp/divdf3.c: Likewise.
42464         * soft-fp/divsf3.c: Likewise.
42465         * soft-fp/divtf3.c: Likewise.
42466         * soft-fp/double.h: Likewise.
42467         * soft-fp/eqdf2.c: Likewise.
42468         * soft-fp/eqsf2.c: Likewise.
42469         * soft-fp/eqtf2.c: Likewise.
42470         * soft-fp/extenddftf2.c: Likewise.
42471         * soft-fp/extended.h: Likewise.
42472         * soft-fp/extendsfdf2.c: Likewise.
42473         * soft-fp/extendsftf2.c: Likewise.
42474         * soft-fp/extendxftf2.c: Likewise.
42475         * soft-fp/fixdfdi.c: Likewise.
42476         * soft-fp/fixdfsi.c: Likewise.
42477         * soft-fp/fixdfti.c: Likewise.
42478         * soft-fp/fixsfdi.c: Likewise.
42479         * soft-fp/fixsfsi.c: Likewise.
42480         * soft-fp/fixsfti.c: Likewise.
42481         * soft-fp/fixtfdi.c: Likewise.
42482         * soft-fp/fixtfsi.c: Likewise.
42483         * soft-fp/fixtfti.c: Likewise.
42484         * soft-fp/fixunsdfdi.c: Likewise.
42485         * soft-fp/fixunsdfsi.c: Likewise.
42486         * soft-fp/fixunsdfti.c: Likewise.
42487         * soft-fp/fixunssfdi.c: Likewise.
42488         * soft-fp/fixunssfsi.c: Likewise.
42489         * soft-fp/fixunssfti.c: Likewise.
42490         * soft-fp/fixunstfdi.c: Likewise.
42491         * soft-fp/fixunstfsi.c: Likewise.
42492         * soft-fp/fixunstfti.c: Likewise.
42493         * soft-fp/floatdidf.c: Likewise.
42494         * soft-fp/floatdisf.c: Likewise.
42495         * soft-fp/floatditf.c: Likewise.
42496         * soft-fp/floatsidf.c: Likewise.
42497         * soft-fp/floatsisf.c: Likewise.
42498         * soft-fp/floatsitf.c: Likewise.
42499         * soft-fp/floattidf.c: Likewise.
42500         * soft-fp/floattisf.c: Likewise.
42501         * soft-fp/floattitf.c: Likewise.
42502         * soft-fp/floatundidf.c: Likewise.
42503         * soft-fp/floatundisf.c: Likewise.
42504         * soft-fp/floatunsidf.c: Likewise.
42505         * soft-fp/floatunsisf.c: Likewise.
42506         * soft-fp/floatuntidf.c: Likewise.
42507         * soft-fp/floatuntisf.c: Likewise.
42508         * soft-fp/floatuntitf.c: Likewise.
42509         * soft-fp/fmadf4.c: Likewise.
42510         * soft-fp/fmasf4.c: Likewise.
42511         * soft-fp/fmatf4.c: Likewise.
42512         * soft-fp/gedf2.c: Likewise.
42513         * soft-fp/gesf2.c: Likewise.
42514         * soft-fp/getf2.c: Likewise.
42515         * soft-fp/ledf2.c: Likewise.
42516         * soft-fp/lesf2.c: Likewise.
42517         * soft-fp/letf2.c: Likewise.
42518         * soft-fp/muldf3.c: Likewise.
42519         * soft-fp/mulsf3.c: Likewise.
42520         * soft-fp/multf3.c: Likewise.
42521         * soft-fp/negdf2.c: Likewise.
42522         * soft-fp/negsf2.c: Likewise.
42523         * soft-fp/negtf2.c: Likewise.
42524         * soft-fp/op-1.h: Likewise.
42525         * soft-fp/op-2.h: Likewise.
42526         * soft-fp/op-4.h: Likewise.
42527         * soft-fp/op-8.h: Likewise.
42528         * soft-fp/op-common.h: Likewise.
42529         * soft-fp/quad.h: Likewise.
42530         * soft-fp/single.h: Likewise.
42531         * soft-fp/soft-fp.h: Likewise.
42532         * soft-fp/sqrtdf2.c: Likewise.
42533         * soft-fp/sqrtsf2.c: Likewise.
42534         * soft-fp/sqrttf2.c: Likewise.
42535         * soft-fp/subdf3.c: Likewise.
42536         * soft-fp/subsf3.c: Likewise.
42537         * soft-fp/subtf3.c: Likewise.
42538         * soft-fp/truncdfsf2.c: Likewise.
42539         * soft-fp/trunctfdf2.c: Likewise.
42540         * soft-fp/trunctfsf2.c: Likewise.
42541         * soft-fp/trunctfxf2.c: Likewise.
42542         * soft-fp/unorddf2.c: Likewise.
42543         * soft-fp/unordsf2.c: Likewise.
42544         * soft-fp/unordtf2.c: Likewise.
42545
42546 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
42547
42548         [BZ #15672]
42549         * misc/error.c (error_tail): Fix possible buffer overflow.
42550
42551 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
42552
42553         [BZ #13028]
42554         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
42555         address.
42556
42557 2013-10-14  P. J. McDermott  <pj@pehjota.net>
42558
42559         [BZ #832]
42560         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
42561         testing pipefail option.
42562
42563 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42564
42565         * soft-fp/double.h: Indent preprocessor directives inside #if.
42566         * soft-fp/extended.h: Likewise.
42567         * soft-fp/op-2.h: Likewise.
42568         * soft-fp/op-4.h: Likewise.
42569         * soft-fp/op-common.h: Likewise.
42570         * soft-fp/quad.h: Likewise.
42571         * soft-fp/single.h: Likewise.
42572         * soft-fp/soft-fp.h: Likewise.
42573
42574 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
42575
42576         * iconv/iconv_prog.c: Fix typos.
42577         * stdio-common/psiginfo-data.h: Likewise.
42578
42579 2013-10-12   Reuben Thomas <rrt@sc3d.org>
42580
42581         [BZ #15764]
42582         * locale/setlocale.c: Fix typo.
42583
42584 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42585
42586         [BZ #16036]
42587         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
42588         signaling NaN arguments.
42589         * soft-fp/unordsf2.c (__unordsf2): Likewise.
42590         * soft-fp/unordtf2.c (__unordtf2): Likewise.
42591
42592         [BZ #14910]
42593         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
42594         unordered operands.
42595         * soft-fp/gesf2.c (__gesf2): Likewise.
42596         * soft-fp/getf2.c (__getf2): Likewise.
42597         * soft-fp/ledf2.c (__ledf2): Likewise.
42598         * soft-fp/lesf2.c (__lesf2): Likewise.
42599         * soft-fp/letf2.c (__letf2): Likewise.
42600
42601         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
42602         * soft-fp/eqsf2.c (__eqsf2): Likewise.
42603         * soft-fp/eqtf2.c (__eqtf2): Likewise.
42604         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
42605         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
42606         * soft-fp/fixdfti.c (__fixdfti): Likewise.
42607         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
42608         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
42609         * soft-fp/fixsfti.c (__fixsfti): Likewise.
42610         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
42611         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
42612         * soft-fp/fixtfti.c (__fixtfti): Likewise.
42613         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
42614         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
42615         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
42616         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
42617         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
42618         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
42619         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
42620         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
42621         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
42622         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
42623         * soft-fp/floatdisf.c (__floatdisf): Likewise.
42624         * soft-fp/floatsisf.c (__floatsisf): Likewise.
42625         * soft-fp/floattidf.c (__floattidf): Likewise.
42626         * soft-fp/floattisf.c (__floattisf): Likewise.
42627         * soft-fp/floattitf.c (__floattitf): Likewise.
42628         * soft-fp/floatundidf.c (__floatundidf): Likewise.
42629         * soft-fp/floatundisf.c (__floatundisf): Likewise.
42630         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
42631         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
42632         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
42633         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
42634         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
42635         * soft-fp/gesf2.c (__gesf2): Likewise.
42636         * soft-fp/getf2.c (__getf2): Likewise.
42637         * soft-fp/ledf2.c (__ledf2): Likewise.
42638         * soft-fp/lesf2.c (__lesf2): Likewise.
42639         * soft-fp/letf2.c (__letf2): Likewise.
42640
42641         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
42642         Undefine and redefine.
42643         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
42644         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
42645         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
42646         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
42647         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42648         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
42649         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42650         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
42651         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42652         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
42653         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42654         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
42655         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42656         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
42657         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42658
42659         [BZ #16032]
42660         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
42661         without decrementing exponent if mantissa >= that for the
42662         denominator, not >.
42663         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
42664         denominator, not >.  Decrement exponent in < case instead of
42665         incrementing in >= case.
42666         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
42667         without decrementing exponent if mantissa >= that for the
42668         denominator, not >.
42669
42670         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
42671         computing saturated result for unsigned overflow.
42672
42673 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
42674             Jeff Law  <law@redhat.com>
42675
42676         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
42677         (atan2Mp): Add systemtap probe marker.
42678         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
42679         (__ieee754_log): Add systemtap probe marker.
42680         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
42681         (atanMp): Add systemtap probe marker.
42682         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
42683         (tanMp): Add systemtap probe marker.
42684         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
42685         (__slowexp): Add systemtap probe marker.
42686         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
42687         (__slowpow): Add systemtap probe marker.
42688         * manual/probes.texi: Document probes.
42689
42690 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
42691
42692         [BZ #15362]
42693         * libio/fileops.c (_IO_new_file_write): Return count of bytes
42694         written.
42695         (_IO_new_file_xsputn): Don't return EOF if nothing has been
42696         written.
42697         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
42698         written to buffer but not flushed.
42699         * libio/iofwrite_u.c:  Likewise.
42700         * libio/iopadn.c:  Return bytes returned even if EOF was
42701         encountered.
42702         * libio/iowpadn.c:  Likewise.
42703         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
42704         if _IO_padn does not write the whole buffer.
42705         [!COMPILE_WPRINTF] (PAD): Likewise.
42706
42707 2013-10-10  David S. Miller  <davem@davemloft.net>
42708
42709         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
42710         directory block.
42711
42712 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
42713
42714         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
42715         instead of FSF address.
42716         * soft-fp/fixdfti.c: Likewise.
42717         * soft-fp/fixsfti.c: Likewise.
42718         * soft-fp/fixtfti.c: Likewise.
42719         * soft-fp/fixunsdfti.c: Likewise.
42720         * soft-fp/fixunssfti.c: Likewise.
42721         * soft-fp/fixunstfti.c: Likewise.
42722         * soft-fp/floattidf.c: Likewise.
42723         * soft-fp/floattisf.c: Likewise.
42724         * soft-fp/floattitf.c: Likewise.
42725         * soft-fp/floatuntidf.c: Likewise.
42726         * soft-fp/floatuntisf.c: Likewise.
42727         * soft-fp/floatuntitf.c: Likewise.
42728         * soft-fp/trunctfxf2.c: Likewise.
42729
42730         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
42731         * soft-fp/fixdfti.c: Likewise.
42732         * soft-fp/fixsfti.c: Likewise.
42733         * soft-fp/fixtfti.c: Likewise.
42734         * soft-fp/fixunsdfti.c: Likewise.
42735         * soft-fp/fixunssfti.c: Likewise.
42736         * soft-fp/fixunstfti.c: Likewise.
42737         * soft-fp/floattidf.c: Likewise.
42738         * soft-fp/floattisf.c: Likewise.
42739         * soft-fp/floattitf.c: Likewise.
42740         * soft-fp/floatuntidf.c: Likewise.
42741         * soft-fp/floatuntisf.c: Likewise.
42742         * soft-fp/floatuntitf.c: Likewise.
42743         * soft-fp/trunctfxf2.c: Likewise.
42744
42745 2013-10-10  David S. Miller  <davem@davemloft.net>
42746
42747         * sysdeps/sparc/fpu/libm-test-ulps: Update.
42748
42749 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
42750
42751         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
42752         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
42753         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
42754         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
42755         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
42756         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
42757         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
42758
42759         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
42760         for NaNs before doing comparisons on argument.
42761         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
42762         Likewise.
42763
42764 2013-10-10  Will Newton  <will.newton@linaro.org>
42765
42766         * malloc/hooks.c (memalign_check): Ensure the value of bytes
42767         passed to _int_memalign does not overflow.
42768
42769 2013-10-10  Torvald Riegel  <triegel@redhat.com>
42770
42771         * scripts/bench.pl: Add include-sources directive.
42772         * benchtests/README: Update documentation.
42773
42774 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
42775
42776         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
42777         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
42778         instead of FP_INIT_ROUNDMODE.
42779         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
42780         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
42781
42782         [BZ #16034]
42783         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
42784         copy class of input value.
42785         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
42786         not handle exceptions.
42787         * soft-fp/negsf2.c (__negsf2): Likewise.
42788         * soft-fp/negtf2.c (__negtf2): Likewise.
42789         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
42790
42791 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
42792
42793         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
42794         semicolon.  From Linux kernel.
42795
42796 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
42797
42798         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
42799
42800 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
42801
42802         [BZ #156]
42803         * manual/socket.texi: Added statement about buffer
42804         for gethostbyname2_r.
42805
42806 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
42807
42808         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
42809         Use .p2align directive instead, throughout.
42810         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
42811         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
42812         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
42813         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
42814         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
42815         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
42816         * sysdeps/x86_64/strchr.S: Likewise.
42817         * sysdeps/x86_64/strrchr.S: Likewise.
42818
42819 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
42820
42821         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
42822
42823         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
42824
42825         * sysdeps/generic/math_private.h (__mpsin1): Remove
42826         declaration.
42827         (__mpcos1): Likewise.
42828         (__mpsin): New argument __range_reduce.
42829         (__mpcos): Likewise.
42830         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42831         (slow): Use __mpsin and __mpcos.
42832         (slow1): Likewise.
42833         (slow2): Likewise.
42834         (sloww): Likewise.
42835         (sloww1): Likewise.
42836         (sloww2): Likewise.
42837         (bsloww): Likewise.
42838         (bsloww1): Likewise.
42839         (bsloww2): Likewise.
42840         (cslow2): Likewise.
42841         (csloww): Likewise.
42842         (csloww1): Likewise.
42843         (csloww2): Likewise.
42844         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
42845         range_reduce.  Merge in __mpsin1.
42846         (__mpcos): Likewise.
42847         (__mpsin1): Remove.
42848         (__mpcos1): Likewise.
42849
42850 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
42851
42852         * locale/loadlocale.c (_nl_intern_locale_data): Use
42853         LOCFILE_ALIGNED_P.
42854         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
42855         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
42856         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
42857         obstack data is appropriately aligned.
42858         (obstack_int32_grow_fast): Likewise.
42859         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
42860         * locale/programs/locfile.c (add_locale_uint32): Likewise.
42861         (add_locale_uint32_array): Likewise.
42862
42863 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
42864
42865         * benchtests/Makefile: Remove ARGLIST and RET variables.
42866         ($(objpfx)bench-%.c): Pass only function name to the script.
42867         * benchtests/README: Update documentation.
42868         * benchtests/acos-inputs: Add new directives.
42869         * benchtests/acosh-inputs: Likewise.
42870         * benchtests/asin-inputs: Likewise.
42871         * benchtests/asinh-inputs: Likewise.
42872         * benchtests/atan-inputs: Likewise.
42873         * benchtests/atanh-inputs: Likewise.
42874         * benchtests/cos-inputs: Likewise.
42875         * benchtests/cosh-inputs: Likewise.
42876         * benchtests/exp-inputs: Likewise.
42877         * benchtests/log-inputs: Likewise.
42878         * benchtests/pow-inputs: Likewise.
42879         * benchtests/rint-inputs: Likewise.
42880         * benchtests/sin-inputs: Likewise.
42881         * benchtests/sinh-inputs: Likewise.
42882         * benchtests/tan-inputs: Likewise.
42883         * benchtests/tanh-inputs: Likewise.
42884         * scripts/bench.pl: Add support for new directives.
42885
42886 2013-10-07  Alan Modra  <amodra@gmail.com>
42887
42888         * README: Fix careless merge.
42889
42890 2013-10-05  Alan Modra  <amodra@gmail.com>
42891
42892         * NEWS: Mention powerpc64le support and bugs fixed.
42893         * README: Both big-endian and little-endian powerpc64 supported.
42894
42895 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
42896
42897         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
42898         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
42899         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
42900         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
42901
42902 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
42903
42904         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
42905         match prototype.
42906
42907 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
42908
42909         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
42910         Move -mhard-float appending from
42911         ports/sysdeps/powerpc/powerpc32/Makefile.
42912         [$(with-fp) = yes] (ASFLAGS): Likewise.
42913         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
42914         * sysdeps/powerpc/nofpu: Move directory from
42915         ports/sysdeps/powerpc/nofpu.
42916         * sysdeps/powerpc/soft-fp: Move directory from
42917         ports/sysdeps/powerpc/soft-fp.
42918         * sysdeps/powerpc/powerpc32/405: Move directory from
42919         ports/sysdeps/powerpc/powerpc32/405.
42920         * sysdeps/powerpc/powerpc32/440: Move directory from
42921         ports/sysdeps/powerpc/powerpc32/440.
42922         * sysdeps/powerpc/powerpc32/464: Move directory from
42923         ports/sysdeps/powerpc/powerpc32/464.
42924         * sysdeps/powerpc/powerpc32/476: Move directory from
42925         ports/sysdeps/powerpc/powerpc32/476.
42926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
42927         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
42928         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
42929         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
42930         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
42931         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
42932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
42933         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
42934         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
42935         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
42936         * README: Update for powerpc-*-linux-gnu software floating point
42937         support in libc.
42938
42939         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
42940         case to powerpc/powerpc32*.
42941         * sysdeps/unix/sysv/linux/configure: Regenerated.
42942
42943         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
42944         (_FPU_MASK_OM): Define as 0x04.
42945         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
42946         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
42947         0x00c10080.
42948         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
42949         0x0000003c.
42950         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
42951
42952         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
42953         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
42954         getcontext_e500.
42955         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
42956         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
42957         setcontext_e500.
42958         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
42959         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
42960         and setcontext_e500.
42961
42962 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
42963
42964         * locale/iso-3166.def: Update iso-1366.def and related occurrences
42965
42966 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
42967
42968         * manual/threads.texi (Default Thread Attributes): Fix typo.
42969
42970 2013-10-04  Will Newton  <will.newton@linaro.org>
42971
42972         * malloc/Makefile: Add tst-memalign.
42973         * malloc/tst-memalign.c: New file.
42974
42975         * malloc/tst-posix_memalign.c: Add comments.
42976         (do_test): Add comments and call free on all potentially
42977         allocated pointers. Add space after cast.
42978
42979         * malloc/tst-pvalloc.c: Add comments.
42980         (do_test): Add comments and call free on all potentially
42981         allocated pointers. Remove duplicate check for NULL pointer.
42982         Add space after cast.
42983
42984         * malloc/tst-valloc.c: Add comments.
42985         (do_test): Add comments and call free on all potentially
42986         allocated pointers. Remove duplicate check for NULL pointer.
42987         Add space after cast.
42988
42989 2013-10-04  Alan Modra  <amodra@gmail.com>
42990
42991         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
42992         Use stdint types in rather than __attribute__((mode())).
42993         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
42994
42995 2013-10-04  Alan Modra  <amodra@gmail.com>
42996
42997         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
42998         Correct handling of unaligned relocs for little-endian.
42999         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43000
43001 2013-10-04  Alan Modra  <amodra@gmail.com>
43002
43003         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
43004         * configure: Regenerate.
43005         * nptl/shlib-versions: Powerpc*le starts at 2.18.
43006         * shlib-versions: Likewise.
43007
43008 2013-10-04  Alan Modra  <amodra@gmail.com>
43009
43010         * string/tester.c (test_memrchr): Increment reported test cycle.
43011
43012 2013-10-04  Alan Modra  <amodra@gmail.com>
43013
43014         * string/test-memcpy.c (do_one_test): When reporting errors, print
43015         string address and don't overrun end of string.
43016
43017 2013-10-04  Alan Modra  <amodra@gmail.com>
43018
43019         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
43020         insrdi.  Make better use of reg selection to speed exit slightly.
43021         Schedule entry path a little better.  Remove useless "are we done"
43022         checks on entry to main loop.  Handle wrapping around zero address.
43023         Correct main loop count.  Handle single left-over word from main
43024         loop inline rather than by using loop_small.  Remove extra word
43025         case in loop_small caused by wrong loop count.  Add little-endian
43026         support.
43027         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
43028         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
43029         cache hint.
43030         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
43031         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
43032         support.  Avoid rlwimi.
43033         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
43034
43035 2013-10-04  Alan Modra  <amodra@gmail.com>
43036
43037         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
43038         insrdi.  Formatting.
43039         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
43040         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
43041         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
43042         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
43043         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
43044         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
43045
43046 2013-10-04  Alan Modra  <amodra@gmail.com>
43047
43048         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
43049         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
43050         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
43051         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
43052         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
43053         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
43054         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
43055         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43056         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
43057         use of regs.  Use power7 mtocrf.  Tidy function tails.
43058
43059 2013-10-04  Alan Modra  <amodra@gmail.com>
43060
43061         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
43062         Formatting.  Consistently use rXXX register defines or rN defines.
43063         Use early exit labels that avoid restoring unused non-volatile regs.
43064         Make cr field use more consistent with rWORDn compares.  Rename
43065         regs used as shift registers for unaligned loop, using rN defines
43066         for short lifetime/multiple use regs.
43067         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
43068         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
43069         addi 1,1,64 to pop stack frame.  Simplify return value code.
43070         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
43071
43072 2013-10-04  Alan Modra  <amodra@gmail.com>
43073
43074         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
43075         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
43076         rather than rlwimi.
43077         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
43078         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
43079         little-endian support.  Correct typos.
43080         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
43081         rather than rlwimi.
43082         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
43083         in loop and entry code to keep "and." results.
43084         (strchr): Add little-endian support.  Comment.  Move cntlzd
43085         earlier in tail.
43086         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
43087
43088 2013-10-04  Alan Modra  <amodra@gmail.com>
43089
43090         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
43091         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
43092         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
43093         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
43094
43095 2013-10-04  Alan Modra  <amodra@gmail.com>
43096
43097         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
43098         (rTMP): Define as r11.
43099         (strcmp): Add little-endian support.  Optimise tail.
43100         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
43101         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
43102         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
43103         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
43104         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
43105         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43106         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
43107
43108 2013-10-04  Alan Modra  <amodra@gmail.com>
43109
43110         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
43111         little-endian support.  Remove unnecessary "are we done" tests.
43112         Handle "s" wrapping around zero and extremely large "size".
43113         Correct main loop count.  Handle single left-over word from main
43114         loop inline rather than by using small_loop.  Correct comments.
43115         Delete "zero" tail, use "end_max" instead.
43116         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
43117
43118 2013-10-04  Alan Modra  <amodra@gmail.com>
43119
43120         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
43121         support.  Don't branch over align.
43122         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
43123         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
43124         support.  Rearrange tmp reg use to suit.  Comment.
43125         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
43126
43127 2013-10-04  Alan Modra  <amodra@gmail.com>
43128
43129         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
43130
43131 2013-10-04  Alan Modra  <amodra@gmail.com>
43132
43133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
43134         conditional form of branch and link when obtaining pc.
43135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
43136
43137 2013-10-04  Alan Modra  <amodra@gmail.com>
43138
43139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
43140         HIWORD/LOWORD.
43141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
43142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
43143
43144 2013-10-04  Alan Modra  <amodra@gmail.com>
43145
43146         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
43147         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
43148         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
43149         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
43150         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
43151         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
43152         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
43153         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
43154         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
43155         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
43156
43157 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43158             Alistair Popple <alistair@ozlabs.au.ibm.com>
43159             Alan Modra <amodra@gmail.com>
43160
43161         [BZ #15723]
43162         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
43163         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
43164         _dl_hwcap access for little-endian.
43165         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
43166         destroy vmx regs when saving unaligned.
43167         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
43168         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
43169         destroy vmx regs when saving unaligned.
43170
43171 2013-10-04  Alan Modra  <amodra@gmail.com>
43172
43173         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
43174         Don't use a union to pack hi/low value.
43175
43176 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43177
43178         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
43179         for little-endian.
43180         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
43181         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
43182         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
43183         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
43184         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
43185
43186 2013-10-04  Alan Modra  <amodra@gmail.com>
43187
43188         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
43189         constants to usual value for .cst8 section, and remove redundant
43190         high address load.
43191         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
43192         constant for 0x1p52.  Load little-endian words of double from
43193         correct stack offsets.
43194
43195 2013-10-04  Alan Modra  <amodra@gmail.com>
43196
43197         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
43198         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
43199         words of double from correct stack offsets.
43200         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
43201         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
43202         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
43203         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
43204         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
43205         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
43206         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
43207         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
43208         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
43209         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
43210         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
43211         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
43212         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
43213         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
43214         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
43215         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
43216         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
43217
43218 2013-10-04  Alan Modra  <amodra@gmail.com>
43219
43220         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
43221         64-bit int/double union.
43222         (_FPU_SETCW): Likewise.
43223         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
43224         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
43225
43226 2013-10-04  Alan Modra  <amodra@gmail.com>
43227
43228         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
43229         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
43230
43231 2013-10-04  Alan Modra  <amodra@gmail.com>
43232
43233         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
43234         use vector int constants.
43235         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
43236
43237 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43238
43239         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
43240         array with long long.
43241         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
43242         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
43243         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
43244         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
43245         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
43246         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
43247         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
43248         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
43249         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
43250         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
43251         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
43252         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
43253         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
43254
43255 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43256
43257         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
43258         (__signbit): Likewise.  Correct for little-endian.
43259         (__signbitl): Call __signbit.
43260         (lrint): Correct for little-endian.
43261         (lrintf): Call lrint.
43262
43263 2013-10-04  Alan Modra  <amodra@gmail.com>
43264
43265         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
43266         union 32-bit int array member with 64-bit int array.
43267         (t515, tm256): Double rather than long double.
43268         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
43269
43270 2013-10-04  Alan Modra  <amodra@gmail.com>
43271
43272         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
43273         Delete.
43274         (IEEE854_LONG_DOUBLE_BIAS): Delete.
43275         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
43276         version of math_ldbl.h.
43277
43278 2013-10-04  Alan Modra  <amodra@gmail.com>
43279
43280         [BZ #15734], [BZ #15735]
43281         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
43282         all uses of ieee875 long double macros and unions.  Simplify test
43283         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
43284         ldbl_extract_mantissa value for ix,iy exponents.  Properly
43285         normalize after ldbl_extract_mantissa, and don't add hidden bit
43286         already handled.  Don't treat low word of ieee854 mantissa like
43287         low word of IBM long double and mask off bit when testing for
43288         zero.
43289         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
43290         all uses of ieee875 long double macros and unions.  Simplify tests
43291         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
43292         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
43293         two1022, instead use their values.  Recognise that tests for large
43294         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
43295         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
43296         Rewrite all uses of ieee875 long double macros and unions.  Simplify
43297         test for 0.0L and nan.  Correct negation.
43298         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
43299         ieee875 long double macros and unions.  Correct output for large
43300         magnitude x.  Correct absolute value calculation.
43301         (__erfcl): Likewise.
43302         * math/libm-test.inc: Add tests for errors discovered in IBM long
43303         double versions of fmodl, remainderl, erfl and erfcl.
43304
43305 2013-10-04  Alan Modra  <amodra@gmail.com>
43306
43307         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
43308         all uses of ieee854 long double macros and unions.  Simplify tests
43309         for long doubles that are fully specified by the high double.
43310         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
43311         Likewise.
43312         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
43313         Remove dead code too.
43314         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
43315         (__ieee754_ynl): Likewise.
43316         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
43317         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
43318         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
43319         Remove dead code too.
43320         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
43321         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
43322         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
43323         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
43324         Simplify.
43325         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
43326         Simplify.
43327         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
43328         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
43329         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
43330         Comment on variable precision.
43331         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
43332         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
43333         Likewise.
43334         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
43335         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
43336         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
43337         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
43338         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
43339
43340 2013-10-04  Alan Modra  <amodra@gmail.com>
43341
43342         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
43343         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
43344         all uses of ieee854 long double macros and unions.
43345         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
43346         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
43347         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
43348         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
43349         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
43350         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
43351         Likewise.
43352         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
43353         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
43354         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
43355         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
43356         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
43357         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
43358         Simplify sign and nan test too.
43359         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
43360         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
43361         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
43362         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
43363         Likewise.
43364         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
43365         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
43366         Likewise.
43367         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
43368         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
43369         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
43370         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
43371         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
43372         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
43373
43374 2013-10-04  Alan Modra  <amodra@gmail.com>
43375
43376         * stdio-common/printf_size.c (__printf_size): Don't use
43377         union ieee854_long_double in fpnum union.
43378         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
43379         signbit macro to retrieve sign from long double.
43380         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
43381         retrieve sign from long double.
43382         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
43383         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
43384         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
43385         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
43386         * math/test-misc.c (main): Don't use union ieee854_long_double.
43387
43388 2013-10-04  Alan Modra  <amodra@gmail.com>
43389
43390         [BZ #15680]
43391         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
43392         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
43393         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
43394         calculation.  Remove unnecessary test for denormal exponent.
43395         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
43396         Correct handling of denormals.  Avoid undefined shift behaviour.
43397         Correct normalisation of low mantissa when low double is denormal.
43398         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
43399         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
43400         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
43401         Correct normalisation of low mantissa.  Test for overflow of high
43402         mantissa and normalise.
43403         (ldbl_nearbyint): Use more readable constant for two52.
43404         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
43405         (__mpn_construct_long_double): Fix test for overflow of high
43406         mantissa and correct normalisation.  Avoid undefined shift.
43407
43408 2013-10-04  Alan Modra  <amodra@gmail.com>
43409
43410         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
43411         (union ibm_extended_long_double): Define as an array of ieee754_double.
43412         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
43413         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
43414         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
43415         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
43416         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
43417         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
43418         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
43419         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
43420         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
43421         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
43422         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
43423
43424 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
43425
43426         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
43427         page size instead of calling getpagesize.
43428
43429         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
43430         (LOCFILE_ALIGN_MASK): Likewise.
43431         (LOCFILE_ALIGN_UP): Likewise.
43432         (LOCFILE_ALIGNED_P): Likewise.
43433         * locale/programs/ld-collate.c (collate_output): Use the new
43434         macros instead of __alignof__ (int32_t).
43435         * locale/weight.h (findidx): Likewise.
43436
43437 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
43438
43439         [BZ #431]
43440         * manual/string.texi: Fix strncat and wcsncat.
43441
43442 2013-10-03  Brooks Moses  <bmoses@google.com>
43443
43444         [BZ #15915]
43445         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
43446         * Makerules: ...here, and adjust associated comments.
43447
43448 2013-10-02  Will Newton  <will.newton@linaro.org>
43449
43450         * malloc/Makefile: Add tst-pvalloc.
43451         * malloc/tst-pvalloc.c: New file.
43452
43453 2013-10-02  Will Newton  <will.newton@linaro.org>
43454
43455         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
43456         improve test coverage.
43457
43458 2013-10-02  Will Newton  <will.newton@linaro.org>
43459
43460         * malloc/Makefile: Add tst-posix_memalign.
43461         * malloc/tst-posix_memalign.c: New file.
43462
43463 2013-10-01  Eric Blake  <eblake@redhat.com>
43464
43465         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
43466         Use __THROWNL rather than __THROW on static functions.
43467
43468 2013-09-30  Petr Machata  <pmachata@redhat.com>
43469
43470         * elf/elf.h (R_AARCH64_ABS16): New macro.
43471         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
43472         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
43473         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
43474         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
43475         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
43476         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
43477         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
43478         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
43479         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
43480         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
43481         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
43482         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
43483         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
43484         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
43485         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
43486         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
43487         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
43488         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
43489         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
43490         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
43491         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
43492         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
43493         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
43494         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
43495         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
43496         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
43497         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
43498         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
43499         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
43500         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
43501         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
43502         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
43503         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
43504         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
43505         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
43506         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
43507         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
43508         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
43509         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
43510         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
43511         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
43512         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
43513         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
43514         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
43515         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
43516         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
43517         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
43518         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
43519         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
43520         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
43521         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
43522         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
43523         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
43524         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
43525         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
43526         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
43527         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
43528         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
43529         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
43530         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
43531         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
43532         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
43533         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
43534         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
43535         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
43536         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
43537         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
43538         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
43539         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
43540         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
43541         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
43542         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
43543         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
43544         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
43545         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
43546         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
43547         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
43548         (R_AARCH64_TLSDESC_LDR): Likewise.
43549         (R_AARCH64_TLSDESC_ADD): Likewise.
43550         (R_AARCH64_TLSDESC_CALL): Likewise.
43551
43552 2013-09-30  Andreas Schwab  <schwab@suse.de>
43553
43554         [BZ #15048]
43555         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
43556         the nss database lookup.
43557         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43558         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
43559
43560 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
43561
43562         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
43563
43564 2013-09-28  P. J. McDermott  <pj@pehjota.net>
43565
43566         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
43567         ${Bash-specific parameter/pattern/string} parameter expansion.
43568         * sysdeps/unix/make-syscalls.sh: Likewise.
43569
43570 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
43571
43572         * sysdeps/sh/stackguard-macros.h: New file.
43573
43574 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
43575
43576         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
43577         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
43578         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
43579         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
43580         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
43581         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
43582
43583 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43584
43585         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
43586         Fix thread ID register.
43587
43588 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
43589
43590         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
43591         [POSIX || UNIX98]: Require rather than permitting all symbols from
43592         <time.h>.
43593         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
43594         element of struct sched_param.
43595         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
43596         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
43597         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
43598         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
43599         constant.
43600
43601 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
43602
43603         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
43604         argument calculation.
43605
43606 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43607
43608         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
43609         Expect macro.
43610         [POSIX] (pthread_attr_t): Do not require type.
43611         [POSIX] (pthread_cond_t): Likewise.
43612         [POSIX] (pthread_condattr_t): Likewise.
43613         [POSIX] (pthread_key_t): Likewise.
43614         [POSIX] (pthread_mutex_t): Likewise.
43615         [POSIX] (pthread_mutexattr_t): Likewise.
43616         [POSIX] (pthread_once_t): Likewise.
43617         [POSIX] (pthread_t): Likewise.
43618         [POSIX-based standards] (pthread_atfork): Expect function.
43619
43620 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43621             Richard Sandiford  <richard@codesourcery.com>
43622
43623         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
43624         (swap_endianness_p): New extern variable.
43625         (set_big_endian): New inline function.
43626         (maybe_swap_uint32): Likewise.
43627         (maybe_swap_uint32_array): Likewise.
43628         (maybe_swap_uint32_obstack): Likewise.
43629         * locale/programs/locfile.c: Include <stdbool.h>.
43630         (swap_endianness_p): New variable.
43631         (add_locale_uint32): Call maybe_swap_uint32.
43632         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
43633         (write_locale_data): Call maybe_swap_uint32_array.
43634         * locale/programs/ld-collate.c (obstack_int32_grow): Call
43635         maybe_swap_uint32.
43636         (obstack_int32_grow_fast): Likewise.
43637         (output_weightwc): Call maybe_swap_uint32_obstack.
43638         (collate_output): Likewise.
43639         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
43640         (OPT_LITTLE_ENDIAN): Likewise.
43641         (options): Add --little-endian and --big-endian options.
43642         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
43643         * locale/programs/locarchive.c: Include "locfile.h".
43644         (GET): New macro.
43645         (SET): Likewise.
43646         (INC): Likewise.
43647         (create_archive): Use the new macros to access fields of
43648         structures directly mapped from or written to locale archives.
43649         (oldlocrecentcmp): Likewise.
43650         (enlarge_archive): Likewise.
43651         (insert_name): Likewise.
43652         (add_alias): Likewise.
43653         (add_locale): Likewise.
43654         (delete_locales_from_archive): Likewise.
43655         (show_archive_content): Likewise.
43656         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
43657         locale data.
43658
43659 2013-09-24  Roland McGrath  <roland@hack.frob.com>
43660
43661         * manual/freemanuals.texi: Updated from (newly) canonical copy at
43662         http://www.gnu.org/doc/freemanuals.texi.
43663         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
43664
43665 2013-09-24  Will Newton  <will.newton@linaro.org>
43666
43667         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
43668         macro.
43669
43670 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
43671
43672         * locale/hashval.h (compute_hashval): Interpret bytes of key as
43673         unsigned char.
43674
43675 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
43676
43677         * manual/threads.texi (POSIX Threads): Fix a typo.
43678
43679 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
43680
43681         [BZ #14547]
43682         * string/tst-strcoll-overflow.c: New test case.
43683         * string/Makefile (xtests): Add tst-strcoll-overflow.
43684         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
43685         cache if string sizes may cause integer overflow.
43686
43687         [BZ #14547]
43688         * string/strcoll_l.c (coll_seq): New members rule, idx,
43689         save_idx and back_us.
43690         (get_next_seq_nocache): New function.
43691         (do_compare_nocache): New function.
43692         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
43693         when malloc fails.
43694
43695 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
43696
43697         [BZ #15754]
43698         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
43699         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
43700         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
43701
43702         [BZ #15754]
43703         * elf/Makefile (tests): Add tst-ptrguard1.
43704         (tests-static): Add tst-ptrguard1-static.
43705         (tst-ptrguard1-ARGS): Define.
43706         (tst-ptrguard1-static-ARGS): Define.
43707         * elf/tst-ptrguard1.c: New file.
43708         * elf/tst-ptrguard1-static.c: New file.
43709         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
43710         * sysdeps/i386/stackguard-macros.h: Likewise.
43711         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
43712         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
43713         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
43714         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
43715         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
43716         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
43717
43718 2013-09-23  Hector Marco  <hecmargi@upv.es>
43719             Ismael Ripoll  <iripoll@disca.upv.es>
43720             Carlos O'Donell  <carlos@redhat.com>
43721
43722         [BZ #15754]
43723         * sysdeps/generic/stackguard-macros.h: Define
43724         __pointer_chk_guard_local and POINTER_CHK_GUARD.
43725         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
43726         Define __pointer_chk_guard_local.
43727         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
43728         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
43729
43730 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
43731
43732         [BZ #15859]
43733         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
43734
43735 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
43736
43737         * include/string.h (__ffs): Declare as hidden.
43738         * string/ffs.c (__ffs): Define as hidden.
43739         * sysdeps/i386/ffs.c (__ffs): Likewise.
43740         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
43741         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
43742         * sysdeps/s390/ffs.c (__ffs): Likewise.
43743         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
43744
43745 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
43746
43747         * NEWS: Mention malloc probes.
43748
43749         * malloc/arena.c (new_heap): New memory_heap_new probe.
43750         (grow_heap): New memory_heap_more probe.
43751         (shrink_heap): New memory_heap_less probe.
43752         (heap_trim): New memory_heap_free probe.
43753         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
43754         (systrim): New memory_sbrk_less probe.
43755         * manual/probes.texi: Document them.
43756
43757         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
43758         * manual/probes.texi: Document it.
43759
43760         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
43761         (__libc_realloc): Add memory_realloc_retry probe.
43762         (__libc_memalign): Add memory_memalign_retry probe.
43763         (__libc_valloc): Add memory_valloc_retry probe.
43764         (__libc_pvalloc): Add memory_pvalloc_retry probe.
43765         (__libc_calloc): Add memory_calloc_retry probe.
43766         * manual/probes.texi: Document them.
43767
43768         * malloc/arena.c (get_free_list): Add probe
43769         memory_arena_reuse_free_list.
43770         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
43771         and memory_arena_reuse.
43772         (arena_get2) [!PER_THREAD]: Likewise.
43773         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
43774         memory_arena_reuse_realloc.
43775         * manual/probes.texi: Document them.
43776
43777         * malloc/malloc.c (__libc_free): Add
43778         memory_mallopt_free_dyn_thresholds probe.
43779         (__libc_mallopt): Add multiple memory_mallopt probes.
43780         * manual/probes.texi: Document them.
43781
43782         * malloc/malloc.c: Include stap-probe.h.
43783         (__libc_mallopt): Add memory_mallopt probe.
43784         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
43785         * manual/probes.texi: New.
43786         * manual/Makefile (chapters): Add probes.
43787         * manual/threads.texi: Set next node.
43788
43789 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
43790
43791         [BZ #15963, #13985]
43792         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
43793         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
43794         Add `Chinese' to `nan' entry name.
43795
43796 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
43797
43798         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
43799         (POLYNOMIAL): Likewise.
43800         (TAYLOR_SINCOS): Likewise.
43801         (TAYLOR_SLOW): Likewise.
43802         (__sin): Use TAYLOR_SINCOS.
43803         (__cos): Likewise.
43804         (slow): Use TAYLOR_SLOW.
43805         (sloww): Likewise.
43806         (bsloww): Likewise.
43807         (csloww): Likewise.
43808
43809 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43810
43811         * stdlib/strtod_l.c: Fix buffer overrun.
43812
43813 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
43814
43815         * benchtests/Makefile (bench): Add sincos.
43816         * benchtests/bench-sincos.c: New file.
43817
43818         * math/libm-test.inc (cos_test_data): New test inputs.
43819         (sin_test_data): Likewise.
43820
43821         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
43822         macro.
43823         (__sin): Use it.
43824         (__cos): Likewise.
43825         (slow1): Likewise.
43826         (slow2): Likewise.
43827         (sloww1): Likewise.
43828         (sloww2): Likewise.
43829         (bsloww1): Likewise.
43830         (bsloww2): Likewise.
43831         (cslow2): Likewise.
43832         (csloww1): Likewise.
43833         (csloww2): Likewise.
43834
43835         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
43836         function.
43837         (__sin): Use it.
43838         (__cos): Likewise.
43839
43840         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
43841         gotos.
43842         (__cos): Likewise.
43843
43844 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
43845
43846         * config.h.in (HAVE_MIPS_NAN2008): New macro.
43847         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
43848         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
43849         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
43850         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
43851         * elf/cache.c (print_entry): Handle the new cache flags.
43852
43853 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
43854             Aldy Hernandez  <aldyh@redhat.com>
43855
43856         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
43857         Change condition to [_SOFT_FLOAT].
43858         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
43859         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
43860         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
43861         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
43862         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
43863         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
43864         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
43865         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
43866         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
43867         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
43868         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
43869         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
43870         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
43871         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
43872         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
43873         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
43874         declaration.
43875
43876 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
43877
43878         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
43879         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
43880         (__longjmp): Use LOAD_GP to load saved GPRs.
43881         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
43882         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
43883         (__sigsetjmp): Use SAVE_GP to save GPRs.
43884
43885         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
43886         Do not append -msoft-float.
43887         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
43888
43889 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
43890
43891         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
43892
43893 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
43894
43895         [BZ #15966]
43896         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
43897         (_FPU_GETCW): Use initial "__" on variable and field names but not
43898         on macro parameter name.
43899         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
43900         parentheses around reference to macro parameter.
43901
43902 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
43903
43904         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
43905         prototype.
43906         (ctype_startup): Use uint32_t in cast and sizeof for
43907         ctype->charnames.
43908
43909 2013-09-11  Jia Liu  <proljc@gmail.com>
43910
43911         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
43912         __daddr_t_defined.
43913         [__FreeBSD__]: Likewise.
43914
43915 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
43916
43917         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
43918         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
43919         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
43920         (strchr): Remove __strchr_sse42 ifunc selection.
43921         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
43922         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
43923
43924 2013-09-11  Will Newton  <will.newton@linaro.org>
43925
43926         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
43927         parameter to RES. Remove hardcoded 1000 value.
43928         * benchtests/bench-skeleton.c (main): Pass RES parameter
43929         to TIMING_INIT and multiply result by 1000.
43930
43931 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43932
43933         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43934
43935 2013-09-11  Andreas Schwab  <schwab@suse.de>
43936
43937         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
43938         if not defined.
43939         (O_TMPFILE) [__USE_GNU]: Define.
43940         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
43941         Define.
43942
43943 2013-09-11  Will Newton  <will.newton@linaro.org>
43944
43945         [BZ #15857]
43946         * malloc/malloc.c (__libc_memalign): Check the value of bytes
43947         does not overflow.
43948
43949 2013-09-11  Will Newton  <will.newton@linaro.org>
43950
43951         [BZ #15856]
43952         * malloc/malloc.c (__libc_valloc): Check the value of bytes
43953         does not overflow.
43954
43955 2013-09-11  Will Newton  <will.newton@linaro.org>
43956
43957         [BZ #15855]
43958         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
43959         does not overflow.
43960
43961 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
43962
43963         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
43964         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
43965         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
43966         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
43967         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
43968
43969 2013-09-10  Allan McRae  <allan@archlinux.org>
43970
43971         [BZ #15748]
43972         * manual/arith.texi (Parsing of Floats): Clarify
43973         cross-reference.
43974
43975         [BZ #15849]
43976         * manual/install.texi (Running make install): Mention
43977         --enable-pt-chown.
43978         * INSTALL: Regenerated.
43979
43980 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
43981
43982         * csu/init-first.c (_init): Remove the !SHARED condition around
43983         FPU control word initialization.
43984         * elf/dl-support.c (_dl_fpu_control): New variable.
43985         (_dl_aux_init) <AT_FPUCW>: Initialize it.
43986         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
43987         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
43988         * math/test-fpucw-static.c: New file.
43989         * math/test-fpucw-ieee.c: New file.
43990         * math/test-fpucw-ieee-static.c: New file.
43991         * math/Makefile (tests): Add `test-fpucw-ieee' and
43992         `$(tests-static)'.
43993         (tests-static): New variable.
43994         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
43995         dependency to...
43996         [($(build-shared),yes)]
43997         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
43998         ... this.
43999         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
44000         New dependency.
44001
44002 2013-09-09  Allan McRae  <allan@archlinux.org>
44003
44004         [BZ #15939]
44005         * manual/string.texi (Collation Functions): Fix typo in
44006         strcoll example.
44007         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
44008
44009         [BZ #15893]
44010         * stdlib/isomac.c (get_null_defines): Fix memory leak.
44011
44012         [BZ #15892]
44013         * libio/memstream.c (open_memstream): Fix memory leak.
44014         * libio/wmemstream.c (open_wmemstream): Likewise.
44015
44016         [BZ #15895]
44017         * nscd/netgroupcache.c: Fix nesting of ifdefs.
44018
44019 2013-09-09  Will Newton  <will.newton@linaro.org>
44020
44021         * malloc/Makefile: Add tst-realloc to tests.
44022         * malloc/tst-realloc.c: New file.
44023
44024 2013-09-09  Allan McRae  <allan@archlinux.org>
44025
44026         [BZ #15844]
44027         * COPYING: Update from GNU website to fix FSF address.
44028         * COPYING.LIB: Likewise.
44029
44030 2013-09-06  David S. Miller  <davem@davemloft.net>
44031
44032         * po/zh_TW.po: Update Chinese (traditional) translation from
44033         translation project.
44034
44035 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
44036             Joseph Myers  <joseph@codesourcery.com>
44037
44038         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
44039         "localeinfo.h".
44040         (obstack_chunk_alloc): New macro.
44041         (obstack_chunk_free): Likewise.
44042         (record_offset): New function.
44043         (init_locale_data): Likewise.
44044         (align_locale_data): Likewise.
44045         (add_locale_empty): Likewise.
44046         (add_locale_raw_data): Likewise.
44047         (add_locale_raw_obstack): Likewise.
44048         (add_locale_string): Likewise.
44049         (add_locale_wstring): Likewise.
44050         (add_locale_uint32): Likewise.
44051         (add_locale_uint32_array): Likewise.
44052         (add_locale_char): Likewise.
44053         (start_locale_structure): Likewise.
44054         (end_locale_structure): Likewise.
44055         (start_locale_prelude): Likewise.
44056         (end_locale_prelude): Likewise.
44057         (write_locale_data): Take locale_file structure rather than an
44058         iovec.
44059         * locale/programs/locfile.h: Include "obstack.h".
44060         (struct locale_file): Change to store locale file contents instead
44061         of header.
44062         (init_locale_data): New prototype.
44063         (align_locale_data): Likewise.
44064         (add_locale_empty): Likewise.
44065         (add_locale_raw_data): Likewise.
44066         (add_locale_raw_obstack): Likewise.
44067         (add_locale_string): Likewise.
44068         (add_locale_wstring): Likewise.
44069         (add_locale_uint32): Likewise.
44070         (add_locale_uint32_array): Likewise.
44071         (add_locale_char): Likewise.
44072         (start_locale_structure): Likewise.
44073         (end_locale_structure): Likewise.
44074         (start_locale_prelude): Likewise.
44075         (end_locale_prelude): Likewise.
44076         (write_locale_data): Update prototype.
44077         * locale/programs/3level.h (struct TABLE): Remove result field.
44078         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
44079         Use new locale_file interface.
44080         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
44081         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
44082         * locale/programs/ld-address.c (address_output): Use new
44083         locale_file interface.
44084         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
44085         NO_ADD_LOCALE.
44086         (collate_finish): Don't call collseq_table_finalize.
44087         (collate_output): Use new locale_file interface.
44088         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
44089         in file.
44090         (NO_FINALIZE): Change to NO_ADD_LOCALE.
44091         (TABLE): Move defines earlier in file.
44092         (ELEMENT): Likewise.
44093         (DEFAULT): Likewise.
44094         (wctrans_table_add): Move macro and inline function earlier in
44095         file.
44096         (struct wctype_table): Move type earlier in file.
44097         (add_locale_wctype_table): New static prototype.
44098         (struct locale_ctype_t): Use logical types instead of struct iovec
44099         pointers for members.
44100         (ctype_output): Use new locale_file interface.
44101         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
44102         new locale_file interface.
44103         (allocate_arrays): Update for use of new locale_file interface.
44104         * locale/programs/ld-identification.c (identification_output): Use
44105         new locale_file interface.
44106         * locale/programs/ld-measurement.c (measurement_output): Likewise.
44107         * locale/programs/ld-messages.c (messages_output): Likewise.
44108         * locale/programs/ld-monetary.c (monetary_output): Likewise.
44109         * locale/programs/ld-name.c (name_output): Likewise.
44110         * locale/programs/ld-numeric.c (numeric_output): Likewise.
44111         * locale/programs/ld-paper.c (paper_output): Likewise.
44112         * locale/programs/ld-telephone.c (telephone_output): Likewise.
44113         * locale/programs/ld-time.c (time_output): Likewise.
44114
44115 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44116
44117         * benchtests/Makefile: Add memrchr benchmark.
44118         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
44119         benchmark as memrchr.
44120         * benchtests/bench-memrchr-ifunc.c: New file.
44121         * benchtests/bench-memrchr.c: New file.
44122
44123 2013-09-06   Will Newton  <will.newton@linaro.org>
44124
44125         * benchtests/Makefile (string-bench): Add memcpy.
44126
44127 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
44128             Cong Wang  <amwang@redhat.com>
44129
44130         [BZ #15850]
44131         * sysdeps/unix/sysv/linux/bits/in.h
44132         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
44133         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
44134         before __USE_KERNEL_IPV6_DEFS uses.
44135         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
44136         IPPROTO_BEETPH.
44137         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
44138         sockaddr_in6, or ipv6_mreq.
44139
44140 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44141
44142         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
44143         memory access for final bytes in some large inputs.
44144         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
44145
44146 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44147
44148         * string/test-memrchr.c: New file.
44149         * string/test-memrchr-ifunc.c: New file.
44150         * string/Makefile: Add new memrchr testcase.
44151
44152 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
44153
44154         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
44155         fanotify_init returns EPERM.
44156
44157 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44158
44159         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
44160         errors.
44161         (top level): Treat second token from macro or constant entries for
44162         allowed headers as allowed.
44163         * include/complex.h: Condition internal declarations on
44164         [!_ISOMAC].
44165         * include/fenv.h: Condition include of <stdbool.h> and internal
44166         declarations on [!_ISOMAC].
44167
44168 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
44169
44170         [BZ #15923]
44171         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
44172
44173 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44174
44175         * configure.in (--enable-versioning): Remove configure option.
44176         (libc_cv_asm_symver_directive): Remove configure test.
44177         (libc_cv_ld_version_script_option): Likewise.
44178         (VERSIONING): Remove variable and AC_SUBST.
44179         (DO_VERSIONING): Remove AC_DEFINE.
44180         * configure: Regenerated.
44181         * config.h.in (DO_VERSIONING): Remove macro.
44182         * Makerules [$(versioning) = yes]: Change conditionals to
44183         [$(build-shared) = yes].
44184         * config.make.in (versioning): Remove variable.
44185         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
44186         [$(build-shared) = yes].
44187         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
44188         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
44189         * elf/Makefile [$(versioning) = yes]: Change conditionals to
44190         [$(build-shared) = yes].
44191         * extra-lib.mk [$(versioning) = yes]: Likewise.
44192         * hurd/Makefile [$(versioning) = yes]: Likewise.
44193         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
44194         [SHARED].
44195         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
44196         [SHARED].
44197         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44198         [SHARED && !NO_HIDDEN].
44199         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
44200         [SHARED].
44201         [SHARED && DO_VERSIONING]: Likewise..
44202         * libio/Makefile [$(versioning) = yes]: Change conditionals to
44203         [$(build-shared) = yes].
44204         * manual/install.texi (--disable-versioning): Remove
44205         documentation.
44206         * INSTALL: Regenerated.
44207         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
44208         to [SHARED].
44209         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
44210         [$(build-shared) = yes].
44211         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
44212         * sysdeps/i386/i686/multiarch/strstr-c.c
44213         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44214         [SHARED && !NO_HIDDEN].
44215         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
44216         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
44217         * sysdeps/powerpc/powerpc32/dl-machine.c
44218         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
44219         * sysdeps/powerpc/powerpc32/sysdep.h
44220         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
44221         to [SHARED && PIC && !NO_HIDDEN].
44222         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
44223         conditional to [SHARED].
44224
44225 2013-09-04   Will Newton  <will.newton@linaro.org>
44226
44227         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
44228         * benchtests/bench-string.h: Include bench-timing.h instead
44229         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
44230         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
44231         call to HP_TIMING_DIFF_INIT.
44232         * benchtests/bench-memccpy.c: Use bench-timing.h macros
44233         instead of hp-timing.h macros.
44234         * benchtests/bench-memchr.c: Likewise.
44235         * benchtests/bench-memcmp.c: Likewise.
44236         * benchtests/bench-memcpy.c: Likewise.
44237         * benchtests/bench-memmem.c: Likewise.
44238         * benchtests/bench-memmove.c: Likewise.
44239         * benchtests/bench-memset.c: Likewise.
44240         * benchtests/bench-rawmemchr.c: Likewise.
44241         * benchtests/bench-strcasecmp.c: Likewise.
44242         * benchtests/bench-strcasestr.c: Likewise.
44243         * benchtests/bench-strcat.c: Likewise.
44244         * benchtests/bench-strchr.c: Likewise.
44245         * benchtests/bench-strcmp.c: Likewise.
44246         * benchtests/bench-strcpy.c: Likewise.
44247         * benchtests/bench-strcpy_chk.c: Likewise.
44248         * benchtests/bench-strlen.c: Likewise.
44249         * benchtests/bench-strncasecmp.c: Likewise.
44250         * benchtests/bench-strncat.c: Likewise.
44251         * benchtests/bench-strncmp.c: Likewise.
44252         * benchtests/bench-strncpy.c: Likewise.
44253         * benchtests/bench-strnlen.c: Likewise.
44254         * benchtests/bench-strpbrk.c: Likewise.
44255         * benchtests/bench-strrchr.c: Likewise.
44256         * benchtests/bench-strspn.c: Likewise.
44257         * benchtests/bench-strstr.c: Likewise.
44258
44259 2013-09-04  Will Newton  <will.newton@linaro.org>
44260
44261         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
44262
44263 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
44264
44265         [BZ #15427]
44266         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
44267         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
44268         * math/libm-test.inc (lgamma_test_data): Add more tests.
44269         * sysdeps/i386/fpu/libm-test-ulps: Update.
44270         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44271
44272 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
44273
44274         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
44275         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44276         Add ifunc.
44277         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
44278         Add strcmp-sse2-unaligned
44279         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
44280
44281 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44282
44283         * Versions.def (libc): Add GLIBC_2.19.
44284
44285 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44286
44287         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
44288         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
44289
44290 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
44291
44292         [BZ #14155]
44293         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
44294         intermediate calculations in recurrence.
44295         (__ieee754_ynf): Likewise.
44296         * math/libm-test.inc (jn_test_data): Do not allow spurious
44297         underflow exception.  Add more tests.
44298         (yn_test_data): Add more tests.
44299         * sysdeps/i386/fpu/libm-test-ulps: Update.
44300         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44301
44302 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
44303
44304         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
44305
44306 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44307
44308         * csu/init-first.c: Fix then/than typos.
44309         * locale/programs/ld-collate.c: Likewise.
44310         * locale/programs/linereader.h: Likewise.
44311         * manual/charset.texi: Likewise.
44312         * manual/filesys.texi: Likewise.
44313         * manual/stdio.texi: Likewise.
44314         * manual/string.texi: Likewise.
44315         * stdlib/fmtmsg.c: Likewise.
44316         * sysdeps/i386/stpncpy.S: Likewise.
44317         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
44318         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
44319         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
44320         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
44321
44322 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44323
44324         * elf/dl-open.c: Fix typos.
44325         * iconvdata/gbbig5.c: Likewise.
44326         * iconvdata/iso-2022-jp.c: Likewise.
44327         * iconv/gconv_int.h: Likewise.
44328         * iconv/loop.c: Likewise.
44329         * nis/rpcsvc/nis.h: Likewise.
44330         * resolv/ns_name.c: Likewise.
44331         * stdio-common/vfscanf.c: Likewise.
44332         * streams/stropts.h: Likewise.
44333         * sunrpc/rpc_thread.c: Likewise.
44334         * sysdeps/i386/strpbrk.S: Likewise.
44335         * sysdeps/ieee754/k_standard.c: Likewise.
44336         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
44337         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44338         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
44339         * sysdeps/mach/hurd/profil.c: Likewise.
44340         * sysdeps/s390/dl-procinfo.h: Likewise.
44341         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
44342         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
44343         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
44344         * sysdeps/x86_64/dl-trampoline.S: Likewise.
44345         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
44346
44347 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
44348
44349         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
44350         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
44351
44352 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
44353
44354         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
44355         aix specific files.
44356         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
44357         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
44358         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
44359         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
44360         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
44361         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
44362         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
44363         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
44364
44365 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44366             Roland McGrath  <roland@hack.frob.com>
44367
44368         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
44369         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
44370
44371 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44372
44373         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
44374         __executable_start symbol instead of _start.
44375
44376 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44377
44378         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
44379         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
44380         Move macros to...
44381         * sysdeps/gnu/ldsodefs.h: ... this new file.
44382
44383         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
44384         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
44385         instead of ELFOSABI_LINUX.
44386
44387         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
44388         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
44389         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
44390         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
44391         Likewise.
44392         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
44393         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
44394         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
44395         Likewise.
44396         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
44397         (ibm_extended_long_double): Add ieee_nan member.
44398         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
44399         (do_test): New function.
44400
44401         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
44402         TEST_TRUNC.
44403         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
44404         functions, renamed from truncdfsf_test, trunctfsf_test,
44405         trunctfdf_test.
44406         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
44407         functions.
44408         (do_test): Run all these.
44409
44410 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
44411
44412         * argp/argp-help.c: Fix typos.
44413         * argp/argp-parse.c: Likewise.
44414         * debug/backtracesyms.c: Likewise.
44415         * elf/elf.h: Likewise.
44416         * malloc/malloc.c: Likewise.
44417         * nis/nis_print.c: Likewise.
44418         * resolv/res_comp.c: Likewise.
44419         * stdlib/stdlib.h: Likewise.
44420         * sunrpc/clnt_tcp.c: Likewise.
44421         * sunrpc/clnt_udp.c: Likewise.
44422         * sunrpc/clnt_unix.c: Likewise.
44423         * sysdeps/unix/bsd/ptsname.c: Likewise.
44424         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
44425         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
44426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
44427         Likewise.
44428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
44429         Likewise.
44430         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
44431         Likewise.
44432         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
44433
44434 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
44435
44436         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
44437         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44438
44439 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
44440
44441         [BZ #15897]
44442         * dlfcn/Makefile (tests): Add bug-dl-leaf.
44443         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
44444         ($(objpfx)bug-dl-leaf): New rule.
44445         ($(objpfx)bug-dl-leaf.so): Likewise.
44446         ($(objpfx)bug-dl-leaf.out): Likewise.
44447         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
44448         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
44449         * dlfcn/bug-dl-leaf.c: New test.
44450         * dlfcn/bug-dl-leaf-lib.c: Likewise.
44451         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
44452         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
44453         (dlclose): Likewise.
44454         (dlmopen): Likewise.
44455
44456 2013-08-27  Roland McGrath  <roland@hack.frob.com>
44457
44458         * include/netdb.h [!_ISOMAC]:
44459         Don't include <tls.h>.
44460         (h_errno, __libc_h_errno): Move declaration and macros out of
44461         [_LIBC_REENTRANT].
44462
44463         * include/resolv.h [_RESOLV_H_]:
44464         Don't include <tls.h>.
44465         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
44466         * resolv/res_libc.c: Don't include <tls.h>.
44467         (_res): Use __attribute__ ((nocommon)) in place of
44468         __attribute__ ((section (".bss"))).
44469
44470         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
44471         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
44472
44473         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
44474
44475         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
44476         only under [SIOCGIFCONF && SIOCGIFNETMASK].
44477
44478         * resolv/res_mkquery.c: Include <sys/time.h>.
44479
44480         * inet/ifreq.c: Moved to ...
44481         * sysdeps/unix/ifreq.c: ... here.
44482         * inet/ifreq.c: New file, true stub version.
44483
44484         * socket/sa_len.c: New file.
44485         * socket/Makefile (aux): Add it.
44486         * sysdeps/unix/sysv/linux/Makefile
44487         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
44488         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
44489         and #include <socket/sa_len.c>.
44490         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
44491         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
44492
44493         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
44494         * bits/socket.h: ... here.
44495
44496         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
44497         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
44498         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
44499
44500 2013-08-27  Andreas Schwab  <schwab@suse.de>
44501
44502         [BZ #15736]
44503         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
44504         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
44505         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
44506         * string/test-strcasecmp.c (test_main): Run tests in several
44507         locales.
44508         * string/test-strncasecmp.c (test_main): Likewise.
44509
44510         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
44511         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
44512         to __strcasecmp_nonascii and __strncasecmp_nonascii.
44513         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
44514         (__strncasecmp_ssse3) [PIC]: Likewise.
44515
44516 2013-08-26  Roland McGrath  <roland@hack.frob.com>
44517
44518         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
44519
44520         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
44521         instead of explicitly declaring xdecrypt.
44522         * nis/nss_nis/nis-publickey.c: Likewise.
44523
44524 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44525
44526         [BZ #15890]
44527         * nscd/aicache.c: Include res_hconf.h.
44528         (addhstaiX): Initialize res_hconf.
44529
44530 2013-08-26  Andreas Schwab  <schwab@suse.de>
44531
44532         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
44533         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
44534
44535 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44536
44537         * nscd/aicache.c (addhstaiX): Fix indentation.
44538
44539 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
44540
44541         * configure.ac: Quote $build_pt_chown test.
44542         * configure: Regenerated.
44543
44544 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
44545
44546         [BZ #15532]
44547         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
44548         * math/s_cexpf.c (__cexpf): Likewise.
44549         * math/s_cexpl.c (__cexpl): Likewise.
44550         * math/libm-test.inc (cexp_test_data): Correct expected return
44551         value for NaN + i0.  Add another test.
44552
44553 2013-08-22  David S. Miller  <davem@davemloft.net>
44554
44555         * po/ca.po: Update Catalan translation from translation project.
44556         * po/uk.po: Add Ukrainian translations from translation project.
44557
44558 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
44559
44560         [BZ #15797]
44561         * math/s_fdim.c (__fdim): Check for infinite arguments if result
44562         is infinite, not alongside NaN test.
44563         * math/s_fdimf.c (__fdimf): Likewise.
44564         * math/s_fdiml.c (__fdiml): Likewise.
44565         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
44566         errno is unchanged.
44567
44568 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
44569
44570         * argp/argp-help.c: Fix typos.
44571         * crypt/speeds.c: Likewise.
44572         * csu/check_fds.c: Likewise.
44573         * elf/dl-load.c: Likewise.
44574         * elf/dl-open.c: Likewise.
44575         * elf/reldep3.c: Likewise.
44576         * elf/reldep.c: Likewise.
44577         * elf/sprof.c: Likewise.
44578         * iconv/iconv_charmap.c: Likewise.
44579         * iconv/skeleton.c: Likewise.
44580         * iconv/strtab.c: Likewise.
44581         * io/lockf64.c: Likewise.
44582         * libio/libioP.h: Likewise.
44583         * resolv/gai_notify.c: Likewise.
44584         * resolv/ns_name.c: Likewise.
44585         * resolv/ns_samedomain.c: Likewise.
44586         * resolv/res_send.c: Likewise.
44587         * stdlib/random.c: Likewise.
44588         * sunrpc/rpc/xdr.h: Likewise.
44589         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
44590         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
44591         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
44592         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
44593         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
44594         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
44595         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
44596         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
44597         * sysdeps/mach/hurd/check_fds.c: Likewise.
44598         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
44599         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
44600         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
44601         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
44602         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
44603         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
44604         * sysdeps/pthread/aio_notify.c: Likewise.
44605         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
44606         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
44607         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
44608         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
44609         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
44610
44611 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44612
44613         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
44614         version if bit_Slow_SSE4_2 is set.
44615         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
44616         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
44617
44618 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44619
44620         [BZ #15867]
44621         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
44622         trampoline stack frame information.
44623         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
44624         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
44625         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
44626         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
44627         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
44628         * sysdeps/unix/sysv/linux/powerpc/init-first.c
44629         (_libc_vdso_platform_setup): Initialize the signal trampolines.
44630         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
44631         sa_flags value.
44632         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
44633         interrupting a syscall and set with option SA_SIGINFO.
44634
44635 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44636
44637         [BZ #15531]
44638         * math/s_cproj.c (__cproj): Only return an infinity if one part of
44639         argument is infinite.
44640         * math/s_cprojf.c (__cprojf): Likewise.
44641         * math/s_cprojl.c (__cprojl): Likewise.
44642         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
44643         * math/libm-test.inc (cproj_test_data): Add more tests.
44644
44645         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
44646
44647         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
44648         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
44649         size.  Use __ffs to determine corresponding shift.
44650
44651 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44652             Roland McGrath  <roland@hack.frob.com>
44653
44654         * Makefile (INSTALL): Remove trailing blank lines from output of
44655         makeinfo.
44656
44657 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44658
44659         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
44660         Align 32 bit compat elf_greg to 8 bytes.
44661
44662 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
44663
44664         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
44665
44666 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
44667
44668         * string/strcoll_l.c (coll_seq): New structure.
44669         (get_next_seq_cached): New function.
44670         (get_next_seq): New function.
44671         (do_compare): New function.
44672         (STRCOLL): Use GNU style definition.  Simplify implementation
44673         by using get_next_seq, get_next_seq_cached and do_compare.
44674
44675 2013-08-16  Florian Weimer  <fweimer@redhat.com>
44676
44677         [BZ #14699]
44678         CVE-2013-4237
44679         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
44680         member.
44681         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
44682         member.
44683         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
44684         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
44685         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
44686         conditional.
44687         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
44688         GETDENTS_64BIT_ALIGNED.
44689         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
44690         * manual/filesys.texi (Reading/Closing Directory): Document
44691         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
44692         strongly.
44693         * manual/conf.texi (Limits for Files): Add portability note to
44694         NAME_MAX, PATH_MAX.
44695         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
44696
44697 2013-08-13  Andreas Schwab  <schwab@suse.de>
44698
44699         [BZ #15749]
44700         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
44701         of fabs.
44702         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
44703         LDBL_MAX_EXP >= 16384]: Add tests for it.
44704
44705 2013-08-12  David S. Miller  <davem@davemloft.net>
44706
44707         * version.h (RELEASE): Set to "development".
44708         (VERSION): Set to "2.18.90".
44709         * NEWS: Add 2.19 section.
44710
44711 2013-08-03  David S. Miller  <davem@davemloft.net>
44712
44713         * po/ko.po: Update Korean translation from translation project.
44714
44715 2013-08-01  David S. Miller  <davem@davemloft.net>
44716
44717         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
44718         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
44719         Bilka.
44720
44721 2013-07-30  David S. Miller  <davem@davemloft.net>
44722
44723         * po/fr.po: Update French translation from translation project.
44724
44725 2013-07-28  David S. Miller  <davem@davemloft.net>
44726
44727         * po/cs.po: Update Czech translation from translation project.
44728
44729         * po/sv.po: Update Swedish translation from translation project.
44730
44731 2013-07-27  David S. Miller  <davem@davemloft.net>
44732
44733         * po/eo.po: Update Esperanto translation from translation project.
44734
44735         * po/vi.po: Update Vietnamese translation from translation project.
44736
44737         * po/de.po: Update German translation from translation project.
44738
44739 2013-07-26  David S. Miller  <davem@davemloft.net>
44740
44741         * po/bg.po: Update Bulgarian translation from translation project.
44742
44743         * po/nl.po: Update Dutch translation from translation project.
44744         * po/pl.po: Update Polish translation from translation project.
44745         * po/ru.po: Update Russian translation from translation project.
44746
44747 2013-07-24  David S. Miller  <davem@davemloft.net>
44748
44749         * po/libc.pot: Update.
44750
44751 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44752
44753         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
44754         variable page size.
44755         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
44756         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
44757         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
44758
44759 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44760
44761         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
44762
44763 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
44764             Andreas Schwab  <schwab@suse.de>
44765             Roland McGrath  <roland@hack.frob.com>
44766             Joseph Myers  <joseph@codesourcery.com>
44767             Carlos O'Donell  <carlos@redhat.com>
44768
44769         [BZ #15755]
44770         * config.h.in: Define HAVE_PT_CHOWN.
44771         * config.make.in (build-pt-chown): New variable.
44772         * configure.in (--enable-pt_chown): New configure option.
44773         * configure: Regenerate.
44774         * login/Makefile: Include Makeconfig.  Build pt_chown only if
44775         build-pt-chown is enabled.
44776         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
44777         pt_chown to fix pty ownership.
44778         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
44779         CLOSE_ALL_FDS.
44780         * manual/install.texi (Configuring and compiling): Mention
44781         --enable-pt_chown. Add @findex for grantpt.
44782         * INSTALL: Regenerate.
44783
44784 2013-07-20  David S. Miller  <davem@davemloft.net>
44785
44786         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
44787         difference between 32-bit and 64-bit.
44788
44789 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
44790
44791         [BZ #15711]
44792         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
44793         Avoid system header dependency with -ffreestanding.
44794         ($(objpfx)bits/syscall%d): Likewise.
44795
44796 2013-07-13  David S. Miller  <davem@davemloft.net>
44797
44798         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
44799         underflows from atanl/atan2l due to bug 15319.
44800         (casinh_test_data): Likewise.
44801
44802 2013-07-07  David S. Miller  <davem@davemloft.net>
44803
44804         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
44805
44806 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
44807
44808         * sysdeps/i386/fpu/libm-test-ulps: Update.
44809         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44810
44811 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
44812
44813         * configure.in (--enable-lock-elision): Fix message text.
44814         * INSTALL: Regenerate.
44815         * configure: Regenerate.
44816
44817 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44818
44819         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44820
44821 2013-07-03  Andreas Jaeger  <aj@suse.de>
44822
44823         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
44824         define.
44825         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
44826         (ptrace_peeksiginfo_args): Add.
44827         (__ptrace_peeksiginfo_flags): Add.
44828         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
44829         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
44830         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
44831
44832 2013-07-03  Allan McRae  <allan@archlinux.org>
44833
44834         * sysdeps/i386/fpu/libm-test-ulps: Update.
44835
44836 2013-07-02  David S. Miller  <davem@davemloft.net>
44837
44838         * sysdeps/sparc/fpu/libm-test-ulps: Update.
44839
44840 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
44841
44842         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
44843
44844 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
44845
44846         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
44847         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44848
44849 2013-07-02  Andi Kleen <ak@linux.intel.com>
44850
44851         * config.h.in (ENABLE_LOCK_ELISION): Add.
44852         * configure.in (--enable-lock-elision): Add option.
44853         * manual/install.texi: Document --enable lock elision.
44854         * configure: Regenerate
44855         * INSTALL: Regenerate.
44856
44857 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
44858
44859         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
44860         SSE4.2 strcasecmp for libc.a.
44861         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
44862
44863 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
44864
44865         [BZ #13304]
44866         * soft-fp/op-common.h (_FP_FMA): New macro.
44867         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
44868         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
44869         (_FP_MUL_MEAT_1_imm): ... here.
44870         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
44871         (_FP_MUL_MEAT_1_wide): ... here.
44872         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
44873         (_FP_MUL_MEAT_1_hard): ... here.
44874         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
44875         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
44876         (_FP_MUL_MEAT_2_wide): ... here.
44877         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
44878         (_FP_MUL_MEAT_2_wide_3mul): ... here.
44879         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
44880         (_FP_MUL_MEAT_2_gmp): ... here.
44881         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
44882         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
44883         (_FP_MUL_MEAT_4_wide): ... here.
44884         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
44885         (_FP_MUL_MEAT_4_gmp): ... here.
44886         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
44887         (_FP_WFRACBITS_DW_S): Likewise.
44888         (_FP_WFRACXBITS_DW_S): Likewise.
44889         (_FP_HIGHBIT_DW_S): Likewise.
44890         (FP_FMA_S): Likewise.
44891         (_FP_FRAC_HIGH_DW_S): Likewise.
44892         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
44893         (_FP_WFRACBITS_DW_D): Likewise.
44894         (_FP_WFRACXBITS_DW_D): Likewise.
44895         (_FP_HIGHBIT_DW_D): Likewise.
44896         (FP_FMA_D): Likewise.
44897         (_FP_FRAC_HIGH_DW_D): Likewise.
44898         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
44899         (_FP_WFRACBITS_DW_E): Likewise.
44900         (_FP_WFRACXBITS_DW_E): Likewise.
44901         (_FP_HIGHBIT_DW_E): Likewise.
44902         (FP_FMA_E): Likewise.
44903         (_FP_FRAC_HIGH_DW_E): Likewise.
44904         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
44905         (_FP_WFRACBITS_DW_Q): Likewise.
44906         (_FP_WFRACXBITS_DW_Q): Likewise.
44907         (_FP_HIGHBIT_DW_Q): Likewise.
44908         (FP_FMA_Q): Likewise.
44909         (_FP_FRAC_HIGH_DW_Q): Likewise.
44910         * soft-fp/fmasf4.c: New file.
44911         * soft-fp/fmadf4.c: Likewise.
44912         * soft-fp/fmatf4.c: Likewise.
44913
44914 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44915
44916         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
44917         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
44918         Silvermont.
44919         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
44920         macro.
44921         (index_Slow_SSE4_2): Likewise.
44922         (index_Prefer_PMINUB_for_stringop): Likewise.
44923         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
44924         bit_Slow_SSE4_2 is set.
44925         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
44926         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
44927
44928 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44929
44930         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
44931         rtld_global._dl_hwcap2.
44932         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
44933         POWER8.
44934         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
44935         POWER8 feature descriptions defined in _dl_hwcap2.
44936         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
44937         string handling for POWER8 feature bits.
44938         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
44939         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
44940         _dl_powerpc_cap_flags.
44941         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
44942         * sysdeps/powerpc/rtld-global-offsets.sym
44943         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
44944         _dl_hwcap2 in the rtld_global_ro structure.
44945
44946 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44947
44948         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
44949         hardware capabilities in support of AT_HWCAP2.
44950         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
44951         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
44952         GLRO(dl_hwcap2).
44953         (_dl_show_auxv): Add support for calling _dl_procinfo to display
44954         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
44955         explicitly the unknown a_type display mechanism is used.
44956         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
44957         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
44958         struct member.
44959         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
44960         to macro prototype for AT_HWCAP2 support.
44961         * sysdeps/i386/dl-procinfo.h: Likewise.
44962         * sysdeps/s390/dl-procinfo.h: Likewise.
44963         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
44964         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
44965         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
44966         return -1 for unknown a_type display fallback.
44967         * sysdeps/sparc/dl-procinfo.h: Likewise.
44968         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
44969         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
44970
44971 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
44972
44973         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
44974         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
44975
44976 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
44977
44978         [BZ #12492]
44979         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
44980         mprotect making __stack_prot writable.
44981
44982 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
44983             Joseph Myers  <joseph@codesourcery.com>
44984
44985         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
44986         as being properly aligned.
44987
44988 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
44989
44990         * dlfcn/modstatic5.c: New file.
44991         * dlfcn/tststatic5.c: New file.
44992         * dlfcn/Makefile (tests): Add tststatic5.
44993         (tests-static): Likewise.
44994         (modules-names): Add modstatic5.
44995         (tststatic5-ENV): New variable.
44996         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
44997
44998         [BZ #15022]
44999         * elf/dl-support.c (_dl_main_map): New variable.
45000         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
45001         (_dl_nns, _dl_load_adds): Set to 1.
45002         (_dl_initial_searchlist): Refer to _dl_main_map.
45003         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
45004         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
45005         call to _dl_get_origin.
45006         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
45007         around call_map.
45008         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
45009         * dlfcn/modstatic3.c: New file.
45010         * dlfcn/tststatic3.c: New file.
45011         * dlfcn/tststatic4.c: New file.
45012         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
45013         (tests-static): Likewise.
45014         (modules-names): Add modstatic3.
45015         (tststatic3-ENV, tststatic4-ENV): New variables.
45016         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
45017         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
45018
45019 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
45020
45021         * configure.in (CC): Require GCC version 4.4 or later.
45022         * configure: Regenerated.
45023         * manual/install.texi (Tools for Compilation): Update GCC version
45024         requirement.
45025         * INSTALL: Regenerated.
45026
45027 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45028
45029         [BZ #15674]
45030         * string/test-memcmp.c (check2): New.
45031         (main): Call check2.
45032
45033         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
45034
45035 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
45036
45037         [BZ #15022]
45038         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
45039         over to...
45040         (dl_open_worker) [!SHARED]: ... here.
45041
45042 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45043
45044         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
45045
45046 2013-06-25  Richard Henderson  <rth@redhat.com>
45047
45048         * locale/programs/locarchive.c: Include <libc-internal.h>
45049
45050 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
45051
45052         * manual/texinfo.tex: Update to version 2013-06-21.17, with
45053         trailing whitespace removed.
45054
45055 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45056
45057         [BZ #10283]
45058         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
45059         * locale/programs/locarchive.c: Include libc-mmap.h.
45060         (prepare_address_space): Take two new outputs (the mmap base and len).
45061         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
45062         values.
45063         (create_archive): Declare new mmap base and len values for
45064         prepare_address_space, and store the result in ah.
45065         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
45066         (enlarge_archive): If ah->mmap_base is not NULL, use that and
45067         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45068         Declare new mmap base and len values for
45069         prepare_address_space, and store the result in new_ah.
45070         (open_archive): Declare new mmap base and len values for
45071         prepare_address_space, and store the result in ah.
45072         (close_archive): If ah->mmap_base is not NULL, use that and
45073         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45074         * sysdeps/generic/libc-mmap.h: New file.
45075
45076 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45077
45078         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
45079         (ALIGN_UP): Likewise.
45080         (PTR_ALIGN_DOWN): Likewise.
45081         (PTR_ALIGN_UP): Likewise.
45082
45083 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45084
45085         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
45086         entry mapped to PPC_PLATFORM_POWER8.
45087         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
45088         POWER8.
45089         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
45090         (_dl_string_platform): Add case for exporting platform position for
45091         POWER8.
45092         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
45093         search path to sysdeps/powerpc/powerpc32/power8 directory.
45094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
45095         search path to sysdeps/powerpc/powerpc64/power8 directory.
45096         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
45097         power7 directories.
45098         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
45099         power7 directories.
45100
45101 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
45102
45103         * INSTALL: Regenerate.
45104
45105         * nscd/connections.c (nscd_init): Fix comment.
45106
45107 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
45108
45109         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
45110
45111         [BZ #15667]
45112         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
45113         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
45114
45115 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45116
45117         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
45118         DL_DST_REQ_STATIC.
45119         (DL_DST_REQ_STATIC): Remove macro.
45120
45121 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
45122
45123         [BZ #7006]
45124         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
45125         with a shift of 0 bits.
45126
45127 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45128
45129         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
45130         $(tststatic-ENV).
45131
45132 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45133
45134         [BZ #15655]
45135         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
45136
45137 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45138
45139         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
45140         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
45141         accepts -fno-tree-loop-distribute-patterns.
45142         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
45143         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
45144         recursive call.
45145         * string/memset.c (memset): Likewise.
45146         * string/test-memmove.c (simple_memmove): Disable loop transformation
45147         to library calls.
45148         * string/test-memset.c (simple_memset): Likewise.
45149         * benchtests/bench-memmove.c (simple_memmove): Likewise.
45150         * benchtests/bench-memset.c (simple_memset): Likewise.
45151         * configure: Regenerated.
45152
45153 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
45154
45155         * math/test-misc.c (main): Ignore fesetround failure when failures
45156         of subsequent rounding tests would be ignored.
45157
45158         [BZ #15654]
45159         * math/fedisblxcpt.c (fedisableexcept): Return 0.
45160         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
45161         * math/fegetenv.c (__fegetenv): Return 0.
45162         * math/fegetexcept.c (fegetexcept): Return 0.
45163         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
45164         FE_TONEAREST.
45165         * math/feholdexcpt.c (feholdexcept): Return 0.
45166         * math/fesetenv.c (__fesetenv): Return 0.
45167         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
45168         argument FE_TONEAREST.
45169         * math/feupdateenv.c (__feupdateenv): Return 0.
45170         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
45171
45172 2013-06-18  Roland McGrath  <roland@hack.frob.com>
45173
45174         * elf/rtld-Rules (rtld-compile-command.S): New variable.
45175         (rtld-compile-command.s, rtld-compile-command.c): New variables.
45176         ($(objpfx)rtld-%.os rules): Use them.
45177
45178 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45179
45180         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
45181         fields.
45182
45183 2013-06-17  Roland McGrath  <roland@hack.frob.com>
45184
45185         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
45186         length of target pattern, then descending length of dependency pattern.
45187         * configure.in (AWK): Require gawk 3.1.2 or newer.
45188         * manual/install.texi (Tools for Compilation): Say that we do.
45189         * configure: Regenerated.
45190
45191         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
45192         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
45193         * scripts/sysd-rules.awk: ... this new script.
45194         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
45195         than a glob-style pattern.
45196
45197 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
45198
45199         * math/test-misc.c (main): Do not treat incorrectly rounded
45200         conversions as failure unless ROUNDING_TESTS passes.
45201
45202 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
45203
45204         [BZ #15631]
45205         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
45206         restore exception state around main square root computation, then
45207         check for inexactness explicitly.
45208
45209         * math/libm-test.inc (fma_test_data): Add another test.
45210
45211 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
45212
45213         * manual/threads.texi (Non-POSIX Extensions): New document
45214         node.  Document pthread_getattr_default_np and
45215         pthread_setattr_default_np.
45216
45217         * Versions.def (libpthread): Add GLIBC_2.18.
45218         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
45219         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
45220         Likewise.
45221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
45222         Likewise.
45223         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
45224         Likewise.
45225         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
45226         Likewise.
45227         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
45228         Likewise.
45229         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
45230         Likewise.
45231         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
45232         Likewise.
45233         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
45234         Likewise.
45235         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
45236         Likewise.
45237
45238 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45239
45240         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45241         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
45242
45243 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
45244             H.J. Lu  <hjl.tools@gmail.com>
45245
45246         [BZ #15627]
45247         * sysdeps/x86_64/rtld-memset.c: Remove file.
45248         * sysdeps/x86_64/rtld-memset.S: New file.
45249
45250 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
45251
45252         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
45253         (test_in_one_mode): Take arguments for whether the rounding mode
45254         is supported for each floating-point type.
45255         (do_test): Pass new arguments to test_in_one_mode using
45256         ROUNDING_TESTS.
45257
45258 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45259
45260         * posix/tst-waitid.c (do_test): Distinguish different instances of
45261         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
45262         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
45263         before entering the kernel for waitpid.
45264
45265 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45266
45267         * NEWS: Fix note on clock function precision.  Text by Roland
45268         McGrath.
45269
45270 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45271
45272         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
45273         it into place only when and if the sanity check passes.
45274
45275 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
45276
45277         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
45278         output for whether conversion result is exact.  Take argument
45279         indicating whether type is IBM long double.
45280         (round_for_all): Change need_exact field to ibm_ld.
45281         * stdlib/tst-strtod-round.c (struct exactness): New type.
45282         (struct test): Change bool ld_ok field to struct exactness exact.
45283         (TEST): Update all definitions for change to field.
45284         (tests): Regenerate array contents.
45285         (test_in_one_mode): Take pointer to new field instead of old ld_ok
45286         field value.  Check for IBM long double here.
45287         (do_test): Update calls to test_in_one_mode.
45288
45289 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45290
45291         [BZ #12515]
45292         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
45293         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
45294
45295 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45296
45297         [BZ #15605]
45298         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
45299         generated by the compiler on loop optimizations.
45300         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
45301         general definitions.
45302
45303 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
45304
45305         * math/bug-nextafter.c: Include <math-tests.h>.
45306         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45307         the relevant type.
45308         * math/bug-nexttoward.c: Include <math-tests.h>.
45309         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45310         the relevant type.
45311         * math/test-misc.c: Include <math-tests.h>.
45312         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45313         the relevant type.
45314
45315 2013-06-12  Andreas Jaeger  <aj@suse.de>
45316
45317         * po/ia.po: Update Interlingua translation from translation
45318         project.
45319
45320 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
45321
45322         * include/fenv.h: Include stdbool.h.
45323         (struct rm_ctx): New structure.
45324         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
45325         Define macro.
45326         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
45327         (SET_RESTORE_ROUNDF): Likewise.
45328         (SET_RESTORE_ROUNDL): Likewise.
45329         (SET_RESTORE_ROUND_NOEX): Likewise.
45330         (SET_RESTORE_ROUND_NOEXF): Likewise.
45331         (SET_RESTORE_ROUND_NOEXL): Likewise.
45332         (SET_RESTORE_ROUND_53BIT): Likewise.
45333         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
45334         (libc_feresetround_noexf_ctx): Likewise.
45335         (libc_feresetround_noexl_ctx): Likewise.
45336         (libc_feholdsetround_53bit_ctx): Likewise.
45337         (libc_feresetround_53bit_ctx): Likewise.
45338         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
45339         (libc_feholdexcept_setround_sse_ctx): New function.
45340         (libc_fesetenv_sse_ctx): Likewise.
45341         (libc_feupdateenv_sse_ctx): Likewise.
45342         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
45343         (libc_feholdexcept_setround_387_ctx): Likewise.
45344         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
45345         (libc_feholdsetround_387_prec_ctx): Likewise.
45346         (libc_feholdsetround_387_ctx): Likewise.
45347         (libc_feholdsetround_387_53bit_ctx): Likewise.
45348         (libc_feholdsetround_sse_ctx): Likewise.
45349         (libc_feresetround_sse_ctx): Likewise.
45350         (libc_feresetround_387_ctx): Likewise.
45351         (libc_feupdateenv_387_ctx): Likewise.
45352         (libc_feholdexcept_setroundf_ctx): Define macro.
45353         (libc_fesetenvf_ctx): Likewise.
45354         (libc_feupdateenvf_ctx): Likewise.
45355         (libc_feholdsetroundf_ctx): Likewise.
45356         (libc_feresetroundf_ctx): Likewise.
45357         (libc_feholdexcept_setround_ctx): Likewise.
45358         (libc_fesetenv_ctx): Likewise.
45359         (libc_feupdateenv_ctx): Likewise.
45360         (libc_feholdsetround_ctx): Likewise.
45361         (libc_feresetround_ctx): Likewise.
45362         (libc_feholdexcept_setroundl_ctx): Likewise.
45363         (libc_feupdateenvl_ctx): Likewise.
45364         (libc_feholdsetroundl_ctx): Likewise.
45365         (libc_feresetroundl_ctx): Likewise.
45366         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
45367         (libc_feresetround_53bit_ctx): Likewise.
45368
45369 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45370
45371         * locale/iso-639.def: Convert to UTF-8.
45372
45373 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
45374
45375         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
45376         (EXCEPTION_TESTS_double): Likewise.
45377         (EXCEPTION_TESTS_long_double): Likewise.
45378         (EXCEPTION_TESTS): Likewise.
45379         * math/libm-test.inc (test_exceptions): Only test exceptions if
45380         EXCEPTION_TESTS (FLOAT).
45381
45382 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45383
45384         * benchtests/Makefile (string-bench): Add strcpy_chk and
45385         stpcpy_chk.
45386         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
45387         * benchtests/bench-stpcpy_chk.c: New file.
45388         * benchtests/bench-strcpy_chk-ifunc.c: New file.
45389         * benchtests/bench-strcpy_chk.c: New file.
45390         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
45391         code.
45392         (do_test): Likewise.
45393
45394 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45395
45396         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
45397         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
45398         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
45399         with tabs where appropriate.
45400         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
45401         dl-procinfo.h.
45402         [PPC_PLATFORM_PPC440]: Likewise.
45403         [PPC_PLATFORM_PPC464]: Likewise.
45404         [PPC_PLATFORM_PPC476]: Likewise.
45405         (_dl_string_platform): Add support for detecting ppc405, ppc440,
45406         ppc464, and ppc476 platform strings merging from ports/
45407         dl-procinfo.h.
45408
45409 2013-06-11  Andreas Schwab  <schwab@suse.de>
45410
45411         [BZ #14991]
45412         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
45413         (from_ucs4_idx): Regenerate.
45414         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
45415         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
45416         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
45417         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
45418         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
45419         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
45420         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
45421         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
45422         from FROM_LOOP and TO_LOOP specific macros.
45423         (BODY): Handle combining characters.
45424         * iconvdata/BIG5HKSCS.irreversible: Update.
45425         * iconvdata/BIG5HKSCS.precomposed: New file.
45426         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
45427         characters.
45428         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
45429
45430 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45431
45432         * include/sys/time.h: Fix indentation and add copyright header.
45433
45434         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
45435         (do_test): Likewise.
45436         * string/test-memchr.c (do_one_test): Likewise.
45437         (do_test): Likewise.
45438         * string/test-memcmp.c (do_one_test): Likewise.
45439         (do_test): Likewise.
45440         * string/test-memcpy.c (do_one_test): Likewise.
45441         (do_test): Likewise.
45442         * string/test-memmem.c (do_one_test): Likewise.
45443         (do_test): Likewise.
45444         (do_random_tests): Likewise.
45445         * string/test-memmove.c (do_one_test): Likewise.
45446         (do_test): Likewise.
45447         * string/test-memset.c (do_one_test): Likewise.
45448         (do_test): Likewise.
45449         * string/test-rawmemchr.c (do_one_test): Likewise.
45450         (do_test): Likewise.
45451         * string/test-strcasecmp.c (do_one_test): Likewise.
45452         (do_test): Likewise.
45453         * string/test-strcasestr.c (do_one_test): Likewise.
45454         (do_test): Likewise.
45455         * string/test-strcat.c (do_one_test): Likewise.
45456         (do_test): Likewise.
45457         * string/test-strchr.c (do_one_test): Likewise.
45458         (do_test): Likewise.
45459         * string/test-strcmp.c (do_one_test): Likewise.
45460         (do_test): Likewise.
45461         * string/test-strcpy.c (do_one_test): Likewise.
45462         (do_test): Likewise.
45463         * string/test-string.h: Likewise.
45464         (test_init): Likewise.
45465         * string/test-strlen.c (do_one_test): Likewise.
45466         (do_test): Likewise.
45467         * string/test-strncasecmp.c (do_one_test): Likewise.
45468         (do_test): Likewise.
45469         * string/test-strncat.c (do_one_test): Likewise.
45470         (do_test): Likewise.
45471         * string/test-strncmp.c (do_one_test): Likewise.
45472         (do_test_limit): Likewise.
45473         (do_test): Likewise.
45474         * string/test-strncpy.c (do_one_test): Likewise.
45475         (do_test): Likewise.
45476         * string/test-strnlen.c (do_one_test): Likewise.
45477         (do_test): Likewise.
45478         * string/test-strpbrk.c (do_one_test): Likewise.
45479         (do_test): Likewise.
45480         * string/test-strrchr.c (do_one_test): Likewise.
45481         (do_test): Likewise.
45482         * string/test-strspn.c (do_one_test): Likewise.
45483         (do_test): Likewise.
45484         * string/test-strstr.c (do_one_test): Likewise.
45485         (do_test): Likewise.
45486
45487         * benchtests/Makefile (string-bench): Add string benchmarks.
45488         * benchtests/bench-bcopy-ifunc.c: New file.
45489         * benchtests/bench-bcopy.c: New file.
45490         * benchtests/bench-bzero-ifunc.c: New file.
45491         * benchtests/bench-bzero.c: New file.
45492         * benchtests/bench-memccpy-ifunc.c: New file.
45493         * benchtests/bench-memccpy.c: New file.
45494         * benchtests/bench-memchr-ifunc.c: New file.
45495         * benchtests/bench-memchr.c: New file.
45496         * benchtests/bench-memcmp-ifunc.c: New file.
45497         * benchtests/bench-memcmp.c: New file.
45498         * benchtests/bench-memmem-ifunc.c: New file.
45499         * benchtests/bench-memmem.c: New file.
45500         * benchtests/bench-memmove-ifunc.c: New file.
45501         * benchtests/bench-memmove.c: New file.
45502         * benchtests/bench-mempcpy-ifunc.c: New file.
45503         * benchtests/bench-mempcpy.c: New file.
45504         * benchtests/bench-memset-ifunc.c: New file.
45505         * benchtests/bench-memset.c: New file.
45506         * benchtests/bench-rawmemchr-ifunc.c: New file.
45507         * benchtests/bench-rawmemchr.c: New file.
45508         * benchtests/bench-stpcpy-ifunc.c: New file.
45509         * benchtests/bench-stpcpy.c: New file.
45510         * benchtests/bench-stpncpy-ifunc.c: New file.
45511         * benchtests/bench-stpncpy.c: New file.
45512         * benchtests/bench-strcasecmp-ifunc.c: New file.
45513         * benchtests/bench-strcasecmp.c: New file.
45514         * benchtests/bench-strcasestr-ifunc.c: New file.
45515         * benchtests/bench-strcasestr.c: New file.
45516         * benchtests/bench-strcat-ifunc.c: New file.
45517         * benchtests/bench-strcat.c: New file.
45518         * benchtests/bench-strchr-ifunc.c: New file.
45519         * benchtests/bench-strchr.c: New file.
45520         * benchtests/bench-strchrnul-ifunc.c: New file.
45521         * benchtests/bench-strchrnul.c: New file.
45522         * benchtests/bench-strcmp-ifunc.c: New file.
45523         * benchtests/bench-strcmp.c: New file.
45524         * benchtests/bench-strcpy-ifunc.c: New file.
45525         * benchtests/bench-strcpy.c: New file.
45526         * benchtests/bench-strcspn-ifunc.c: New file.
45527         * benchtests/bench-strcspn.c: New file.
45528         * benchtests/bench-strlen-ifunc.c: New file.
45529         * benchtests/bench-strlen.c: New file.
45530         * benchtests/bench-strncasecmp-ifunc.c: New file.
45531         * benchtests/bench-strncasecmp.c: New file.
45532         * benchtests/bench-strncat-ifunc.c: New file.
45533         * benchtests/bench-strncat.c: New file.
45534         * benchtests/bench-strncmp-ifunc.c: New file.
45535         * benchtests/bench-strncmp.c: New file.
45536         * benchtests/bench-strncpy-ifunc.c: New file.
45537         * benchtests/bench-strncpy.c: New file.
45538         * benchtests/bench-strnlen-ifunc.c: New file.
45539         * benchtests/bench-strnlen.c: New file.
45540         * benchtests/bench-strpbrk-ifunc.c: New file.
45541         * benchtests/bench-strpbrk.c: New file.
45542         * benchtests/bench-strrchr-ifunc.c: New file.
45543         * benchtests/bench-strrchr.c: New file.
45544         * benchtests/bench-strspn-ifunc.c: New file.
45545         * benchtests/bench-strspn.c: New file.
45546         * benchtests/bench-strstr-ifunc.c: New file.
45547         * benchtests/bench-strstr.c: New file.
45548
45549         * benchtests/Makefile: Disable parallel execution of targets.
45550         (string-bench): Add memcpy.
45551         (benchset): New variable to store a list of benchmark sets.
45552         (bench-func): Renamed from bench.
45553         (bench-set): New target.
45554         (bench): Depend on bench-func and bench-set.
45555         * benchtests/README: Add section on benchmark sets.
45556         * benchtests/bench-memcpy-ifunc.c: New file.
45557         * benchtests/bench-memcpy.c: New file.
45558         * benchtests/bench-string.h: New file.
45559
45560 2013-06-11  Andreas Schwab  <schwab@suse.de>
45561
45562         [BZ #15577]
45563         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
45564         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
45565         values in the triple.
45566         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
45567         terminator in the group key.
45568
45569 2013-06-11  Andreas Jaeger  <aj@suse.de>
45570
45571         * po/zh_TW.po: Update Chinese (traditional) translation from
45572         translation project.
45573
45574 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45575
45576         * include/time.h (__clock_gettime): Add libc_hidden_proto.
45577         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
45578         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
45579         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
45580         (clock_getcpuclockid): Likewise.
45581         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
45582         Add weak_alias and libc_hidden_def.
45583         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
45584         * rt/clock_gettime.c (clock_gettime): Rename to
45585         __clock_gettime.  Add weak_alias and libc_hidden_def.
45586         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
45587         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
45588         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
45589         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
45590         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
45591         Likewise.
45592         * rt/clock_settime.c (clock_settime): Rename to
45593         __clock_settime.  Add weak_alias and libc_hidden_def.
45594         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
45595
45596 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
45597
45598         * mach/err_boot.sub: Remove trailing whitespace.
45599         * mach/err_ipc.sub: Likewise.
45600         * mach/err_mach.sub: Likewise.
45601
45602         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
45603         (ROUNDING_TESTS_double): Likewise.
45604         (ROUNDING_TESTS_long_double): Likewise.
45605         (ROUNDING_TESTS): Likewise.
45606         * math/libm-test.inc: Include <math-tests.h>.
45607         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
45608         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
45609         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
45610         (IF_ROUND_INIT_FE_UPWARD): Likewise.
45611
45612 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
45613
45614         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
45615         of assigning.
45616
45617 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
45618
45619         * sysdeps/gnu/errlist.awk: Do not generate space at end of
45620         otherwise empty TRANS lines.
45621         * sysdeps/gnu/errlist.c: Regenerated.
45622
45623         * catgets/gencat.c (error_print): Use (void) in function
45624         definition.
45625         * crypt/crypt_util.c (__init_des): Likewise.
45626         * crypt/speeds.c (Stop): Likewise.
45627         (main): Likewise.
45628         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
45629         * inet/ruserpass.c (token): Likewise.
45630         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
45631         * intl/localealias.c (extend_alias_table): Likewise.
45632         * intl/plural-exp.c (init_germanic_plural): Likewise.
45633         * libio/fcloseall.c (__fcloseall): Likewise.
45634         * libio/genops.c (_IO_flush_all): Likewise.
45635         (_IO_flush_all_linebuffered): Likewise.
45636         (_IO_cleanup): Likewise.
45637         (_IO_iter_begin): Likewise.
45638         (_IO_iter_end): Likewise.
45639         (_IO_list_lock): Likewise.
45640         (_IO_list_unlock): Likewise.
45641         (_IO_list_resetlock): Likewise.
45642         * libio/getchar.c (getchar): Likewise.
45643         * libio/getchar_u.c (getchar_unlocked): Likewise.
45644         * libio/getwchar.c (getwchar): Likewise.
45645         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
45646         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
45647         * login/getpt.c (__getpt): Likewise.
45648         * login/tst-utmp.c (main): Likewise.
45649         * malloc/hooks.c (__malloc_check_init): Likewise.
45650         * malloc/malloc.c (__malloc_stats): Likewise.
45651         * malloc/mtrace.c (tr_break): Likewise.
45652         (mtrace): Likewise.
45653         (muntrace): Likewise.
45654         * misc/fstab.c (endfsent): Likewise.
45655         * misc/getclktck.c (__getclktck): Likewise.
45656         * misc/getdtsz.c (__getdtablesize): Likewise.
45657         * misc/gethostid.c (gethostid): Likewise.
45658         * misc/getpagesize.c (__getpagesize): Likewise.
45659         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
45660         (__get_nprocs): Likewise.
45661         (__get_phys_pages): Likewise.
45662         (__get_avphys_pages): Likewise.
45663         * misc/getttyent.c (getttyent): Likewise.
45664         (setttyent): Likewise.
45665         (endttyent): Likewise.
45666         * misc/getusershell.c (getusershell): Likewise.
45667         (endusershell): Likewise.
45668         (setusershell): Likewise.
45669         (initshells): Likewise.
45670         * misc/hsearch.c (__hdestroy): Likewise.
45671         * misc/sync.c (sync): Likewise.
45672         * misc/syslog.c (closelog_internal): Likewise.
45673         (closelog): Likewise.
45674         * misc/ttyslot.c (ttyslot): Likewise.
45675         * misc/vhangup.c (vhangup): Likewise.
45676         * posix/fork.c (__fork): Likewise.
45677         * posix/getegid.c (__getegid): Likewise.
45678         * posix/geteuid.c (__geteuid): Likewise.
45679         * posix/getgid.c (__getgid): Likewise.
45680         * posix/getpid.c (__getpid): Likewise.
45681         * posix/getppid.c (__getppid): Likewise.
45682         * posix/getuid.c (__getuid): Likewise.
45683         * posix/pause.c (pause): Likewise.
45684         * posix/setpgrp.c (setpgrp): Likewise.
45685         * posix/setsid.c (__setsid): Likewise.
45686         * posix/test-vfork.c (noop): Likewise.
45687         * resolv/gethnamaddr.c (_endhtent): Likewise.
45688         (_gethtent): Likewise.
45689         (ht_endhostent): Likewise.
45690         (gethostent): Likewise.
45691         (dns_service): Likewise.
45692         * stdlib/drand48.c (drand48): Likewise.
45693         * stdlib/lrand48.c (lrand48): Likewise.
45694         * stdlib/mrand48.c (mrand48): Likewise.
45695         * stdlib/rand.c (rand): Likewise.
45696         * stdlib/random.c (__random): Likewise.
45697         * stdlib/setenv.c (clearenv): Likewise.
45698         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
45699         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
45700         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
45701         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
45702         (__get_nprocs): Likewise.
45703         (__get_phys_pages): Likewise.
45704         (__get_avphys_pages): Likewise.
45705         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
45706         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
45707         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
45708         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
45709         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
45710         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
45711         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
45712         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
45713         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
45714         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
45715         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
45716         * sysdeps/mach/hurd/sync.c (sync): Likewise.
45717         * sysdeps/posix/clock.c (clock): Likewise.
45718         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
45719         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
45720         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
45721         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
45722         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
45723         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
45724         (__get_nprocs_conf): Likewise.
45725         (__get_phys_pages): Likewise.
45726         (__get_avphys_pages): Likewise.
45727         * time/clock.c (clock): Likewise.
45728         * time/tzset.c (__tzname_max): Likewise.
45729
45730 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
45731
45732         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
45733         (__bswap_32): Do not use "register".
45734         * crypt/crypt.c (_ufc_doit_r): Likewise.
45735         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
45736         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
45737         * gmon/gmon.c (__monstartup): Likewise.
45738         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
45739         * hurd/hurdmalloc.c (more_memory): Likewise.
45740         (malloc): Likewise.
45741         (free): Likewise.
45742         (realloc): Likewise.
45743         (malloc_fork_prepare): Likewise.
45744         (malloc_fork_parent): Likewise.
45745         (malloc_fork_child): Likewise.
45746         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
45747         (_svcauth_des): Likewise.
45748         * inet/inet_lnaof.c (inet_lnaof): Likewise.
45749         * inet/inet_net.c (inet_network): Likewise.
45750         * inet/inet_netof.c (inet_netof): Likewise.
45751         * inet/rcmd.c (__validuser2_sa): Likewise.
45752         * io/fts.c (fts_open): Likewise.
45753         (fts_load): Likewise.
45754         (fts_close): Likewise.
45755         (fts_read): Likewise.
45756         (fts_children): Likewise.
45757         (fts_build): Likewise.
45758         (fts_stat): Likewise.
45759         (fts_sort): Likewise.
45760         (fts_alloc): Likewise.
45761         (fts_lfree): Likewise.
45762         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
45763         (_IO_file_xsgetn): Likewise.
45764         (_IO_file_xsgetn_mmap): Likewise.
45765         * libio/iofopncook.c (_IO_cookie_read): Likewise.
45766         (_IO_cookie_write): Likewise.
45767         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
45768         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
45769         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
45770         * malloc/obstack.c (_obstack_begin): Likewise.
45771         (_obstack_begin_1): Likewise.
45772         (_obstack_newchunk): Likewise.
45773         (_obstack_allocated_p): Likewise.
45774         (obstack_free): Likewise.
45775         (_obstack_memory_used): Likewise.
45776         * misc/getttyent.c (getttynam): Likewise.
45777         (getttyent): Likewise.
45778         (skip): Likewise.
45779         (value): Likewise.
45780         * misc/getusershell.c (initshells): Likewise.
45781         * misc/syslog.c (__vsyslog_chk): Likewise.
45782         * misc/ttyslot.c (ttyslot): Likewise.
45783         * nis/nis_hash.c (__nis_hash): Likewise.
45784         * posix/fnmatch_loop.c (FCT): Likewise.
45785         * posix/getconf.c (print_all): Likewise.
45786         (main): Likewise.
45787         * posix/getopt.c (exchange): Likewise.
45788         * posix/glob.c (globfree): Likewise.
45789         (prefix_array): Likewise.
45790         (__glob_pattern_type): Likewise.
45791         * resolv/arpa/nameser.h (NS_GET16): Likewise.
45792         (NS_GET32): Likewise.
45793         (NS_PUT16): Likewise.
45794         (NS_PUT32): Likewise.
45795         * resolv/gethnamaddr.c (getanswer): Likewise.
45796         (gethostbyname2): Likewise.
45797         (gethostbyaddr): Likewise.
45798         (_gethtent): Likewise.
45799         (_gethtbyname2): Likewise.
45800         (_gethtbyaddr): Likewise.
45801         * resolv/ns_print.c (dst_s_get_int16): Likewise.
45802         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
45803         * resolv/res_init.c (__res_vinit): Likewise.
45804         (net_mask): Likewise.
45805         * resolv/res_mkquery.c (outchar): Likewise.
45806         (PRINT): Likewise.
45807         * stdio-common/printf_fp.c (outchar): Likewise.
45808         (PRINT): Likewise.
45809         * stdio-common/printf_fphex.c (outchar): Likewise.
45810         (PRINT): Likewise.
45811         * stdio-common/printf_size.c (outchar): Likewise.
45812         (PRINT): Likewise.
45813         * stdio-common/test_rdwr.c (main): Likewise.
45814         * stdio-common/tfformat.c (matches): Likewise.
45815         * stdio-common/vfprintf.c (outchar): Likewise.
45816         (printf_unknown): Likewise.
45817         (buffered_vfprintf): Likewise.
45818         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
45819         * stdio-common/xbug.c (AppendToBuffer): Likewise.
45820         (ReadFile): Likewise.
45821         * stdlib/qsort.c (SWAP): Likewise.
45822         (_quicksort): Likewise.
45823         * stdlib/setenv.c (__add_to_environ): Likewise.
45824         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
45825         * stdlib/strtol_l.c (__strtol_l): Likewise.
45826         * stdlib/tst-strtod.c (main): Likewise.
45827         * stdlib/tst-strtol.c (main): Likewise.
45828         * stdlib/tst-strtoll.c (main): Likewise.
45829         * string/bits/string2.h (__strcmp_cc): Likewise.
45830         (__strcmp_cg): Likewise.
45831         (__strcspn_c1): Likewise.
45832         (__strcspn_c2): Likewise.
45833         (__strcspn_c3): Likewise.
45834         (__strspn_c1): Likewise.
45835         (__strspn_c2): Likewise.
45836         (__strspn_c3): Likewise.
45837         (__strsep_1c): Likewise.
45838         (__strsep_2c): Likewise.
45839         (__strsep_3c): Likewise.
45840         * string/memccpy.c (__memccpy): Likewise.
45841         * string/stpcpy.c (__stpcpy): Likewise.
45842         * string/strcmp.c (strcmp): Likewise.
45843         * string/strrchr.c (strrchr): Likewise.
45844         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
45845         Likewise.
45846         * sysdeps/mach/hurd/getcwd.c
45847         (_hurd_canonicalize_directory_name_internal): Likewise.
45848         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
45849         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
45850         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
45851         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
45852         Likewise, in both definitions.
45853         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
45854         definitions.
45855         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
45856         64] (__bswap_64): Likewise.
45857         * time/test_time.c (main): Likewise.
45858         * time/tzfile.c (__tzfile_read): Likewise.
45859         (__tzfile_compute): Likewise.
45860         * time/tzset.c (__tzset_parse_tz): Likewise.
45861         (tzset_internal): Likewise.
45862         (compute_change): Likewise.
45863         * wcsmbs/wcscat.c (__wcscat): Likewise.
45864         * wcsmbs/wcschr.c (wcschr): Likewise.
45865         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
45866         * wcsmbs/wcscspn.c (wcscspn): Likewise.
45867         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
45868         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
45869         * wcsmbs/wcsspn.c (wcsspn): Likewise.
45870         * wcsmbs/wcsstr.c (wcsstr): Likewise.
45871         * wcsmbs/wmemchr.c (wmemchr): Likewise.
45872         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
45873         * wcsmbs/wmemset.c (wmemset): Likewise.
45874
45875 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
45876
45877         * scripts/config.guess: Update to version 2013-05-16.
45878         * scripts/config.sub: Update to version 2013-04-24.
45879         * scripts/install-sh: Update to version 2011-11-20.07.
45880         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
45881         * scripts/move-if-change: Update to version 2012-01-06 07:23.
45882
45883 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
45884
45885         * debug/fgetws_u_chk.c: Fix leading whitespaces.
45886         * elf/sln.c: Likewise.
45887         * hurd/hurd/ioctl.h: Likewise.
45888         * hurd/hurdmalloc.c: Likewise.
45889         * hurd/xattr.c: Likewise.
45890         * include/shlib-compat.h: Likewise.
45891         * inet/ruserpass.c: Likewise.
45892         * libio/iofgets_u.c: Likewise.
45893         * libio/iofgetws_u.c: Likewise.
45894         * locale/programs/ld-identification.c: Likewise.
45895         * locale/programs/ld-time.c: Likewise.
45896         * mach/msg-destroy.c: Likewise.
45897         * nss/nss_files/files-netgrp.c: Likewise.
45898         * resolv/res_data.c: Likewise.
45899         * soft-fp/op-1.h: Likewise.
45900         * soft-fp/op-2.h: Likewise.
45901         * soft-fp/op-4.h: Likewise.
45902         * soft-fp/op-common.h: Likewise.
45903         * stdio-common/printf_fphex.c: Likewise.
45904         * stdlib/strtod_l.c: Likewise.
45905         * sunrpc/rpc/clnt.h: Likewise.
45906         * sysdeps/generic/framestate.c: Likewise.
45907         * sysdeps/i386/bsd-_setjmp.S: Likewise.
45908         * sysdeps/i386/bsd-setjmp.S: Likewise.
45909         * sysdeps/i386/__longjmp.S: Likewise.
45910         * sysdeps/i386/setjmp.S: Likewise.
45911         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
45912         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
45913         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
45914         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
45915         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
45916         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
45917         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
45918         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
45919         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
45920         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
45921         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
45922         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
45923         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
45924         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
45925         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
45926         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
45927         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
45928         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
45929         * sysdeps/ieee754/support.c: Likewise.
45930         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
45931         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
45932         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
45933         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
45934         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
45935         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
45936         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
45937         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
45938         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
45939         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
45940         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
45941         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
45942         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
45943         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
45944         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
45945         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
45946         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
45947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
45948
45949 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
45950
45951         * posix/transbug.c: Remove executable mode.
45952
45953 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
45954
45955         * crypt/speeds.c: Remove trailing whitespace.
45956         * dlfcn/default.c: Likewise.
45957         * elf/ifuncdep2.c: Likewise.
45958         * elf/ifuncmain1.c: Likewise.
45959         * elf/ifuncmain1vis.c: Likewise.
45960         * elf/testobj.h: Likewise.
45961         * elf/tst-stackguard1.c: Likewise.
45962         * gmon/sys/gmon.h: Likewise.
45963         * hurd/hurdmsg.c: Likewise.
45964         * hurd/new-fd.c: Likewise.
45965         * hurd/ports-get.c: Likewise.
45966         * iconvdata/ibm1008_420.c: Likewise.
45967         * inet/tst-getni1.c: Likewise.
45968         * inet/tst-getni2.c: Likewise.
45969         * libio/ioungetc.c: Likewise.
45970         * libio/wfiledoalloc.c: Likewise.
45971         * manual/libm-err-tab.pl: Likewise.
45972         * math/w_dremf.c: Likewise.
45973         * misc/ftruncate.c: Likewise.
45974         * posix/bug-glob2.c: Likewise.
45975         * posix/tst-pcre.c: Likewise.
45976         * posix/wait4.c: Likewise.
45977         * resolv/README: Likewise.
45978         * resolv/res_debug.h: Likewise.
45979         * resolv/tst-inet_ntop.c: Likewise.
45980         * setjmp/bug269-setjmp.c: Likewise.
45981         * soft-fp/extended.h: Likewise.
45982         * soft-fp/op-1.h: Likewise.
45983         * soft-fp/op-2.h: Likewise.
45984         * soft-fp/op-4.h: Likewise.
45985         * soft-fp/op-8.h: Likewise.
45986         * soft-fp/testit.c: Likewise.
45987         * stdio-common/bug16.c: Likewise.
45988         * stdlib/random.c: Likewise.
45989         * sunrpc/rpcsvc/rquota.x: Likewise.
45990         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
45991         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
45992         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
45993         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
45994         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
45995         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
45996         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
45997         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
45998         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
45999         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
46000         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
46001         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
46002         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
46003         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
46004         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
46005         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
46006         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
46007         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
46008         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
46009         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
46010         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
46011         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
46012         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
46013         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
46014         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
46015         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
46016         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
46017         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
46018         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
46019         * sysdeps/ieee754/s_lib_version.c: Likewise.
46020         * sysdeps/mach/hurd/check_fds.c: Likewise.
46021         * sysdeps/mach/hurd/getsockname.c: Likewise.
46022         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
46023         * sysdeps/mach/hurd/recvfrom.c: Likewise.
46024         * sysdeps/powerpc/bits/link.h: Likewise.
46025         * sysdeps/powerpc/dl-procinfo.c: Likewise.
46026         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
46027         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
46028         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
46029         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
46030         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
46031         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
46032         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
46033         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
46034         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
46035         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
46036         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
46037         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
46038         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
46039         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
46040         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
46041         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
46042         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
46043         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
46044         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
46045         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
46046         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
46047         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
46048         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
46049         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
46050         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
46051         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
46052         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
46053         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
46054         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
46055         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
46056         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
46057         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
46058         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
46059         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
46060         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
46061         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
46062         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
46063         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
46064         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
46065         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
46066         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
46067         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
46068         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
46069         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
46070         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
46071         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
46072         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
46073         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
46074         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
46075         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
46076         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
46077         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
46078         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
46079         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
46080         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
46081         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
46082         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
46083         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
46084         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
46085         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
46086         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
46087         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
46088         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
46089         * sysdeps/powerpc/sysdep.h: Likewise.
46090         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
46091         * sysdeps/s390/s390-64/sub_n.S: Likewise.
46092         * sysdeps/sh/dl-trampoline.S: Likewise.
46093         * sysdeps/sh/memset.S: Likewise.
46094         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
46095         * sysdeps/sh/strlen.S: Likewise.
46096         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
46097         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
46098         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
46099         * sysdeps/sparc/sparc32/rem.S: Likewise.
46100         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
46101         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
46102         * sysdeps/sparc/sparc32/strchr.S: Likewise.
46103         * sysdeps/sparc/sparc32/udiv.S: Likewise.
46104         * sysdeps/sparc/sparc32/urem.S: Likewise.
46105         * sysdeps/sparc/sparc64/add_n.S: Likewise.
46106         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
46107         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
46108         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
46109         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
46110         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
46111         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
46112         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
46113         * sysdeps/unix/bsd/times.c: Likewise.
46114         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
46115         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
46116         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
46117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
46118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
46119         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
46120         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
46121         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
46122         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
46123         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
46124         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
46125         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
46126         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
46127         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
46128         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
46129         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
46130         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
46131         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
46132         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
46133         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
46134         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
46135         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
46136         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
46137         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
46138         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
46139         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
46140         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
46141         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
46142         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
46143         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
46144         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
46145         * sysdeps/x86_64/strcspn.S: Likewise.
46146
46147 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
46148
46149         * locale/C-translit.h: Revert #include <stdint.h> because this is a
46150         generated file.  Regenerate properly from gen-translit.pl.
46151         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
46152         locale/C-translit.h.
46153
46154 2013-06-05  Andreas Schwab  <schwab@suse.de>
46155
46156         [BZ #15100]
46157         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
46158         week as 6 instead of -1.
46159         * time/tst-strptime.c (day_tests): Add test case.
46160
46161 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
46162
46163         * sysdeps/generic/math_private.h
46164         (libc_feholdexcept_setround_53bit): Replace with
46165         libc_feholdsetround_53bit.
46166         (libc_feupdateenv_53bit): Replace with
46167         libc_feresetround_53bit.
46168         (SET_RESTORE_ROUND_53BIT): Adjust.
46169
46170 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
46171
46172         * string/test-strchrnul.c: Add copyright header.
46173
46174         * posix/tst-getaddrinfo4.c: Increase test timeout.
46175
46176 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
46177
46178         [BZ #15536]
46179         * math/libm-test.inc (MAX_EXP): Remove
46180         (MIN_EXP): Define.
46181         (ulp): Use MIN_EXP - MANT_DIG.
46182         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
46183
46184 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
46185
46186         * po/be.po: Revert last change.
46187         * po/zh_CN.po: Likewise.
46188         * po/header.pot: Likewise.
46189
46190 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
46191
46192         * Makefile ($(common-objpfx)linkobj/libc.so): Define
46193         link-libc-deps to empty as target-specific variable.
46194         * Makerules (link-libc-args): New variable.
46195         (libc-for-link): Likewise.
46196         (link-libc-deps): Likewise.
46197         (lib%.so): Depend on $(link-libc-deps).  Link with
46198         $(link-libc-args).
46199         (build-module): Link with $(link-libc-args).
46200         (build-module-asneeded): Likewise.
46201         (build-module-helper-objlist): Filter out $(link-libc-deps) from
46202         list of objects.
46203         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
46204         target-specific variable.
46205         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
46206         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
46207         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
46208         libc.
46209         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
46210         libc and ld.so.
46211         ($(objpfx)libpcprofile.so): Likewise.
46212         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
46213         libc_nonshared.a.
46214         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
46215         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
46216         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
46217         $(link-libc-deps).
46218         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
46219         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
46220         * login/Makefile ($(objpfx)libutil.so): Likewise.
46221         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
46222         * math/Makefile ($(objpfx)libm.so): Likewise.
46223         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
46224         $(objpfx)libnsl.so): Define libc-for-link as target-specific
46225         variable instead of depending directly on libc.
46226         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
46227         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
46228         $(link-libc-deps).
46229         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
46230         libc.
46231         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
46232         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
46233         ($(objpfx)libanl.so): Likewise.
46234         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
46235         ld.so.
46236         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
46237         $(link-libc-deps).
46238         * sysdeps/i386/fpu/Makefile: Remove file.
46239         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
46240         ($(objpfx)libm.so): Remove dependency on ld.so.
46241
46242 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
46243
46244         [BZ # 15553]
46245         * nis/yp_xdr.c (XDRMAXNAME): Define.
46246         (XDRMAXRECORD): Define.
46247         (xdr_domainname): Use XDRMAXNAME.
46248         (xdr_mapname): Likewise.
46249         (xdr_peername): Likewise.
46250         (xdr_keydat): Use XDRMAXRECORD.
46251         (xdr_valdat): Likewise.
46252
46253 2013-05-30  Jeff Law  <law@redhat.com>
46254
46255         [BZ #14256]
46256         * manual/errno.texi (ESTALE): Update to account for more than
46257         just NFS file systems.
46258         * sysdeps/gnu/errlist.c: Regenerated.
46259
46260 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
46261
46262         [BZ #15465]
46263         * elf/Makefile (tests): Add tst-null-argv.
46264         (modules-names):  Add tst-null-argv-lib.
46265         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
46266         (tst-null-argv-ENV): Set environment for tst-null-argv.
46267         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
46268         (RTLD_PROGNAME): New macro.
46269         * elf/tst-null-argv.c: New test case.
46270         * elf/tst-null-argv-lib.c: Library for test case.
46271         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
46272         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
46273         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
46274         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
46275         * elf/dl-init.c (call_init): Likewise.
46276         (_dl_init): Likewise.
46277         * elf/dl-load.c (print_search_path): Likewise.
46278         (_dl_map_object): Likewise.
46279         * elf/dl-lookup.c (do_lookup_x): Likewise.
46280         (add_dependency): Likewise.
46281         (_dl_lookup_symbol_x): Likewise.
46282         (_dl_debug_bindings): Likewise.
46283         * elf/dl-open.c (_dl_show_scope): Likewise.
46284         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
46285         * elf/dl-version.c (match_symbol): Likewise.
46286         (_dl_check_map_versions): Likewise.
46287         * elf/rtld.c (dl_main): Likewise.
46288         (print_unresolved): Use RTLD_PROGNAME.
46289         (print_missing_version): Likewise.
46290         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
46291         (elf_machine_rela): Likewise.
46292         * sysdeps/powerpc/powerpc32/dl-machine.c
46293         (__process_machine_rela): Likewise.
46294         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46295         Likewise.
46296         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
46297         Likewise.
46298         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
46299         Likewise.
46300         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
46301         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
46302         Likewise.
46303         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
46304         Likewise.
46305         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
46306
46307 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
46308
46309         * po/be.po: Add descriptive title.
46310         * po/zh_CN.po: Likewise.
46311         * po/header.pot: Likewise.
46312
46313 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
46314
46315         * locale/programs/locarchive.c (create_archive): Inlucde fname in
46316         error message.
46317         (enlarge_archive): Likewise.
46318
46319 2013-05-28  Ben North  <ben@redfrontdoor.org>
46320
46321         * manual/arith.texi (frexp): It is the magnitude of the return
46322         value which lies in [0.5, 1), not the return value itself.
46323
46324 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46325
46326         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46327
46328 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
46329
46330         * stdio-common/bug26.c (main): Correct fscanf template.
46331
46332         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
46333         declare _dl_skip_args.
46334
46335         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
46336         Don't declare.
46337
46338         * manual/platform.texi: Add missing @end deftypefun.
46339
46340 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46341
46342         [BZ #15529]
46343         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
46344         bit of mantissa of 2^16382.
46345         * math/libm-test.inc (hypot_test_data): Add more tests.
46346
46347         * math/libm-test.inc: Add drem and pow10 to list of tested
46348         functions.
46349         (pow10_test): New function.
46350         (drem_test): Likewise.
46351         (drem_test_tonearest): Likewise.
46352         (drem_test_towardzero): Likewise.
46353         (drem_test_downward): Likewise.
46354         (drem_test_upward): Likewise.
46355         (main): Call the new functions.
46356
46357         * math/libm-test.inc (finite_test_data): Remove.
46358         (finite_test): Run tests from isfinite_test_data.
46359         (gamma_test_data): Remove.
46360         (gamma_test): Run tests from lgamma_test_data.
46361         * sysdeps/i386/fpu/libm-test-ulps: Update.
46362         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46363
46364 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46365
46366         * manual/platform.texi: Add PowerPC PPR function set documentation.
46367         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
46368         implementation.
46369
46370 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
46371
46372         * math/libm-test.inc (MAX_EXP): Define.
46373         (ULPDIFF): Define.
46374         (ulp): New function.
46375         (check_float_internal): Use ULPDIFF.
46376         (cpow_test): Disable failing test.
46377         (check_ulp): Test ulp() implemetnation.
46378         (main): Call check_ulp before starting tests.
46379
46380 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46381
46382         * math/gen-libm-test.pl (generate_testfile): Do not handle
46383         START_DATA and END_DATA.
46384         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
46385         END_DATA.
46386         (acos_tonearest_test_data): Likewise.
46387         (acos_towardzero_test_data): Likewise.
46388         (acos_downward_test_data): Likewise.
46389         (acos_upward_test_data): Likewise.
46390         (acosh_test_data): Likewise.
46391         (asin_test_data): Likewise.
46392         (asin_tonearest_test_data): Likewise.
46393         (asin_towardzero_test_data): Likewise.
46394         (asin_downward_test_data): Likewise.
46395         (asin_upward_test_data): Likewise.
46396         (asinh_test_data): Likewise.
46397         (atan_test_data): Likewise.
46398         (atanh_test_data): Likewise.
46399         (atan2_test_data): Likewise.
46400         (cabs_test_data): Likewise.
46401         (cacos_test_data): Likewise.
46402         (cacosh_test_data): Likewise.
46403         (carg_test_data): Likewise.
46404         (casin_test_data): Likewise.
46405         (casinh_test_data): Likewise.
46406         (catan_test_data): Likewise.
46407         (catanh_test_data): Likewise.
46408         (cbrt_test_data): Likewise.
46409         (ccos_test_data): Likewise.
46410         (ccosh_test_data): Likewise.
46411         (ceil_test_data): Likewise.
46412         (cexp_test_data): Likewise.
46413         (cimag_test_data): Likewise.
46414         (clog_test_data): Likewise.
46415         (clog10_test_data): Likewise.
46416         (conj_test_data): Likewise.
46417         (copysign_test_data): Likewise.
46418         (cos_test_data): Likewise.
46419         (cos_tonearest_test_data): Likewise.
46420         (cos_towardzero_test_data): Likewise.
46421         (cos_downward_test_data): Likewise.
46422         (cos_upward_test_data): Likewise.
46423         (cosh_test_data): Likewise.
46424         (cosh_tonearest_test_data): Likewise.
46425         (cosh_towardzero_test_data): Likewise.
46426         (cosh_downward_test_data): Likewise.
46427         (cosh_upward_test_data): Likewise.
46428         (cpow_test_data): Likewise.
46429         (cproj_test_data): Likewise.
46430         (creal_test_data): Likewise.
46431         (csin_test_data): Likewise.
46432         (csinh_test_data): Likewise.
46433         (csqrt_test_data): Likewise.
46434         (ctan_test_data): Likewise.
46435         (ctan_tonearest_test_data): Likewise.
46436         (ctan_towardzero_test_data): Likewise.
46437         (ctan_downward_test_data): Likewise.
46438         (ctan_upward_test_data): Likewise.
46439         (ctanh_test_data): Likewise.
46440         (ctanh_tonearest_test_data): Likewise.
46441         (ctanh_towardzero_test_data): Likewise.
46442         (ctanh_downward_test_data): Likewise.
46443         (ctanh_upward_test_data): Likewise.
46444         (erf_test_data): Likewise.
46445         (erfc_test_data): Likewise.
46446         (exp_test_data): Likewise.
46447         (exp_tonearest_test_data): Likewise.
46448         (exp_towardzero_test_data): Likewise.
46449         (exp_downward_test_data): Likewise.
46450         (exp_upward_test_data): Likewise.
46451         (exp10_test_data): Likewise.
46452         (exp2_test_data): Likewise.
46453         (expm1_test_data): Likewise.
46454         (fabs_test_data): Likewise.
46455         (fdim_test_data): Likewise.
46456         (finite_test_data): Likewise.
46457         (floor_test_data): Likewise.
46458         (fma_test_data): Likewise.
46459         (fma_towardzero_test_data): Likewise.
46460         (fma_downward_test_data): Likewise.
46461         (fma_upward_test_data): Likewise.
46462         (fmax_test_data): Likewise.
46463         (fmin_test_data): Likewise.
46464         (fmod_test_data): Likewise.
46465         (fpclassify_test_data): Likewise.
46466         (frexp_test_data): Likewise.
46467         (gamma_test_data): Likewise.
46468         (hypot_test_data): Likewise.
46469         (ilogb_test_data): Likewise.
46470         (isfinite_test_data): Likewise.
46471         (isgreater_test_data): Likewise.
46472         (isgreaterequal_test_data): Likewise.
46473         (isinf_test_data): Likewise.
46474         (isless_test_data): Likewise.
46475         (islessequal_test_data): Likewise.
46476         (islessgreater_test_data): Likewise.
46477         (isnan_test_data): Likewise.
46478         (isnormal_test_data): Likewise.
46479         (issignaling_test_data): Likewise.
46480         (isunordered_test_data): Likewise.
46481         (j0_test_data): Likewise.
46482         (j1_test_data): Likewise.
46483         (jn_test_data): Likewise.
46484         (ldexp_test_data): Likewise.
46485         (lgamma_test_data): Likewise.
46486         (lrint_test_data): Likewise.
46487         (lrint_tonearest_test_data): Likewise.
46488         (lrint_towardzero_test_data): Likewise.
46489         (lrint_downward_test_data): Likewise.
46490         (lrint_upward_test_data): Likewise.
46491         (llrint_test_data): Likewise.
46492         (llrint_tonearest_test_data): Likewise.
46493         (llrint_towardzero_test_data): Likewise.
46494         (llrint_downward_test_data): Likewise.
46495         (llrint_upward_test_data): Likewise.
46496         (log_test_data): Likewise.
46497         (log10_test_data): Likewise.
46498         (log1p_test_data): Likewise.
46499         (log2_test_data): Likewise.
46500         (logb_test_data): Likewise.
46501         (logb_downward_test_data): Likewise.
46502         (lround_test_data): Likewise.
46503         (llround_test_data): Likewise.
46504         (modf_test_data): Likewise.
46505         (nearbyint_test_data): Likewise.
46506         (nextafter_test_data): Likewise.
46507         (nexttoward_test_data): Likewise.
46508         (pow_test_data): Likewise.
46509         (pow_tonearest_test_data): Likewise.
46510         (pow_towardzero_test_data): Likewise.
46511         (pow_downward_test_data): Likewise.
46512         (pow_upward_test_data): Likewise.
46513         (remainder_test_data): Likewise.
46514         (remainder_tonearest_test_data): Likewise.
46515         (remainder_towardzero_test_data): Likewise.
46516         (remainder_downward_test_data): Likewise.
46517         (remainder_upward_test_data): Likewise.
46518         (remquo_test_data): Likewise.
46519         (rint_test_data): Likewise.
46520         (rint_tonearest_test_data): Likewise.
46521         (rint_towardzero_test_data): Likewise.
46522         (rint_downward_test_data): Likewise.
46523         (rint_upward_test_data): Likewise.
46524         (round_test_data): Likewise.
46525         (scalb_test_data): Likewise.
46526         (scalbn_test_data): Likewise.
46527         (scalbln_test_data): Likewise.
46528         (signbit_test_data): Likewise.
46529         (sin_test_data): Likewise.
46530         (sin_tonearest_test_data): Likewise.
46531         (sin_towardzero_test_data): Likewise.
46532         (sin_downward_test_data): Likewise.
46533         (sin_upward_test_data): Likewise.
46534         (sincos_test_data): Likewise.
46535         (sinh_test_data): Likewise.
46536         (sinh_tonearest_test_data): Likewise.
46537         (sinh_towardzero_test_data): Likewise.
46538         (sinh_downward_test_data): Likewise.
46539         (sinh_upward_test_data): Likewise.
46540         (sqrt_test_data): Likewise.
46541         (tan_test_data): Likewise.
46542         (tan_tonearest_test_data): Likewise.
46543         (tan_towardzero_test_data): Likewise.
46544         (tan_downward_test_data): Likewise.
46545         (tan_upward_test_data): Likewise.
46546         (tanh_test_data): Likewise.
46547         (tgamma_test_data): Likewise.
46548         (trunc_test_data): Likewise.
46549         (y0_test_data): Likewise.
46550         (y1_test_data): Likewise.
46551         (yn_test_data): Likewise.
46552         (significand_test_data): Likewise.
46553
46554         * math/gen-libm-test.pl (@functions): Remove variable.
46555         (generate_testfile): Don't handle START and END lines.
46556         * math/libm-test.inc (START): New macro.
46557         (END): Likewise.
46558         (END_COMPLEX): Likewise.
46559         (acos_test): Use END macro without arguments.
46560         (acos_test_tonearest): Likewise.
46561         (acos_test_towardzero): Likewise.
46562         (acos_test_downward): Likewise.
46563         (acos_test_upward): Likewise.
46564         (acosh_test): Likewise.
46565         (asin_test): Likewise.
46566         (asin_test_tonearest): Likewise.
46567         (asin_test_towardzero): Likewise.
46568         (asin_test_downward): Likewise.
46569         (asin_test_upward): Likewise.
46570         (asinh_test): Likewise.
46571         (atan_test): Likewise.
46572         (atanh_test): Likewise.
46573         (atan2_test): Likewise.
46574         (cabs_test): Likewise.
46575         (cacos_test): Use END_COMPLEX macro without arguments.
46576         (cacosh_test): Likewise.
46577         (carg_test): Use END macro without arguments.
46578         (casin_test): Use END_COMPLEX macro without arguments.
46579         (casinh_test): Likewise.
46580         (catan_test): Likewise.
46581         (catanh_test): Likewise.
46582         (cbrt_test): Use END macro without arguments.
46583         (ccos_test): Use END_COMPLEX macro without arguments.
46584         (ccosh_test): Likewise.
46585         (ceil_test): Use END macro without arguments.
46586         (cexp_test): Use END_COMPLEX macro without arguments.
46587         (cimag_test): Use END macro without arguments.
46588         (clog_test): Use END_COMPLEX macro without arguments.
46589         (clog10_test): Likewise.
46590         (conj_test): Likewise.
46591         (copysign_test): Use END macro without arguments.
46592         (cos_test): Likewise.
46593         (cos_test_tonearest): Likewise.
46594         (cos_test_towardzero): Likewise.
46595         (cos_test_downward): Likewise.
46596         (cos_test_upward): Likewise.
46597         (cosh_test): Likewise.
46598         (cosh_test_tonearest): Likewise.
46599         (cosh_test_towardzero): Likewise.
46600         (cosh_test_downward): Likewise.
46601         (cosh_test_upward): Likewise.
46602         (cpow_test): Use END_COMPLEX macro without arguments.
46603         (cproj_test): Likewise.
46604         (creal_test): Use END macro without arguments.
46605         (csin_test): Use END_COMPLEX macro without arguments.
46606         (csinh_test): Likewise.
46607         (csqrt_test): Likewise.
46608         (ctan_test): Likewise.
46609         (ctan_test_tonearest): Likewise.
46610         (ctan_test_towardzero): Likewise.
46611         (ctan_test_downward): Likewise.
46612         (ctan_test_upward): Likewise.
46613         (ctanh_test): Likewise.
46614         (ctanh_test_tonearest): Likewise.
46615         (ctanh_test_towardzero): Likewise.
46616         (ctanh_test_downward): Likewise.
46617         (ctanh_test_upward): Likewise.
46618         (erf_test): Use END macro without arguments.
46619         (erfc_test): Likewise.
46620         (exp_test): Likewise.
46621         (exp_test_tonearest): Likewise.
46622         (exp_test_towardzero): Likewise.
46623         (exp_test_downward): Likewise.
46624         (exp_test_upward): Likewise.
46625         (exp10_test): Likewise.
46626         (exp2_test): Likewise.
46627         (expm1_test): Likewise.
46628         (fabs_test): Likewise.
46629         (fdim_test): Likewise.
46630         (finite_test): Likewise.
46631         (floor_test): Likewise.
46632         (fma_test): Likewise.
46633         (fma_test_towardzero): Likewise.
46634         (fma_test_downward): Likewise.
46635         (fma_test_upward): Likewise.
46636         (fmax_test): Likewise.
46637         (fmin_test): Likewise.
46638         (fmod_test): Likewise.
46639         (fpclassify_test): Likewise.
46640         (frexp_test): Likewise.
46641         (gamma_test): Likewise.
46642         (hypot_test): Likewise.
46643         (ilogb_test): Likewise.
46644         (isfinite_test): Likewise.
46645         (isgreater_test): Likewise.
46646         (isgreaterequal_test): Likewise.
46647         (isinf_test): Likewise.
46648         (isless_test): Likewise.
46649         (islessequal_test): Likewise.
46650         (islessgreater_test): Likewise.
46651         (isnan_test): Likewise.
46652         (isnormal_test): Likewise.
46653         (issignaling_test): Likewise.
46654         (isunordered_test): Likewise.
46655         (j0_test): Likewise.
46656         (j1_test): Likewise.
46657         (jn_test): Likewise.
46658         (ldexp_test): Likewise.
46659         (lgamma_test): Likewise.
46660         (lrint_test): Likewise.
46661         (lrint_test_tonearest): Likewise.
46662         (lrint_test_towardzero): Likewise.
46663         (lrint_test_downward): Likewise.
46664         (lrint_test_upward): Likewise.
46665         (llrint_test): Likewise.
46666         (llrint_test_tonearest): Likewise.
46667         (llrint_test_towardzero): Likewise.
46668         (llrint_test_downward): Likewise.
46669         (llrint_test_upward): Likewise.
46670         (log_test): Likewise.
46671         (log10_test): Likewise.
46672         (log1p_test): Likewise.
46673         (log2_test): Likewise.
46674         (logb_test): Likewise.
46675         (logb_test_downward): Likewise.
46676         (lround_test): Likewise.
46677         (llround_test): Likewise.
46678         (modf_test): Likewise.
46679         (nearbyint_test): Likewise.
46680         (nextafter_test): Likewise.
46681         (nexttoward_test): Likewise.
46682         (pow_test): Likewise.
46683         (pow_test_tonearest): Likewise.
46684         (pow_test_towardzero): Likewise.
46685         (pow_test_downward): Likewise.
46686         (pow_test_upward): Likewise.
46687         (remainder_test): Likewise.
46688         (remainder_test_tonearest): Likewise.
46689         (remainder_test_towardzero): Likewise.
46690         (remainder_test_downward): Likewise.
46691         (remainder_test_upward): Likewise.
46692         (remquo_test): Likewise.
46693         (rint_test): Likewise.
46694         (rint_test_tonearest): Likewise.
46695         (rint_test_towardzero): Likewise.
46696         (rint_test_downward): Likewise.
46697         (rint_test_upward): Likewise.
46698         (round_test): Likewise.
46699         (scalb_test): Likewise.
46700         (scalbn_test): Likewise.
46701         (scalbln_test): Likewise.
46702         (signbit_test): Likewise.
46703         (sin_test): Likewise.
46704         (sin_test_tonearest): Likewise.
46705         (sin_test_towardzero): Likewise.
46706         (sin_test_downward): Likewise.
46707         (sin_test_upward): Likewise.
46708         (sincos_test): Likewise.
46709         (sinh_test): Likewise.
46710         (sinh_test_tonearest): Likewise.
46711         (sinh_test_towardzero): Likewise.
46712         (sinh_test_downward): Likewise.
46713         (sinh_test_upward): Likewise.
46714         (sqrt_test): Likewise.
46715         (tan_test): Likewise.
46716         (tan_test_tonearest): Likewise.
46717         (tan_test_towardzero): Likewise.
46718         (tan_test_downward): Likewise.
46719         (tan_test_upward): Likewise.
46720         (tanh_test): Likewise.
46721         (tgamma_test): Likewise.
46722         (trunc_test): Likewise.
46723         (y0_test): Likewise.
46724         (y1_test): Likewise.
46725         (yn_test): Likewise.
46726         (significand_test): Likewise.
46727
46728 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
46729
46730         [BZ #15381]
46731         * libio/genops.c (_IO_no_init): Initialize wide struct info.
46732
46733 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
46734
46735         [BZ #14894]
46736         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
46737         __ppc_mdoio and __ppc_mdoom.
46738         * manual/platform.texi: Document new functions __ppc_yield,
46739         __ppc_mdoio and __ppc_mdoom.
46740
46741 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
46742
46743         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
46744         (main): Mention "tls" pseudo-hwcap is legacy.
46745         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
46746
46747 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
46748
46749         * math/gen-libm-test.pl (parse_args): Output only string of
46750         arguments as text for test name, not full call or descriptions of
46751         tests for extra outputs.
46752         (generate_testfile): Do not pass function name to parse_args.
46753         Generate this_func variable from START.
46754         * math/libm-test.inc (struct test_f_f_data): Rename test_name
46755         field to arg_str.
46756         (struct test_ff_f_data): Likewise.
46757         (test_ff_f_data_nexttoward): Likewise.
46758         (struct test_fi_f_data): Likewise.
46759         (struct test_fl_f_data): Likewise.
46760         (struct test_if_f_data): Likewise.
46761         (struct test_fff_f_data): Likewise.
46762         (struct test_c_f_data): Likewise.
46763         (struct test_f_f1_data): Likewise.  Remove field extra_name.
46764         (struct test_fF_f1_data): Likewise.
46765         (struct test_ffI_f1_data): Likewise.
46766         (struct test_c_c_data): Rename test_name field to arg_str.
46767         (struct test_cc_c_data): Likewise.
46768         (struct test_f_i_data): Likewise.
46769         (struct test_ff_i_data): Likewise.
46770         (struct test_f_l_data): Likewise.
46771         (struct test_f_L_data): Likewise.
46772         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
46773         and extra2_name.
46774         (COMMON_TEST_SETUP): New macro.
46775         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
46776         (COMMON_TEST_CLEANUP): Likewise.
46777         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
46778         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
46779         macros.
46780         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
46781         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
46782         macros.
46783         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
46784         (RUN_TEST_fff_f): Take argument string.  Call new setup and
46785         cleanup macros.
46786         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
46787         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
46788         macros.
46789         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
46790         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
46791         macros.
46792         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
46793         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
46794         cleanup macros.
46795         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
46796         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
46797         cleanup macros.
46798         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
46799         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
46800         cleanup macros.
46801         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
46802         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
46803         macros.
46804         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
46805         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
46806         macros.
46807         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
46808         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
46809         macros.
46810         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
46811         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
46812         cleanup macros.
46813         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
46814         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
46815         cleanup macros.
46816         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
46817         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
46818         macros.
46819         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
46820         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
46821         cleanup macros.
46822         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
46823         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
46824         macros.
46825         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
46826         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
46827         macros.
46828         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
46829         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
46830         cleanup macros.
46831         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
46832
46833 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
46834
46835         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
46836         to _sifields.sigfault.
46837         (si_addr_lsb): Define new macro.
46838         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
46839         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
46840         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
46841
46842 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
46843
46844         [BZ #15441]
46845         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
46846         returns -1.
46847         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
46848         null return -1.
46849         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
46850         loading the domain.
46851
46852 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
46853
46854         * math/gen-libm-test.pl (parse_args): Do not include expected
46855         result in test name.
46856         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
46857         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
46858         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
46859         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
46860         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
46861         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46862
46863 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
46864
46865         * benchtests/Makefile: Sort function entries.
46866
46867         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
46868         tanh, asinh, acosh, atanh.
46869         * benchtests/acos-inputs: New file.
46870         * benchtests/acosh-inputs: New file.
46871         * benchtests/asin-inputs: New file.
46872         * benchtests/asinh-inputs: New file.
46873         * benchtests/atanh-inputs: New file.
46874         * benchtests/cosh-inputs: New file.
46875         * benchtests/log-inputs: New file.
46876         * benchtests/sinh-inputs: New file.
46877         * benchtests/tanh-inputs: New file.
46878
46879 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
46880
46881         [BZ #15339]
46882         * posix/tst-getaddrinfo4.c: New test.
46883         * posix/Makefile (tests): Add it.
46884
46885 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
46886
46887         [BZ #15339]
46888         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
46889         when no services were used.
46890         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
46891         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
46892
46893 2013-05-21  Andreas Schwab  <schwab@suse.de>
46894
46895         [BZ #15014]
46896         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
46897         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
46898         successful.
46899         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
46900         redundant variable declarations and reallocation of buffer when
46901         parsing as IPv6 address.  Always set NSS status when called from
46902         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
46903         buffer too small.  Correct computation of needed size.
46904         * nss/Makefile (tests): Add test-digits-dots.
46905         * nss/test-digits-dots.c: New test.
46906
46907 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
46908
46909         * benchtests/Makefile: Remove instructions for adding
46910         benchmark tests.
46911         * benchtests/README: New file to explain how to execute and
46912         enhance the benchmark tests.
46913
46914 2013-05-21  Andreas Schwab  <schwab@suse.de>
46915
46916         [BZ #15493]
46917         * setjmp/Makefile (tests): Add tst-sigsetjmp.
46918         * setjmp/tst-sigsetjmp.c: New test.
46919
46920 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
46921
46922         * sysdeps/x86_64/memset.S (memset): New implementation.
46923         (__bzero): Likewise.
46924         (__memset_tail): New function.
46925
46926 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
46927
46928         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
46929         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
46930         __memcpy_sse2_unaligned ifunc selection.
46931         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
46932         Add memcpy-sse2-unaligned.S.
46933         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
46934         Add: __memcpy_sse2_unaligned.
46935
46936 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
46937
46938         [BZ #15490]
46939         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
46940         math_force_eval before restoring floating-point envrionment.
46941         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
46942         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
46943         Likewise.
46944         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
46945         <math_private.h>.
46946         (__nearbyintl): Use math_force_eval before restoring
46947         floating-point environment.
46948         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
46949
46950         * math/gen-libm-test.pl (special_functions): Remove.
46951         (parse_args): Don't handle TEST_extra.  Handle functions with no
46952         return value.
46953         * math/libm-test.inc (struct test_sincos_data): Replace with
46954         struct test_fFF_11_data.
46955         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
46956         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
46957         (sincos_test_data): Change element type to struct
46958         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
46959         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
46960         RUN_TEST_LOOP_sincos.
46961         * math/README.libm-test: Don't mention special handling of
46962         individual functions.
46963         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
46964         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
46965         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
46966         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
46967         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
46968         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46969
46970         * math/gen-libm-test.pl (get_variable): Remove function.
46971         (parse_args): Don't show pointer parameters to call in test
46972         names.  Use "extra output N" in test names for extra outputs
46973         rather than naming variables.
46974
46975 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
46976
46977         [BZ #15488]
46978         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
46979         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
46980         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
46981         double tests.
46982         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
46983         disable.
46984         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
46985         check_long_double.
46986
46987         * math/gen-libm-test.pl (@tests): Remove variable.
46988         ($count): Likewise.
46989         (new_test): Remove function.
46990         (show_exceptions): New function.
46991         (special_functions): Use show_exceptions instead of new_test.
46992         (parse_args): Likewise.
46993         (generate_testfile): Pass only function name in generated call to
46994         print_max_error or print_complex_max_error.
46995         (get_ulps): Do not handle complex tests specially.
46996         (output_test): Rename to ...
46997         (get_all_ulps_for_test): ... this.  Return a string rather than
46998         printing to a file.  Require ulps to be present.
46999         (output_ulps): Generate arrays rather than #defines.
47000         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
47001         (struct ulp_data): New type.
47002         (BUILD_COMPLEX_ULP): Remove macro.
47003         (compare_ulp_data): New function.
47004         (find_ulps): Likewise.
47005         (find_test_ulps): Likewise.
47006         (find_function_ulps): Likewise.
47007         (find_complex_function_ulps): Likewise.
47008         (print_max_error): Determine allowed ulps using
47009         find_function_ulps.
47010         (print_complex_max_error): Determine allowed ulps using
47011         find_complex_function_ulps.
47012         (check_float_internal): Determine max ulps using find_test_ulps.
47013         (check_float): Do not take max_ulp parameter.  Update call to
47014         check_float_internal.
47015         (check_complex): Likewise.
47016         (check_int): Do not take max_ulp parameter.
47017         (check_long): Likewise.
47018         (check_bool): Likewise.
47019         (check_longlong): Likewise.
47020         (struct test_f_f_data): Remove max_ulp field.
47021         (struct test_ff_f_data): Likewise.
47022         (struct test_ff_f_data_nexttoward): Likewise.
47023         (struct test_fi_f_data): Likewise.
47024         (struct test_fl_f_data): Likewise.
47025         (struct test_if_f_data): Likewise.
47026         (struct test_fff_f_data): Likewise.
47027         (struct test_c_f_data): Likewise.
47028         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
47029         (struct test_fF_f1_data): Likewise.
47030         (struct test_ffI_f1_data): Likewise.
47031         (struct test_c_c_data): Remove max_ulp field.
47032         (struct test_cc_c_data): Likewise.
47033         (struct test_f_i_data): Likewise.
47034         (struct test_ff_i_data): Likewise.
47035         (struct test_f_l_data): Likewise.
47036         (struct test_f_L_data): Likewise.
47037         (struct test_sincos_data): Likewise.
47038         (RUN_TEST_f_f): Do not handle ulps.
47039         (RUN_TEST_LOOP_f_f): Likewise.
47040         (RUN_TEST_2_f): Likewise.
47041         (RUN_TEST_LOOP_2_f): Likewise.
47042         (RUN_TEST_fff_f): Likewise.
47043         (RUN_TEST_LOOP_fff_f): Likewise.
47044         (RUN_TEST_c_f): Likewise.
47045         (RUN_TEST_LOOP_c_f): Likewise.
47046         (RUN_TEST_f_f1): Likewise.
47047         (RUN_TEST_LOOP_f_f1): Likewise.
47048         (RUN_TEST_fF_f1): Likewise.
47049         (RUN_TEST_LOOP_fF_f1): Likewise.
47050         (RUN_TEST_fI_f1): Likewise.
47051         (RUN_TEST_LOOP_fI_f1): Likewise.
47052         (RUN_TEST_ffI_f1): Likewise.
47053         (RUN_TEST_LOOP_ffI_f1): Likewise.
47054         (RUN_TEST_c_c): Likewise.
47055         (RUN_TEST_LOOP_c_c): Likewise.
47056         (RUN_TEST_cc_c): Likewise.
47057         (RUN_TEST_LOOP_cc_c): Likewise.
47058         (RUN_TEST_f_i): Likewise.
47059         (RUN_TEST_LOOP_f_i): Likewise.
47060         (RUN_TEST_f_i_tg): Likewise.
47061         (RUN_TEST_LOOP_f_i_tg): Likewise.
47062         (RUN_TEST_ff_i_tg): Likewise.
47063         (RUN_TEST_LOOP_ff_i_tg): Likewise.
47064         (RUN_TEST_f_b): Likewise.
47065         (RUN_TEST_LOOP_f_b): Likewise.
47066         (RUN_TEST_f_b_tg): Likewise.
47067         (RUN_TEST_LOOP_f_b_tg): Likewise.
47068         (RUN_TEST_f_l): Likewise.
47069         (RUN_TEST_LOOP_f_l): Likewise.
47070         (RUN_TEST_f_L): Likewise.
47071         (RUN_TEST_LOOP_f_L): Likewise.
47072         (RUN_TEST_sincos): Likewise.
47073         (RUN_TEST_LOOP_sincos): Likewise.
47074
47075 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
47076
47077         [BZ #15480]
47078         [BZ #15485]
47079         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
47080         main case of finite arguments, set rounding mode to FE_TONEAREST
47081         and discard exceptions.
47082         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
47083         exceptions.
47084         (remainder_tonearest_test_data): New variable.
47085         (remainder_test_tonearest): New function.
47086         (remainder_towardzero_test_data): New variable.
47087         (remainder_test_towardzero): New function.
47088         (remainder_downward_test_data): New variable.
47089         (remainder_test_downward): New function.
47090         (remainder_upward_test_data): New variable.
47091         (remainder_test_upward): New function.
47092         (main): Call the new test functions.
47093
47094         * math/libm-test.inc (struct test_f_f1_data): Remove field
47095         extra_init.
47096         (struct test_fF_f1_data): Likewise.
47097         (struct test_ffI_f1_data): Likewise.
47098         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
47099         based on value of EXTRA_EXPECTED.
47100         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47101         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
47102         EXTRA_VAR based on value of EXTRA_EXPECTED.
47103         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47104         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
47105         EXTRA_VAR based on value of EXTRA_EXPECTED.
47106         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47107         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
47108         EXTRA_VAR based on value of EXTRA_EXPECTED.
47109         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47110         * math/gen-libm-test.pl (parse_args): Don't output initializers
47111         for extra output values.
47112
47113         * math/libm-test.inc (check_int): Expect result to be exactly
47114         equal to expected value and do not handle ulps.
47115         (check_long): Likewise.
47116         (check_longlong): Likewise.
47117
47118         * math/libm-test.inc (ceil_test_data): Test for "inexact"
47119         exceptions.
47120         (cimag_test_data): Likewise.
47121         (conj_test_data): Likewise.
47122         (copysign_test_data): Likewise.
47123         (cproj_test_data): Likewise.
47124         (creal_test_data): Likewise.
47125         (fabs_test_data): Likewise.
47126         (fdim_test_data): Likewise.
47127         (finite_test_data): Likewise.
47128         (floor_test_data): Likewise.
47129         (fmax_test_data): Likewise.
47130         (fmin_test_data): Likewise.
47131         (fmod_test_data): Likewise.
47132         (fpclassify_test_data): Likewise.
47133         (frexp_test_data): Likewise.
47134         (ilogb_test_data): Likewise.
47135         (isfinite_test_data): Likewise.
47136         (isgreater_test_data): Likewise.
47137         (isgreaterequal_test_data): Likewise.
47138         (isinf_test_data): Likewise.
47139         (isless_test_data): Likewise.
47140         (islessequal_test_data): Likewise.
47141         (islessgreater_test_data): Likewise.
47142         (isnan_test_data): Likewise.
47143         (isnormal_test_data): Likewise.
47144         (issignaling_test_data): Likewise.
47145         (isunordered_test_data): Likewise.
47146         (ldexp_test_data): Likewise.
47147         (lrint_test_data): Likewise.
47148         (lrint_test_data) [TEST_FLOAT]: Disable one test.
47149         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
47150         (lrint_tonearest_test_data): Test for "inexact" exceptions.
47151         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47152         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
47153         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47154         test input.
47155         (lrint_towardzero_test_data): Test for "inexact" exceptions.
47156         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47157         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
47158         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
47159         that test input.
47160         (lrint_downward_test_data): Test for "inexact" exceptions.
47161         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47162         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
47163         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47164         test input.
47165         (lrint_upward_test_data): Test for "inexact" exceptions.
47166         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
47167         test input.
47168         (llrint_test_data): Test for "inexact" exceptions.
47169         (llrint_test_data) [TEST_FLOAT]: Disable one test.
47170         (llrint_tonearest_test_data): Test for "inexact" exceptions.
47171         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47172         (llrint_towardzero_test_data): Test for "inexact" exceptions.
47173         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47174         (llrint_downward_test_data): Test for "inexact" exceptions.
47175         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47176         (llrint_upward_test_data): Test for "inexact" exceptions.
47177         (logb_test_data): Likewise.
47178         (logb_downward_test_data): Likewise.
47179         (nextafter_test_data): Likewise.
47180         (nexttoward_test_data): Likewise.
47181         (remainder_test_data): Likewise.
47182         (remquo_test_data): Likewise.
47183         (scalbn_test_data): Likewise.
47184         (scalbln_test_data): Likewise.
47185         (signbit_test_data): Likewise.
47186         (sqrt_test_data): Likewise.
47187         (significand_test_data): Likewise.
47188
47189 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
47190
47191         [BZ #15424]
47192         * benchtests/bench-modf.c (struct args): Mark arg0 as
47193         volatile.
47194         * scripts/bench.pl: Mark members of struct args as volatile.
47195
47196 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47197
47198         [BZ # 15497]
47199         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
47200         negative infinity on POWER6 or lower.
47201         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
47202
47203 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
47204
47205         [BZ #15442]
47206         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
47207         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
47208         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
47209         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
47210         (_FP_SETQNAN): New macro.
47211         (_FP_SETQNAN_SEMIRAW): Likewise.
47212         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
47213         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
47214         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
47215         (FP_EXTEND): Use _FP_FRAC_SNANP.
47216         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
47217         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
47218         into account.
47219         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47220         New macro.
47221         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47222         Likewise.
47223
47224 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47225
47226         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
47227         with DIVIDE_BY_ZERO_EXCEPTION.
47228         (gamma_test_data): Likewise.
47229         (lgamma_test_data): Likewise.
47230         (log_test_data): Likewise.
47231         (log10_test_data): Likewise.
47232         (log2_test_data): Likewise.
47233         (tgamma_test_data): Likewise.
47234
47235         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
47236         (acos_test_tonearest): Likewise.
47237         (acos_test_towardzero): Likewise.
47238         (acos_test_downward): Likewise.
47239         (acos_test_upward): Likewise.
47240         (acosh_test): Likewise.
47241         (asin_test): Likewise.
47242         (asin_test_tonearest): Likewise.
47243         (asin_test_towardzero): Likewise.
47244         (asin_test_downward): Likewise.
47245         (asin_test_upward): Likewise.
47246         (asinh_test): Likewise.
47247         (atan_test): Likewise.
47248         (atanh_test): Likewise.
47249         (atan2_test): Likewise.
47250         (cabs_test): Likewise.
47251         (cacos_test): Likewise.
47252         (cacosh_test): Likewise.
47253         (casin_test): Likewise.
47254         (casinh_test): Likewise.
47255         (catan_test): Likewise.
47256         (catanh_test): Likewise.
47257         (cbrt_test): Likewise.
47258         (ccos_test): Likewise.
47259         (ccosh_test): Likewise.
47260         (cexp_test): Likewise.
47261         (clog_test): Likewise.
47262         (clog10_test): Likewise.
47263         (cos_test): Likewise.
47264         (cos_test_tonearest): Likewise.
47265         (cos_test_towardzero): Likewise.
47266         (cos_test_downward): Likewise.
47267         (cos_test_upward): Likewise.
47268         (cosh_test): Likewise.
47269         (cosh_test_tonearest): Likewise.
47270         (cosh_test_towardzero): Likewise.
47271         (cosh_test_downward): Likewise.
47272         (cosh_test_upward): Likewise.
47273         (cpow_test): Likewise.
47274         (csin_test): Likewise.
47275         (csinh_test): Likewise.
47276         (csqrt_test): Likewise.
47277         (ctan_test): Likewise.
47278         (ctan_test_tonearest): Likewise.
47279         (ctan_test_towardzero): Likewise.
47280         (ctan_test_downward): Likewise.
47281         (ctan_test_upward): Likewise.
47282         (ctanh_test): Likewise.
47283         (ctanh_test_tonearest): Likewise.
47284         (ctanh_test_towardzero): Likewise.
47285         (ctanh_test_downward): Likewise.
47286         (ctanh_test_upward): Likewise.
47287         (erf_test): Likewise.
47288         (erfc_test): Likewise.
47289         (exp_test): Likewise.
47290         (exp_test_tonearest): Likewise.
47291         (exp_test_towardzero): Likewise.
47292         (exp_test_downward): Likewise.
47293         (exp_test_upward): Likewise.
47294         (exp10_test): Likewise.
47295         (exp2_test): Likewise.
47296         (expm1_test): Likewise.
47297         (fmod_test): Likewise.
47298         (gamma_test): Likewise.
47299         (hypot_test): Likewise.
47300         (j0_test): Likewise.
47301         (j1_test): Likewise.
47302         (jn_test): Likewise.
47303         (lgamma_test): Likewise.
47304         (log_test): Likewise.
47305         (log10_test): Likewise.
47306         (log1p_test): Likewise.
47307         (log2_test): Likewise.
47308         (logb_test_downward): Likewise.
47309         (pow_test): Likewise.
47310         (pow_test_tonearest): Likewise.
47311         (pow_test_towardzero): Likewise.
47312         (pow_test_downward): Likewise.
47313         (pow_test_upward): Likewise.
47314         (remainder_test): Likewise.
47315         (remquo_test): Likewise.
47316         (sin_test): Likewise.
47317         (sin_test_tonearest): Likewise.
47318         (sin_test_towardzero): Likewise.
47319         (sin_test_downward): Likewise.
47320         (sin_test_upward): Likewise.
47321         (sincos_test): Likewise.
47322         (sinh_test): Likewise.
47323         (sinh_test_tonearest): Likewise.
47324         (sinh_test_towardzero): Likewise.
47325         (sinh_test_downward): Likewise.
47326         (sinh_test_upward): Likewise.
47327         (sqrt_test): Likewise.
47328         (tan_test): Likewise.
47329         (tan_test_tonearest): Likewise.
47330         (tan_test_towardzero): Likewise.
47331         (tan_test_downward): Likewise.
47332         (tan_test_upward): Likewise.
47333         (tanh_test): Likewise.
47334         (tgamma_test): Likewise.
47335         (y0_test): Likewise.
47336         (y1_test): Likewise.
47337         (yn_test): Likewise.
47338
47339         * math/gen-libm-test.pl (adjust_arg): Remove function.
47340         (special_function): Remove argument $in_func.  Only handle
47341         generating output for tables of tests, not inside functions.
47342         (parse_args): Likewise.
47343         (generate_testfile): Remove variable $in_func.  Update call to
47344         parse_args.
47345         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
47346         (MINUS_ZERO_INIT): Rename macro to minus_zero.
47347         (PLUS_INFTY_INIT): Rename macro to plus_infty.
47348         (MINUS_INFTY_INIT): Rename macro to minus_infty.
47349         (QNAN_VALUE_INIT): Rename macro to qnan_value.
47350         (MAX_VALUE_INIT): Rename macro to max_value.
47351         (MIN_VALUE_INIT): Rename macro to min_value.
47352         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
47353         (plus_zero): Remove variable.
47354         (minus_zero): Likewise.
47355         (plus_infty): Likewise.
47356         (minus_infty): Likewise.
47357         (qnan_value): Likewise.
47358         (max_value): Likewise.
47359         (min_value): Likewise.
47360         (min_subnorm_value): Likewise.
47361
47362 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
47363
47364         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
47365         uint64_t or uint32_t usage.
47366         * crypt/sha256-block.c: Likewise.
47367         * crypt/sha256-crypt.c: Likewise.
47368         * crypt/sha256.c: Likewise.
47369         * crypt/sha512-block.c: Likewise.
47370         * crypt/sha512-crypt.c: Likewise.
47371         * crypt/sha512.c: Likewise.
47372         * debug/backtrace-tst.c: Likewise.
47373         * debug/pcprofiledump.c: Likewise.
47374         * elf/cache.c: Likewise.
47375         * elf/dl-cache.c: Likewise.
47376         * elf/dl-misc.c: Likewise.
47377         * elf/dl-profile.c: Likewise.
47378         * elf/dl-support.c: Likewise.
47379         * elf/ldconfig.c: Likewise.
47380         * elf/sprof.c: Likewise.
47381         * iconv/dummy-repertoire.c: Likewise.
47382         * iconv/iconv_charmap.c: Likewise.
47383         * iconv/skeleton.c: Likewise.
47384         * iconvdata/8bit-generic.c: Likewise.
47385         * iconvdata/cp737.h: Likewise.
47386         * iconvdata/cp775.h: Likewise.
47387         * iconvdata/ibm1008.h: Likewise.
47388         * iconvdata/ibm1025.h: Likewise.
47389         * iconvdata/ibm1046.h: Likewise.
47390         * iconvdata/ibm1097.h: Likewise.
47391         * iconvdata/ibm1112.h: Likewise.
47392         * iconvdata/ibm1122.h: Likewise.
47393         * iconvdata/ibm1123.h: Likewise.
47394         * iconvdata/ibm1124.h: Likewise.
47395         * iconvdata/ibm1129.h: Likewise.
47396         * iconvdata/ibm1130.h: Likewise.
47397         * iconvdata/ibm1132.h: Likewise.
47398         * iconvdata/ibm1133.h: Likewise.
47399         * iconvdata/ibm1137.h: Likewise.
47400         * iconvdata/ibm1140.h: Likewise.
47401         * iconvdata/ibm1141.h: Likewise.
47402         * iconvdata/ibm1142.h: Likewise.
47403         * iconvdata/ibm1143.h: Likewise.
47404         * iconvdata/ibm1144.h: Likewise.
47405         * iconvdata/ibm1145.h: Likewise.
47406         * iconvdata/ibm1146.h: Likewise.
47407         * iconvdata/ibm1147.h: Likewise.
47408         * iconvdata/ibm1148.h: Likewise.
47409         * iconvdata/ibm1149.h: Likewise.
47410         * iconvdata/ibm1153.h: Likewise.
47411         * iconvdata/ibm1154.h: Likewise.
47412         * iconvdata/ibm1155.h: Likewise.
47413         * iconvdata/ibm1156.h: Likewise.
47414         * iconvdata/ibm1157.h: Likewise.
47415         * iconvdata/ibm1158.h: Likewise.
47416         * iconvdata/ibm1160.h: Likewise.
47417         * iconvdata/ibm1161.h: Likewise.
47418         * iconvdata/ibm1162.h: Likewise.
47419         * iconvdata/ibm1163.h: Likewise.
47420         * iconvdata/ibm1164.h: Likewise.
47421         * iconvdata/ibm1166.h: Likewise.
47422         * iconvdata/ibm1167.h: Likewise.
47423         * iconvdata/ibm12712.h: Likewise.
47424         * iconvdata/ibm1390.h: Likewise.
47425         * iconvdata/ibm1399.h: Likewise.
47426         * iconvdata/ibm16804.h: Likewise.
47427         * iconvdata/ibm4517.h: Likewise.
47428         * iconvdata/ibm4899.h: Likewise.
47429         * iconvdata/ibm4909.h: Likewise.
47430         * iconvdata/ibm4971.h: Likewise.
47431         * iconvdata/ibm5347.h: Likewise.
47432         * iconvdata/ibm803.h: Likewise.
47433         * iconvdata/ibm856.h: Likewise.
47434         * iconvdata/ibm901.h: Likewise.
47435         * iconvdata/ibm902.h: Likewise.
47436         * iconvdata/ibm9030.h: Likewise.
47437         * iconvdata/ibm9066.h: Likewise.
47438         * iconvdata/ibm921.h: Likewise.
47439         * iconvdata/ibm922.h: Likewise.
47440         * iconvdata/ibm9448.h: Likewise.
47441         * iconvdata/isiri-3342.h: Likewise.
47442         * iconvdata/jis0201.h: Likewise.
47443         * include/link.h: Likewise.
47444         * include/netdb.h: Likewise.
47445         * inet/check_native.c: Likewise.
47446         * inet/check_pf.c: Likewise.
47447         * inet/getipv4sourcefilter.c: Likewise.
47448         * inet/getnameinfo.c: Likewise.
47449         * inet/getsourcefilter.c: Likewise.
47450         * inet/htonl.c: Likewise.
47451         * inet/setipv4sourcefilter.c: Likewise.
47452         * inet/setsourcefilter.c: Likewise.
47453         * inet/test-inet6_opt.c: Likewise.
47454         * inet/tst-network.c: Likewise.
47455         * locale/C-collate.c: Likewise.
47456         * locale/C-ctype.c: Likewise.
47457         * locale/C-time.c: Likewise.
47458         * locale/C-translit.h: Likewise.
47459         * locale/loadarchive.c: Likewise.
47460         * locale/programs/3level.h: Likewise.
47461         * locale/programs/charmap.c: Likewise.
47462         * locale/programs/charmap.h: Likewise.
47463         * locale/programs/ld-address.c: Likewise.
47464         * locale/programs/ld-collate.c: Likewise.
47465         * locale/programs/ld-ctype.c: Likewise.
47466         * locale/programs/ld-identification.c: Likewise.
47467         * locale/programs/ld-measurement.c: Likewise.
47468         * locale/programs/ld-messages.c: Likewise.
47469         * locale/programs/ld-monetary.c: Likewise.
47470         * locale/programs/ld-name.c: Likewise.
47471         * locale/programs/ld-numeric.c: Likewise.
47472         * locale/programs/ld-paper.c: Likewise.
47473         * locale/programs/ld-telephone.c: Likewise.
47474         * locale/programs/ld-time.c: Likewise.
47475         * locale/programs/linereader.c: Likewise.
47476         * locale/programs/locale.c: Likewise.
47477         * locale/programs/locarchive.c: Likewise.
47478         * locale/programs/locfile.h: Likewise.
47479         * locale/programs/repertoire.c: Likewise.
47480         * locale/programs/simple-hash.c: Likewise.
47481         * locale/programs/simple-hash.h: Likewise.
47482         * malloc/memusage.c: Likewise.
47483         * malloc/memusagestat.c: Likewise.
47484         * nis/nis_defaults.c: Likewise.
47485         * nis/nis_hash.c: Likewise.
47486         * nis/nis_print.c: Likewise.
47487         * nis/nis_xdr.c: Likewise.
47488         * nscd/connections.c: Likewise.
47489         * nscd/hstcache.c: Likewise.
47490         * nscd/nscd_gethst_r.c: Likewise.
47491         * nscd/nscd_getserv_r.c: Likewise.
47492         * nscd/nscd_helper.c: Likewise.
47493         * nscd/servicescache.c: Likewise.
47494         * nss/makedb.c: Likewise.
47495         * nss/nss_db/db-XXX.c: Likewise.
47496         * nss/nss_db/db-initgroups.c: Likewise.
47497         * nss/nss_db/db-netgrp.c: Likewise.
47498         * nss/nss_files/files-network.c: Likewise.
47499         * nss/nss_files/files-parse.c: Likewise.
47500         * posix/bug-regex5.c: Likewise.
47501         * posix/fnmatch_loop.c: Likewise.
47502         * posix/regcomp.c: Likewise.
47503         * posix/regexec.c: Likewise.
47504         * posix/tst-rfc3484-2.c: Likewise.
47505         * posix/tst-rfc3484-3.c: Likewise.
47506         * posix/tst-rfc3484.c: Likewise.
47507         * resolv/nss_dns/dns-canon.c: Likewise.
47508         * resolv/nss_dns/dns-network.c: Likewise.
47509         * resolv/res_init.c: Likewise.
47510         * resolv/res_mkquery.c: Likewise.
47511         * resolv/tst-aton.c: Likewise.
47512         * stdlib/cxa_atexit.c: Likewise.
47513         * stdlib/cxa_finalize.c: Likewise.
47514         * stdlib/gen-fpioconst.c: Likewise.
47515         * stdlib/strtol_l.c: Likewise.
47516         * string/tst-endian.c: Likewise.
47517         * sunrpc/auth_des.c: Likewise.
47518         * sunrpc/clnt_udp.c: Likewise.
47519         * sunrpc/rtime.c: Likewise.
47520         * sunrpc/svcauth_des.c: Likewise.
47521         * sunrpc/xdr.c: Likewise.
47522         * sunrpc/xdr_intXX_t.c: Likewise.
47523         * sunrpc/xdr_rec.c: Likewise.
47524         * sysdeps/generic/ldconfig.h: Likewise.
47525         * sysdeps/generic/ldsodefs.h: Likewise.
47526         * sysdeps/generic/memusage.h: Likewise.
47527         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
47528         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
47529         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
47530         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
47531         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
47532         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
47533         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
47534         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
47535         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
47536         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
47537         * sysdeps/posix/getaddrinfo.c: Likewise.
47538         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
47539         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
47540         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
47541         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
47542         * sysdeps/powerpc/test-gettimebase.c: Likewise.
47543         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
47544         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
47545         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
47546         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
47547         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
47548         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
47549         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
47550         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
47551         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
47552         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
47553         * sysdeps/x86_64/dl-tls.h: Likewise.
47554         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
47555         * time/alt_digit.c: Likewise.
47556         * time/era.c: Likewise.
47557         * wcsmbs/tst-c16c32-1.c: Likewise.
47558
47559 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47560
47561         * math/libm-test.inc (struct test_sincos_data): New type.
47562         (RUN_TEST_LOOP_sincos): New macro.
47563         (sincos_test_data): New variable.
47564         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
47565
47566 2013-05-16  Richard Henderson  <rth@redhat.com>
47567
47568         * math/atest-exp2.c (LIMB64): New macro.
47569         (CONSTSZ): New macro.
47570         (mp_exp1, mp_exp_m1, mp_log2): New variables.
47571         (hexdig): Move ...
47572         (print_mpn_fp): ... to function scope.
47573         (read_mpn_hex): Remove.
47574         (get_log2): Remove.
47575         (exp2_mpn): Use mp_log2.
47576         (main): Use mp_exp1.
47577
47578 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47579
47580         * math/libm-test.inc: Remove comment about not testing "inexact"
47581         exceptions.
47582         (INEXACT_EXCEPTION): New macro.
47583         (NO_INEXACT_EXCEPTION): Likewise.
47584         (INVALID_EXCEPTION_OK): Update value.
47585         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
47586         (OVERFLOW_EXCEPTION_OK): Likewise.
47587         (UNDERFLOW_EXCEPTION_OK): Likewise.
47588         (IGNORE_ZERO_INF_SIGN): Likewise.
47589         (ERRNO_UNCHANGED): Likewise.
47590         (ERRNO_EDOM): Likewise.
47591         (ERRNO_ERANGE): Likewise.
47592         (test_exceptions): Handle testing "inexact" exceptions.
47593         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
47594         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
47595         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
47596         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
47597         INEXACT_EXCEPTION.
47598         (rint_towardzero_test_data): Likewise.
47599         (rint_downward_test_data): Likewise.
47600         (rint_upward_test_data): Likewise.
47601
47602         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
47603         with OVERFLOW_EXCEPTION.
47604         (exp10_test_data): Likewise.
47605         (exp2_test_data): Likewise.
47606         (expm1_test_data): Likewise.
47607         (lgamma_test_data): Likewise.
47608         (pow_test_data): Likewise.
47609         (tgamma_test_data): Likewise.
47610         (yn_test_data): Remove duplicate test of overflow.
47611
47612         * math/libm-test.inc (struct test_cc_c_data): New type.
47613         (RUN_TEST_LOOP_cc_c): New macro.
47614         (cpow_test_data): New variable.
47615         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
47616
47617         * math/libm-test.inc (struct test_f_L_data): New type.
47618         (RUN_TEST_LOOP_f_L): New macro.
47619         (llrint_test_data): New variable.
47620         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
47621         (llrint_tonearest_test_data): New variable.
47622         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
47623         (llrint_towardzero_test_data): New variable.
47624         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
47625         (llrint_downward_test_data): New variable.
47626         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
47627         (llrint_upward_test_data): New variable.
47628         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
47629         (llround_test_data): New variable.
47630         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
47631
47632 2013-05-13  Peter Collingbourne  <pcc@google.com>
47633
47634         * math/atest-exp2.c (get_log2): Remove const attribute.
47635
47636 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47637
47638         * math/libm-test.inc (struct test_f_l_data): New type.
47639         (RUN_TEST_LOOP_f_l): New macro.
47640         (lrint_test_data): New variable.
47641         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
47642         (lrint_tonearest_test_data): New variable.
47643         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
47644         (lrint_towardzero_test_data): New variable.
47645         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
47646         (lrint_downward_test_data): New variable.
47647         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
47648         (lrint_upward_test_data): New variable.
47649         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
47650         (lround_test_data): New variable.
47651         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
47652
47653 2013-05-15  Peter Collingbourne  <pcc@google.com>
47654
47655         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
47656         (EXTRACT_WORDS64) Use where appropriate.
47657         (INSERT_WORDS64) Likewise.
47658
47659         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
47660         constraints with x constraints.
47661         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
47662
47663         * malloc/obstack.c (_obstack_compat): Add initializer.
47664
47665 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
47666
47667         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
47668         si_trapno and add si_addr_lsb to _sifields.sigfault.
47669         (si_trapno): Remove macro.
47670         (si_addr_lsb): Define new macro.
47671         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47672
47673 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47674
47675         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
47676         instead of TEST_f_l.
47677         (llrint_test_tonearest): Likewise.
47678         (llrint_test_towardzero): Likewise.
47679         (llrint_test_downward): Likewise.
47680         (llrint_test_upward): Likewise.
47681         (llround_test): Likewise.
47682
47683         * math/libm-test.inc (struct test_f_i_data): Add comment.
47684         (RUN_TEST_LOOP_f_b): New macro.
47685         (RUN_TEST_LOOP_f_b_tg): Likewise.
47686         (finite_test_data): New variable.
47687         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
47688         (isfinite_test_data): New variable.
47689         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47690         (isinf_test_data): New variable.
47691         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47692         (isnan_test_data): New variable.
47693         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47694         (isnormal_test_data): New variable.
47695         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47696         (issignaling_test_data): New variable.
47697         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47698         (signbit_test_data): New variable.
47699         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47700
47701         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
47702         with INVALID_EXCEPTION.
47703         (acosh_test_data): Likewise.
47704         (asin_test_data): Likewise.
47705         (atanh_test_data): Likewise.
47706         (fmod_test_data): Likewise.
47707         (log_test_data): Likewise.
47708         (log10_test_data): Likewise.
47709         (log2_test_data): Likewise.
47710         (pow_test_data): Likewise.
47711         (sqrt_test_data): Likewise.
47712         (y0_test_data): Likewise.
47713         (y1_test_data): Likewise.
47714         (yn_test_data): Likewise.
47715
47716         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
47717         function contents.
47718
47719         * math/libm-test.inc (struct test_ff_i_data): New type.
47720         (RUN_TEST_LOOP_ff_i_tg): New macro.
47721         (isgreater_test_data): New variable.
47722         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47723         (isgreaterequal_test_data): New variable.
47724         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47725         (isless_test_data): New variable.
47726         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47727         (islessequal_test_data): New variable.
47728         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47729         (islessgreater_test_data): New variable.
47730         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47731         (isunordered_test_data): New variable.
47732         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47733
47734 2013-05-14  David S. Miller  <davem@davemloft.net>
47735
47736         * sysdeps/sparc/fpu/libm-test-ulps: Update.
47737
47738 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
47739
47740         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
47741
47742         * math/libm-test.inc (struct test_fF_f1_data): Change type of
47743         extra_test to int.
47744         (struct test_f_i_data): Change type of max_ulp to int.
47745
47746         * math/libm-test.inc (test_ffI_f1_data): New type.
47747         (RUN_TEST_LOOP_ffI_f1): New macro.
47748         (remquo_test_data): New variable.
47749         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
47750
47751         * setjmp/tst-setjmp-fp.c: New file.
47752         * setjmp/Makefile (tests): Add tst-setjmp-fp.
47753         (link-libm): New variable.
47754         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
47755
47756         * math/libm-test.inc (struct test_f_i_data): New type.
47757         (RUN_TEST_LOOP_f_i): New macro.
47758         (RUN_TEST_LOOP_f_i_tg): Likewise.
47759         (fpclassify_test_data): New variable.
47760         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
47761         (ilogb_test_data): New variable.
47762         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
47763
47764         * math/libm-test.inc (scalbln_test): Correct function name in END
47765         call.
47766
47767         * math/libm-test.inc (struct test_f_f1_data): Add comment.
47768         (RUN_TEST_LOOP_fI_f1): New macro.
47769         (frexp_test_data): New variable.
47770         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
47771
47772         * math/libm-test.inc (struct test_fF_f1_data): New type.
47773         (RUN_TEST_LOOP_fF_f1): New macro.
47774         (modf_test_data): New variable.
47775         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
47776
47777         * math/libm-test.inc (struct test_f_f1_data): New type.
47778         (RUN_TEST_LOOP_f_f1): New macro.
47779         (gamma_test_data): New variable.
47780         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
47781         (lgamma_test_data): New variable.
47782         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
47783
47784 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
47785
47786         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
47787         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
47788         (main): Comment "tls" pseudo-hwcap.
47789
47790 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
47791
47792         * math/libm-test.inc (struct test_fl_f_data): New type.
47793         (RUN_TEST_LOOP_fl_f): New variable.
47794         (scalbln_test_data): New variable.
47795         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
47796
47797         * math/libm-test.inc (struct test_fi_f_data): New type.
47798         (RUN_TEST_LOOP_fi_f): New macro.
47799         (ldexp_test_data): New variable.
47800         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
47801         (scalbn_test_data): New variable.
47802         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
47803
47804         * math/libm-test.inc (struct test_c_f_data): New type.
47805         (RUN_TEST_LOOP_c_f): New macro.
47806         (cabs_test_data): New variable.
47807         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
47808         (carg_test_data): New variable.
47809         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
47810         (cimag_test_data): New variable.
47811         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
47812         (creal_test_data): New variable.
47813         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
47814
47815         * math/libm-test.inc (struct test_if_f_data): New type.
47816         (RUN_TEST_LOOP_if_f): New macro.
47817         (jn_test_data): New variable.
47818         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
47819         (yn_test_data): New variable.
47820         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
47821
47822         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
47823
47824 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47825
47826         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
47827         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
47828
47829 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
47830
47831         * benchtests/Makefile (CPPFLAGS-nonlib): Add
47832         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
47833         (bench-deps): Add bench-timing.h.
47834         * benchtests-bench-skeleton.c: Include bench-timing.h.
47835         (main): Use TIMING_* macros instead of clock_gettime.
47836         * benchtests/bench-timing.h: New file.
47837
47838         [BZ #14582]
47839         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
47840         Renamed from _LIB_VERSION.
47841         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
47842
47843 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
47844
47845         * math/libm-test.inc (struct test_fff_f_data): New type.
47846         (RUN_TEST_LOOP_fff_f): New macro.
47847         (fma_test_data): New variable.
47848         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
47849         (fma_towardzero_test_data): New variable.
47850         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
47851         (fma_downward_test_data): New variable.
47852         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
47853         (fma_upward_test_data): New variable.
47854         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
47855
47856         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
47857         (struct test_c_c_data): New type.
47858         (RUN_TEST_LOOP_c_c): New macro.
47859         (cacos_test_data): New variable.
47860         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
47861         (cacosh_test_data): New variable.
47862         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
47863         (casin_test_data): New variable.
47864         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
47865         (casinh_test_data): New variable.
47866         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
47867         (catan_test_data): New variable.
47868         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
47869         (catanh_test_data): New variable.
47870         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
47871         (ccos_test_data): New variable.
47872         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
47873         (ccosh_test_data): New variable.
47874         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
47875         (cexp_test_data): New variable.
47876         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
47877         (clog_test_data): New variable.
47878         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
47879         (clog10_test_data): New variable.
47880         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
47881         (conj_test_data): New variable.
47882         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
47883         (cproj_test_data): New variable.
47884         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
47885         (csin_test_data): New variable.
47886         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
47887         (csinh_test_data): New variable.
47888         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
47889         (csqrt_test_data): New variable.
47890         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
47891         (ctan_test_data): New variable.
47892         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
47893         (ctan_tonearest_test_data): New variable.
47894         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
47895         (ctan_towardzero_test_data): New variable.
47896         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
47897         (ctan_downward_test_data): New variable.
47898         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
47899         (ctan_upward_test_data): New variable.
47900         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
47901         (ctanh_test_data): New variable.
47902         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
47903         (ctanh_tonearest_test_data): New variable.
47904         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
47905         (ctanh_towardzero_test_data): New variable.
47906         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
47907         (ctanh_downward_test_data): New variable.
47908         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
47909         (ctanh_upward_test_data): New variable.
47910         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
47911         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
47912         of BUILD_COMPLEX.
47913
47914         * math/libm-test.inc (struct test_ff_f_data): New type.
47915         (struct test_ff_f_data_nexttoward): Likewise.
47916         (RUN_TEST_LOOP_2_f): New macro.
47917         (RUN_TEST_LOOP_ff_f): Likewise.
47918         (atan2_test_data): New variable.
47919         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
47920         (copysign_test_data): New variable.
47921         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
47922         (fdim_test_data): New variable.
47923         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
47924         (fmax_test_data): New variable.
47925         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
47926         (fmin_test_data): New variable.
47927         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
47928         (fmod_test_data): New variable.
47929         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
47930         (hypot_test_data): New variable.
47931         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
47932         (nextafter_test_data): New variable.
47933         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
47934         (nexttoward_test_data): New variable.
47935         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
47936         (pow_test_data): New variable.
47937         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
47938         (pow_tonearest_test_data): New variable.
47939         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
47940         (pow_towardzero_test_data): New variable.
47941         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
47942         (pow_downward_test_data): New variable.
47943         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
47944         (pow_upward_test_data): New variable.
47945         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
47946         (remainder_test_data): New variable.
47947         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
47948         (scalb_test_data): New variable.
47949         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
47950         * sysdeps/i386/fpu/libm-test-ulps: Update.
47951
47952 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
47953
47954         * math/libm-test.inc (fma_test): Use max_value instead of local
47955         variable fltmax.
47956         (nextafter_test): Likewise.
47957
47958         * math/libm-test.inc (acos_towardzero_test_data): New variable.
47959         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47960         (acos_downward_test_data): New variable.
47961         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47962         (acos_upward_test_data): New variable.
47963         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47964         (acosh_test_data): New variable.
47965         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
47966         (asin_test_data): New variable.
47967         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
47968         (asin_tonearest_test_data): New variable.
47969         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47970         (asin_towardzero_test_data): New variable.
47971         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47972         (asin_downward_test_data): New variable.
47973         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47974         (asin_upward_test_data): New variable.
47975         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47976         (asinh_test_data): New variable.
47977         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
47978         (atan_test_data): New variable.
47979         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
47980         (atanh_test_data): New variable.
47981         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
47982         (cbrt_test_data): New variable.
47983         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
47984         (ceil_test_data): New variable.
47985         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
47986         (cos_test_data): New variable.
47987         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
47988         (cos_tonearest_test_data): New variable.
47989         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47990         (cos_towardzero_test_data): New variable.
47991         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47992         (cos_downward_test_data): New variable.
47993         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47994         (cos_upward_test_data): New variable.
47995         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47996         (cosh_test_data): New variable.
47997         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
47998         (cosh_tonearest_test_data): New variable.
47999         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48000         (cosh_towardzero_test_data): New variable.
48001         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48002         (cosh_downward_test_data): New variable.
48003         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48004         (cosh_upward_test_data): New variable.
48005         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48006         (erf_test_data): New variable.
48007         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
48008         (erfc_test_data): New variable.
48009         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
48010         (exp_test_data): New variable.
48011         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
48012         (exp_tonearest_test_data): New variable.
48013         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48014         (exp_towardzero_test_data): New variable.
48015         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48016         (exp_downward_test_data): New variable.
48017         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48018         (exp_upward_test_data): New variable.
48019         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48020         (exp10_test_data): New variable.
48021         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
48022         (exp2_test_data): New variable.
48023         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
48024         (expm1_test_data): New variable.
48025         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
48026         (fabs_test_data): New variable.
48027         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
48028         (floor_test_data): New variable.
48029         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
48030         (j0_test_data): New variable.
48031         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
48032         (j1_test_data): New variable.
48033         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
48034         (log_test_data): New variable.
48035         (log_test): Run tests with RUN_TEST_LOOP_f_f.
48036         (log10_test_data): New variable.
48037         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
48038         (log1p_test_data): New variable.
48039         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
48040         (log2_test_data): New variable.
48041         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
48042         (logb_test_data): New variable.
48043         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
48044         (logb_downward_test_data): New variable.
48045         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48046         (nearbyint_test_data): New variable.
48047         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
48048         (rint_test_data): New variable.
48049         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
48050         (rint_tonearest_test_data): New variable.
48051         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48052         (rint_towardzero_test_data): New variable.
48053         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48054         (rint_downward_test_data): New variable.
48055         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48056         (rint_upward_test_data): New variable.
48057         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48058         (round_test_data): New variable.
48059         (round_test): Run tests with RUN_TEST_LOOP_f_f.
48060         (sin_test_data): New variable.
48061         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
48062         (sin_tonearest_test_data): New variable.
48063         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48064         (sin_towardzero_test_data): New variable.
48065         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48066         (sin_downward_test_data): New variable.
48067         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48068         (sin_upward_test_data): New variable.
48069         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48070         (sinh_test_data): New variable.
48071         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
48072         (sinh_tonearest_test_data): New variable.
48073         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48074         (sinh_towardzero_test_data): New variable.
48075         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48076         (sinh_downward_test_data): New variable.
48077         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48078         (sinh_upward_test_data): New variable.
48079         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48080         (sqrt_test_data): New variable.
48081         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
48082         (tan_test_data): New variable.
48083         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
48084         (tan_tonearest_test_data): New variable.
48085         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48086         (tan_towardzero_test_data): New variable.
48087         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48088         (tan_downward_test_data): New variable.
48089         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48090         (tan_upward_test_data): New variable.
48091         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48092         (tanh_test_data): New variable.
48093         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
48094         (tgamma_test_data): New variable.
48095         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
48096         (trunc_test_data): New variable.
48097         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
48098         (y0_test_data): New variable.
48099         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
48100         (y1_test_data): New variable.
48101         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
48102         (significand_test_data): New variable.
48103         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
48104
48105 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
48106
48107         [BZ #12387]
48108         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
48109
48110 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
48111
48112         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
48113
48114 2013-05-10  Andreas Jaeger  <aj@suse.de>
48115
48116         [BZ #15448]
48117         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
48118         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
48119
48120 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48121
48122         * math/gen-libm-test.pl (adjust_arg): New function.
48123         (special_functions): Handle generating output in both functions
48124         and arrays.
48125         (parse_args): Likewise.
48126         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
48127         $in_func argument to parse_args.
48128         * math/libm-test.inc (struct test_f_f_data): New type.
48129         (IF_ROUND_INIT_): New macro.
48130         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
48131         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
48132         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
48133         (IF_ROUND_INIT_FE_UPWARD): Likewise.
48134         (ROUND_RESTORE_): Likewise.
48135         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
48136         (ROUND_RESTORE_FE_TONEAREST): Likewise.
48137         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
48138         (ROUND_RESTORE_FE_UPWARD): Likewise.
48139         (RUN_TEST_LOOP_f_f): New macro.
48140         (acos_test_data): New variable.
48141         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
48142         (acos_tonearest_test_data): New variable.
48143         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48144
48145 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48146
48147         * benchtests/bench-skeleton.c (startup): Fix coding style.
48148
48149 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48150
48151         [BZ #6809]
48152         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
48153         negative infinity argument.
48154         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
48155         negative infinity argument.
48156         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
48157         negative infinity argument.
48158         * math/libm-test.inc (tgamma_test): Expect errno to be set for
48159         domain errors.
48160
48161 2013-05-10  Florian Weimer  <fweimer@redhat.com>
48162
48163         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
48164         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
48165         * iconv/iconv_prog.c (main): Likewise.
48166         * locale/programs/charmap-dir.c (charmap_readdir)
48167         (fopen_uncompressed): Likewise.
48168         * locale/programs/locfile.c (siblings_uncached)
48169         (write_locale_data): Use lstat64 instead of lstat.
48170         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
48171         stat.
48172
48173 2013-05-10  Andreas Jaeger  <aj@suse.de>
48174
48175         [BZ #15395]
48176         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
48177         localization.
48178         Include <locale.h>.
48179
48180 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
48181
48182         * elf/dl-close.c (_dl_close_worker): Add comments.
48183
48184 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
48185
48186         [BZ #15359]
48187         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
48188         high part of pi/2.
48189         (__ieee754_rem_pio2l): Update comments.
48190
48191         [BZ #15429]
48192         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
48193         high part of pi/2.
48194         (__ieee754_rem_pio2l): Update comments.
48195
48196         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
48197         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
48198
48199         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
48200         M_PI_4l.
48201
48202         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
48203         (M_PI_34_LOG10El): Likewise.
48204         (M_PI2_LOG10El): Likewise.
48205         (M_PI4_LOG10El): Likewise.
48206         (M_PI_LOG10El): Likewise.
48207
48208 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48209
48210         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48211
48212 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
48213
48214         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
48215         (MINUS_ZERO_INIT): Likewise.
48216         (PLUS_INFTY_INIT): Likewise.
48217         (MINUS_INFTY_INIT): Likewise.
48218         (QNAN_VALUE_INIT): Likewise.
48219         (MAX_VALUE_INIT): Likewise.
48220         (MIN_VALUE_INIT): Likewise.
48221         (MIN_SUBNORM_VALUE_INIT): Likewise.
48222         (plus_zero): Initialize with PLUS_ZERO_INIT.
48223         (minus_zero): Initialize with MINUS_ZERO_INIT.
48224         (plus_infty): Initialize with PLUS_INFTY_INIT.
48225         (minus_infty): Initialize with MINUS_INFTY_INIT.
48226         (qnan_value): Initialize with QNAN_VALUE_INIT.
48227         (max_value): Initialize with MAX_VALUE_INIT.
48228         (min_value): Initialize with MIN_VALUE_INIT.
48229         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
48230
48231         * math/libm-test.inc (RUN_TEST_if_f): New macro.
48232         (jn_test): Use TEST_if_f instead of TEST_ff_f.
48233         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
48234         (yn_test): Use TEST_if_f instead of TEST_ff_f.
48235
48236         * math/libm-test.inc (RUN_TEST_f_f): New macro.
48237         (RUN_TEST_2_f): Likewise.
48238         (RUN_TEST_ff_f): Likewise.
48239         (RUN_TEST_fi_f): Likewise.
48240         (RUN_TEST_fl_f): Likewise.
48241         (RUN_TEST_fff_f): Likewise.
48242         (RUN_TEST_c_f): Likewise.
48243         (RUN_TEST_f_f1): Likewise.
48244         (RUN_TEST_fF_f1): Likewise.
48245         (RUN_TEST_fI_f1): Likewise.
48246         (RUN_TEST_ffI_f1): Likewise.
48247         (RUN_TEST_c_c): Likewise.
48248         (RUN_TEST_cc_c): Likewise.
48249         (RUN_TEST_f_i): Likewise.
48250         (RUN_TEST_f_i_tg): Likewise.
48251         (RUN_TEST_ff_i_tg): Likewise.
48252         (RUN_TEST_f_b): Likewise.
48253         (RUN_TEST_f_b_tg): Likewise.
48254         (RUN_TEST_f_l): Likewise.
48255         (RUN_TEST_f_L): Likewise.
48256         (RUN_TEST_sincos): Likewise.
48257         * math/gen-libm-test.pl (new_test): Take new argument to indicate
48258         whether to show exceptions.  Do not include ");\n" in return
48259         value.
48260         (special_functions): Output call to RUN_TEST_sincos instead of
48261         check_float calls.  Update calls to new_test.
48262         (parse_args): Output call to single RUN_TEST_* macro instead of
48263         check_* calls and other assignments.  Update calls to new_test.
48264
48265         [BZ #2546]
48266         [BZ #2560]
48267         [BZ #5159]
48268         [BZ #15426]
48269         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
48270         input to result for tgamma overflow.
48271         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
48272         (gamma_coeff): New variable.
48273         (NCOEFF): New macro.
48274         (gamma_positive): New function.
48275         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
48276         underflow here.  Use gamma_positive instead of exp (lgamma) for
48277         other arguments.
48278         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
48279         (gamma_coeff): New variable.
48280         (NCOEFF): New macro.
48281         (gammaf_positive): New function.
48282         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
48283         underflow here.  Use gamma_positive instead of exp (lgamma) for
48284         other arguments.
48285         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
48286         (gamma_coeff): New variable.
48287         (NCOEFF): New macro.
48288         (gammal_positive): New function.
48289         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
48290         underflow here.  Use gamma_positive instead of exp (lgamma) for
48291         other arguments.
48292         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
48293         (gamma_coeff): New variable.
48294         (NCOEFF): New macro.
48295         (gammal_positive): New function.
48296         (__ieee754_gammal_r): Handle positive infinity, overflow and
48297         underflow here.  Handle NaN the same as positive infinity.  Remove
48298         check x < 0xffffffff for negative integers.  Use gamma_positive
48299         instead of exp (lgamma) for other arguments.
48300         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
48301         (gamma_coeff): New variable.
48302         (NCOEFF): New macro.
48303         (gammal_positive): New function.
48304         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
48305         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
48306         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
48307         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
48308         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
48309         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
48310         * sysdeps/generic/math_private.h (__gamma_productf): New
48311         prototype.
48312         (__gamma_product): Likewise.
48313         (__gamma_productl): Likewise.
48314         * math/Makefile (libm-calls): Add gamma_product.
48315         * math/libm-test.inc (tgamma_test): Add more tests.
48316         * sysdeps/i386/fpu/libm-test-ulps: Update.
48317         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48318
48319 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
48320
48321         * benchtests/bench-skeleton.c (main): Preheat CPU.
48322
48323 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
48324
48325         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
48326
48327 2013-05-07  Roland McGrath  <roland@hack.frob.com>
48328
48329         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
48330         and _dl_skip_args_internal.
48331
48332 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
48333
48334         * manual/message.texi (Message Translation): Talk about users.
48335         Message to key mapping impacts design.
48336
48337 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48338
48339         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
48340
48341         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
48342
48343         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
48344         * sysdeps/wordsize-64/glob64.c: ... here.
48345
48346         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
48347         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
48348         New macros.
48349
48350         * debug/getlogin_r_chk.c: Moved to ...
48351         * login/getlogin_r_chk.c: ... here.
48352         * debug/Makefile (routines): Move getlogin_r_chk to ...
48353         * login/Makefile (routines): ... here.
48354         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
48355         * login/Versions (libc: GLIBC_2.4): ... here.
48356
48357         * io/poll.c (__poll): Renamed from poll.
48358         Add libc_hidden_def.
48359         (poll): Define as weak alias.
48360
48361         * debug/ptsname_r_chk.c: Moved to ...
48362         * login/ptsname_r_chk.c: ... here.
48363         * debug/Makefile (routines): Move ptsname_r_chk to ...
48364         * login/Makefile (routines): ... here.
48365         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
48366         * login/Versions (libc: GLIBC_2.4): ... here.
48367
48368         * posix/getlogin.c: Moved to ...
48369         * login/getlogin.c: ... here.
48370         * posix/getlogin_r.c: Moved to ...
48371         * login/getlogin_r.c: ... here.
48372         * posix/getlogin_r.c: Moved to ...
48373         * login/getlogin_r.c: ... here.
48374         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
48375         * login/Makefile (routines): ... here.
48376         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
48377         * login/Versions (libc: GLIBC_2.0): ... here.
48378
48379         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
48380         (setrlimit): Define as weak alias.
48381
48382         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
48383         Call __ names for open, ftruncate, and close.
48384         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
48385         (truncate): Define as weak alias.
48386
48387 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
48388
48389         * math/gen-libm-test.pl (parse_args): Initialize x before each
48390         test of frexp, modf and remquo.
48391
48392         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
48393         test signgam value.
48394
48395 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48396
48397         [BZ #15418]
48398         [BZ #15419]
48399         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
48400         internal tests.
48401         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48402
48403 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48404
48405         * elf/dl-writev.h: New file.
48406         * elf/dl-misc.c: Include it.
48407         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
48408         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
48409
48410 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
48411
48412         * math/libm-test.inc (noXFails): Remove variable.
48413         (noXPasses): Likewise.
48414         (BUILD_COMPLEX_INT): Remove macro.
48415         (print_screen): Remove xfail argument.
48416         (print_screen_max_error): Likewise.
48417         (update_stats): Likewise.
48418         (print_max_error): Likewise.  Update calls to other affected
48419         functions.
48420         (print_complex_max_error): Likewise.
48421         (test_single_exception): Update calls to print_screen.
48422         (test_single_errno): Likewise.
48423         (check_float_internal): Remove xfail argument.  Update calls to
48424         other affected functions.
48425         (check_float): Likewise.
48426         (check_complex): Likewise.
48427         (check_int): Likewise.
48428         (check_long): Likewise.
48429         (check_bool): Likewise.
48430         (check_longlong): Likewise.
48431         (main): Don't print noXFails and noXPasses.
48432         * math/gen-libm-test.pl (top level): Don't mention expected
48433         failure handling in comment.
48434         (new_test): Don't handle expected failures.
48435         (parse_args): Don't mention expected failure handling in comment.
48436         (generate_testfile): Don't handle expected failures.
48437         (parse_ulps): Likewise.
48438         (print_ulps_file): Likewise.
48439         (get_failure): Remove function.
48440         (output_test): Don't handle expected failures.
48441         * make/README.libm-test: Don't mention expected failure handling.
48442
48443         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
48444         (minus_zero): Likewise.
48445         (plus_infty): Likewise.
48446         (minus_infty): Likewise.
48447         (qnan_value): Likewise.
48448         (max_value): Likewise.
48449         (min_value): Likewise.
48450         (min_subnorm_value): Likewise.
48451         (initialize): Do not initialize those variables dynamically.
48452
48453 2013-05-03  Roland McGrath  <roland@hack.frob.com>
48454
48455         * io/open.c (__open_2): Moved to ...
48456         * io/open_2.c: ... this new file.
48457         * io/open64.c (__open64_2): Moved to ...
48458         * io/open64_2.c: ... this new file.
48459         * io/openat.c (__openat_2): Moved to ...
48460         * io/openat_2.c: ... this new file.
48461         * io/openat64.c (__openat64_2): Moved to ...
48462         * io/openat64_2.c: ... this new file.
48463         * io/Makefile (routines): Add them.
48464         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
48465         * sysdeps/unix/sysv/linux/open_2.c: File removed.
48466         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
48467         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
48468         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
48469         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
48470         (__openat64): Add hidden_ver.
48471         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
48472         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
48473
48474         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
48475         Separately conditionalize setting of GLRO(dl_sysinfo) so
48476         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
48477         as well, but the actual setting is only under [NEED_DL_SYSINFO].
48478
48479 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48480
48481         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
48482         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
48483         definition.
48484         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
48485         * sysdeps/unix/sysv/linux/powerpc/init-first.c
48486         (_libc_vdso_platform_setup): Add __vdso_time initialization.
48487         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
48488         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
48489
48490 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
48491
48492         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
48493         test signgam value.
48494
48495         * math/libm-test.inc (hypot_test): Do not use
48496         IGNORE_ZERO_INF_SIGN.
48497
48498 2013-05-03  Andreas Jaeger  <aj@suse.de>
48499
48500         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
48501         Linux 3.9.
48502         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
48503         (PF_MAX): Adjust for VSOCK change.
48504
48505 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48506
48507         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48508
48509 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
48510
48511         [BZ #15264]
48512         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
48513         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
48514         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
48515
48516 2013-05-02  David S. Miller  <davem@davemloft.net>
48517
48518         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48519
48520 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
48521
48522         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
48523
48524 2013-05-01  Roland McGrath  <roland@hack.frob.com>
48525
48526         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
48527
48528 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
48529
48530         [BZ #14952]
48531         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
48532         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48533         Use __attribute__ ((__gnu_inline__)).
48534         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48535         Don't use __attribute__ ((__gnu_inline__)).
48536
48537 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
48538
48539         [BZ #15423]
48540         * math/s_catan.c (__catan): Handle small real or imaginary part of
48541         input specially to avoid spurious underflow.
48542         * math/s_catanf.c (__catanf): Likewise.
48543         * math/s_catanh.c (__catanh): Likewise.
48544         * math/s_catanhf.c (__catanhf): Likewise.
48545         * math/s_catanhl.c (__catanhl): Likewise.
48546         * math/s_catanl.c (__catanl): Likewise.
48547         * math/libm-test.inc (catan_test): Add more tests.
48548         (catanh_test): Likewise.
48549         * sysdeps/i386/fpu/libm-test-ulps: Update.
48550         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48551
48552 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48553
48554         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48555
48556 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
48557
48558         [BZ #15416]
48559         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
48560         accurately for denominator in atan2.
48561         * math/s_catanf.c (__catanf): Likewise.
48562         * math/s_catanh.c (__catanh): Likewise.
48563         * math/s_catanhf.c (__catanhf): Likewise.
48564         * math/s_catanhl.c (__catanhl): Likewise.
48565         * math/s_catanl.c (__catanl): Likewise.
48566         * math/libm-test.inc (catan_test): Add more tests.
48567         (catanh_test): Likewise.
48568         * sysdeps/i386/fpu/libm-test-ulps: Update.
48569         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48570
48571 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
48572
48573         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
48574
48575         * benchtests/Makefile (bench): Remove slow benchmarks.
48576         * benchtests/atan-inputs: Add slow benchmark inputs.
48577         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
48578         (BENCH_FUNC): Accept variant offset.
48579         (VARIANT): Define.
48580         * benchtests/bench-skeleton.c (main): Run benchmark for each
48581         variant.
48582         * benchtests/cos-inputs: Add slow benchmark inputs.
48583         * benchtests/exp-inputs: Likewise.
48584         * benchtests/pow-inputs: Likewise.
48585         * benchtests/sin-inputs: Likewise.
48586         * benchtests/slowatan-inputs: Remove.
48587         * benchtests/slowatan.c: Remove.
48588         * benchtests/slowcos-inputs: Remove.
48589         * benchtests/slowcos.c: Remove.
48590         * benchtests/slowexp-inputs: Remove.
48591         * benchtests/slowexp.c: Remove.
48592         * benchtests/slowpow-inputs: Remove.
48593         * benchtests/slowpow.c: Remove.
48594         * benchtests/slowsin-inputs: Remove.
48595         * benchtests/slowsin.c: Remove.
48596         * benchtests/slowtan-inputs: Remove.
48597         * benchtests/slowtan.c: Remove.
48598         * benchtests/tan-inputs: Add slow benchmark inputs.
48599         * scripts/bench.pl: Parse comments and directives.
48600
48601         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
48602         in CPPFLAGS.
48603         ($(objpfx)bench-%.c): Remove *-ITER.
48604         * benchtests/bench-modf.c: Remove definition of ITER.
48605         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
48606         (main): Loop for DURATION seconds instead of fixed number of
48607         iterations.
48608         * scripts/bench.pl: Don't expect iterations in parameters.
48609
48610 2013-04-29  Roland McGrath  <roland@hack.frob.com>
48611
48612         * io/fchdir.c (__fchdir): Renamed from fchdir.
48613         (fchdir): Define as weak alias.
48614
48615 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48616
48617         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
48618         (ERRNO_EDOM): Likewise.
48619         (ERRNO_ERANGE): Likewise.
48620         (noErrnoTests): New variable.
48621         (init_max_error): Set errno to 0.
48622         (test_single_errno): New function.
48623         (test_errno): Likewise.
48624         (check_float_internal): Call test_errno.  Set errno to 0.
48625         (check_complex): Refer to errno tests in comment.
48626         (check_int): Call test_errno.  Set errno to 0.
48627         (check_long): Likewise.
48628         (check_bool): Likewise.
48629         (check_longlong): Likewise.
48630         (cos_test): Use ERRNO_* flags for errno tests instead of
48631         check_int.
48632         (expm1_test): Likewise.
48633         (fmod_test): Likewise.
48634         (ilogb_test): Likewise.
48635         (lgamma_test): Likewise.
48636         (pow_test): Likewise.
48637         (remainder_test): Likewise.
48638         (sin_test): Likewise.
48639         (tan_test): Likewise.
48640         (yn_test): Likewise.
48641         (initialize): Set errno to 0.
48642         (main): Print number of errno tests.
48643         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
48644
48645 2013-04-29  Andreas Jaeger  <aj@suse.de>
48646
48647         [BZ #15084]
48648         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
48649         and RES_USEVC.
48650
48651         [BZ #15085]
48652         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
48653         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
48654         unimplemented.
48655
48656         [BZ #15380]
48657         * stdlib/random.c (__initstate): Return NULL if
48658         __initstate fails.
48659
48660         [BZ #15086]
48661         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
48662         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
48663         RES_SNGLKUPREOP.
48664
48665 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48666
48667         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48668
48669 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48670
48671         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
48672         of individual tests.
48673         (casin_test): Likewise.
48674         (casinh_test): Likewise.
48675
48676 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
48677
48678         [BZ #15409]
48679         * math/s_catan.c (__catan): Handle arguments with large real or
48680         imaginary part separately without squaring.
48681         * math/s_catanf.c (__catanf): Likewise.
48682         * math/s_catanh.c (__catanh): Likewise.
48683         * math/s_catanhf.c (__catanhf): Likewise.
48684         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48685         and redefine.
48686         (__catanhl): Handle arguments with large real or imaginary part
48687         separately without squaring.
48688         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48689         and redefine.
48690         (__catanl): Handle arguments with large real or imaginary part
48691         separately without squaring.
48692         * math/libm-test.inc (catan_test): Add more tests.
48693         (catanh_test): Likewise.
48694         * sysdeps/i386/fpu/libm-test-ulps: Update.
48695         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48696
48697 2013-04-27  Andreas Jaeger  <aj@suse.de>
48698
48699         [BZ #15007]
48700         * stdlib/stdlib.h: Update guards for qecvt.
48701         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
48702         <stdlib.h>.
48703
48704 2013-04-27  Allan McRae  <allan@archlinux.org>
48705
48706         * sysdeps/i386/fpu/libm-test-ulps: Update.
48707
48708 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
48709
48710         [BZ #15406]
48711         * math/s_catan.c: Include <float.h>.
48712         (__catan): Ensure underflow exception occurs for underflowed
48713         result.
48714         * math/s_catanf.c: Include <float.h>.
48715         (__catanf): Ensure underflow exception occurs for underflowed
48716         result.
48717         * math/s_catanh.c: Include <float.h>.
48718         (__catanh): Ensure underflow exception occurs for underflowed
48719         result.
48720         * math/s_catanhf.c: Include <float.h>.
48721         (__catanhf): Ensure underflow exception occurs for underflowed
48722         result.
48723         * math/s_catanhl.c: Include <float.h>.
48724         (__catanhl): Ensure underflow exception occurs for underflowed
48725         result.
48726         * math/s_catanl.c: Include <float.h>.
48727         (__catanl): Ensure underflow exception occurs for underflowed
48728         result.
48729         * math/libm-test.inc (catan_test): Add more tests.
48730         (catanh_test): Likewise.
48731
48732         [BZ #15405]
48733         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
48734         underflowed result.
48735         * math/s_ccoshf.c (__ccoshf): Likewise.
48736         * math/s_ccoshl.c (__ccoshl): Likewise.
48737         * math/s_csin.c (__csin): Likewise.
48738         * math/s_csinf.c (__csinf): Likewise.
48739         * math/s_csinh.c (__csinh): Likewise.
48740         * math/s_csinhf.c (__csinhf): Likewise.
48741         * math/s_csinhl.c (__csinhl): Likewise.
48742         * math/s_csinl.c (__csinl): Likewise.
48743         * math/libm-test.inc (ccos_test): Add more tests.
48744         (ccosh_test): Likewise.
48745         (csin_test): Likewise.
48746         (csinh_test): Likewise.
48747
48748 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48749
48750         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
48751         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
48752         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
48753         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
48754         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
48755         powerpc/power5+/fpu folders.
48756         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
48757
48758
48759 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
48760
48761         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
48762
48763 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
48764
48765         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
48766         additions to variable.
48767         [$(config-machine) = x86_64] (modules-names): Likewise.
48768         ($(objpfx)tst-audit3): Remove dependency.
48769         ($(objpfx)tst-audit3.out): Likewise.
48770         ($(objpfx)tst-audit4): Likewise.
48771         ($(objpfx)tst-audit4.out): Likewise.
48772         ($(objpfx)tst-audit5): Likewise.
48773         ($(objpfx)tst-audit5.out): Likewise.
48774         ($(objpfx)tst-audit6): Likewise.
48775         ($(objpfx)tst-audit6.out): Likewise.
48776         ($(objpfx)tst-audit7): Likewise.
48777         ($(objpfx)tst-audit7.out): Likewise.
48778         (tst-audit3-ENV): Remove variable.
48779         (tst-audit4-ENV): Likewise.
48780         (tst-audit5-ENV): Likewise.
48781         (tst-audit6-ENV): Likewise.
48782         (tst-audit7-ENV): Likewise.
48783         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
48784         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
48785         addition to variable.
48786         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
48787         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
48788         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
48789         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
48790         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
48791         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
48792         tst-audit3, tst-audit4 and tst-audit5.
48793         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
48794         tst-audit6 and tst-audit7.
48795         [$(subdir) = elf] (modules-names): Add audit modules for those
48796         tests.
48797         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
48798         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
48799         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
48800         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
48801         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
48802         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
48803         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
48804         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
48805         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
48806         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
48807         [$(subdir) = elf] (tst-audit3-ENV): New variable.
48808         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
48809         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
48810         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
48811         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
48812         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
48813         Likewise.
48814         [$(subdir) = elf && $(config-cflags-avx) = yes]
48815         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
48816         [$(subdir) = elf && $(config-cflags-avx) = yes]
48817         (CFLAGS-tst-auditmod4a.c): Likewise.
48818         [$(subdir) = elf && $(config-cflags-avx) = yes]
48819         (CFLAGS-tst-auditmod4b.c): Likewise.
48820         [$(subdir) = elf && $(config-cflags-avx) = yes]
48821         (CFLAGS-tst-auditmod6b.c): Likewise.
48822         [$(subdir) = elf && $(config-cflags-avx) = yes]
48823         (CFLAGS-tst-auditmod6c.c): Likewise.
48824         [$(subdir) = elf && $(config-cflags-avx) = yes]
48825         (CFLAGS-tst-auditmod7b.c): Likewise.
48826         * elf/tst-audit3.c: Move to ...
48827         * sysdeps/x86_64/tst-audit3.c: ... here.
48828         * elf/tst-audit4.c: Move to ...
48829         * sysdeps/x86_64/tst-audit4.c: ... here.
48830         * elf/tst-audit5.c: Move to ...
48831         * sysdeps/x86_64/tst-audit5.c: ... here.
48832         * elf/tst-audit6.c: Move to ...
48833         * sysdeps/x86_64/tst-audit6.c: ... here.
48834         * elf/tst-audit7.c: Move to ...
48835         * sysdeps/x86_64/tst-audit7.c: ... here.
48836         * elf/tst-auditmod3a.c: Move to ...
48837         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
48838         * elf/tst-auditmod3b.c: Move to ...
48839         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
48840         * elf/tst-auditmod4a.c: Move to ...
48841         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
48842         * elf/tst-auditmod4b.c: Move to ...
48843         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
48844         * elf/tst-auditmod5a.c: Move to ...
48845         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
48846         * elf/tst-auditmod5b.c: Move to ...
48847         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
48848         * elf/tst-auditmod6a.c: Move to ...
48849         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
48850         * elf/tst-auditmod6b.c: Move to ...
48851         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
48852         * elf/tst-auditmod6c.c: Move to ...
48853         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
48854         * elf/tst-auditmod7a.c: Move to ...
48855         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
48856         * elf/tst-auditmod7b.c: Move to ...
48857         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
48858
48859 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
48860
48861         [BZ #15366]
48862         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
48863         define unconditionally.
48864         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
48865         define unconditionally.
48866         (INT8_C, INT16_C, etc.): Likewise.
48867
48868 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
48869
48870         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
48871         __ehdr_start with hidden visibility.
48872
48873         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
48874
48875 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
48876
48877         * math/libm-test.inc (cos_test): Use accurate hex constants.
48878         (sincost_test): Likewise.
48879
48880 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
48881
48882         * math/libm-test.inc (catan_test): Add more tests.
48883         (catanh_test): Likewise.
48884
48885         * math/s_catanf.c (__catanf): Use suffixed floating-point
48886         constants.
48887         * math/s_catanhf.c (__catanhf): Likewise.
48888         * math/s_catanhl.c (__catanhl): Likewise.
48889         * math/s_catanl.c (__catanl): Likewise.
48890
48891         [BZ #15394]
48892         * math/s_catan.c (__catan): Calculate imaginary part of result
48893         with log1p not log unless computing log of number close to 0.
48894         * math/s_catanf.c (__catanf): Likewise.
48895         * math/s_catanl.c (__catanl): Likewise.
48896         * math/s_catanh.c (__catanh): Calculate real part of result with
48897         log1p not log unless computing log of number close to 0.
48898         * math/s_catanhf.c (__catanhf): Likewise.
48899         * math/s_catanhl.c (__catanhl): Likewise.
48900         * math/libm-test.inc (catan_test): Add more tests.
48901         (catanh_test): Likewise.
48902         * sysdeps/i386/fpu/libm-test-ulps: Update.
48903         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48904
48905 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
48906
48907         * benchtests/Makefile: Mention files in which fast and slow
48908         paths of math functions are implemented.
48909
48910 2013-04-23  Roland McGrath  <roland@hack.frob.com>
48911
48912         * sysdeps/posix/timespec_get.c: New file.
48913
48914 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48915
48916         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
48917         POWER.
48918         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
48919         for POWER.
48920         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
48921         powerpc/power5/fpu folders.
48922         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
48923         * benchtests/Makefile: Add modf testcase.
48924         * benchtests/bench-modf.c: New file: Benchmark test for mo
48925
48926 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
48927
48928         [BZ #14888]
48929         * time/Makefile (tests): Add tst-strptime-whitespace.
48930         * time/strptime_l.c (get_number): Use ISSPACE.
48931         (__strptime_internal): Likewise.
48932         * time/tst-strptime-whitespace.c: New test case.
48933
48934 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
48935
48936         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
48937         member.
48938         (_nss_files_init): Set it here.
48939
48940 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
48941
48942         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
48943         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
48944         unsigned.
48945
48946 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
48947
48948         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
48949
48950 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
48951
48952         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
48953         size just once.
48954
48955 2013-04-21  David S. Miller  <davem@davemloft.net>
48956
48957         * po/ru.po: Update Russion translation from translation project.
48958
48959 2013-04-17  Adam Conrad  <adconrad@0c3.net>
48960
48961         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
48962         and setfsgid.
48963
48964 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
48965
48966         * configure.in: Remove i386 configure warning. Remove i386 case.
48967         * configure: Regenerate.
48968         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
48969         Add example to error message.
48970         * sysdeps/i386/configure: Regenerate.
48971
48972 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
48973
48974         * benchtests/Makefile (bench): Add cos, tan, slowcos and
48975         slowtan.
48976         * benchtests/cos-inputs: New file.
48977         * benchtests/slowcos-inputs: New file.
48978         * benchtests/slowcos.c: New file.
48979         * benchtests/slowtan-inputs: New file.
48980         * benchtests/slowtan.c: New file.
48981         * benchtests/tan-inputs: New file.
48982
48983 2013-04-16  Roland McGrath  <roland@hack.frob.com>
48984
48985         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
48986         considered kosher.
48987
48988 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
48989
48990         * benchtests/Makefile: Include cppflags-iterator.mk to add
48991         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
48992
48993         * Makefile.in (bench-clean): New target.
48994         * benchtests/Makefile (bench-clean): Likewise.
48995
48996 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
48997
48998         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
48999
49000 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
49001
49002         * stdio-common/tstdiomisc.c: Fix coding-style violation.
49003
49004 2013-04-15  Andreas Schwab  <schwab@suse.de>
49005
49006         * nscd/grpcache.c (cache_addgr): Properly check for short write.
49007         * nscd/initgrcache.c (addinitgroupsX): Likewise.
49008         * nscd/pwdcache.c (cache_addpw): Likewise.
49009         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
49010         more than recsize.
49011
49012 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49013
49014         * benchtests/Makefile (bench): Write all output to
49015         bench-out.tmp together.
49016
49017 2013-04-15  Andreas Schwab  <schwab@suse.de>
49018
49019         * nscd/nscd.c (main): Don't fork again after closing files.
49020
49021 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49022
49023         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
49024
49025         * benchtests/Rules (bench-deps): Collect dependencies into a
49026         single variable.  Add Makefile to dependencies.
49027         ($(objpfx)bench-%.c): Depend on bench-deps.
49028
49029 2013-04-12  Roland McGrath  <roland@hack.frob.com>
49030             Xavier Roche  <roche+kml2@exalead.com>
49031
49032         [BZ #15361]
49033         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
49034         just that it's a file descriptor.
49035         * manual/llio.texi (Synchronizing AIO Operations): Update description
49036         for EBADF error from aio_fsync.
49037
49038 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
49039
49040         * Rules (bench): Move target definition...
49041         * benchtests/Makefile: ... here.
49042
49043 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
49044
49045         * math/libm-test.inc (cos_test): Fix PI/2 test.
49046         (sincos_test): Likewise.
49047         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
49048         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
49049
49050 2013-04-11  Andreas Schwab  <schwab@suse.de>
49051
49052         [BZ #13988]
49053         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
49054         accept exponent character only when digits were seen.
49055         * stdio-common/Makefile (tests): Add bug26.
49056         * stdio-common/bug26.c: New file.
49057
49058         [BZ #14293]
49059         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
49060         non-freeable.
49061
49062 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49063
49064         * Makeconfig (rtld-prefix): Define built linker prefix.
49065         * Rules (run-bench): Use it.
49066         * math/Makefile (run-regen-ulps): Likewise.
49067
49068         * Rules (bench): Remove eval.
49069
49070 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
49071             Roland McGrath  <roland@hack.frob.com>
49072             Ondrej Bilka  <neleai@seznam.cz>
49073
49074         [BZ #15346]
49075         * time/getdate.c: Include ctype.h and alloca.h.
49076         (__getdate_r): Trim leading and trailing spaces of input.
49077         * time/tst-getdate.c (tests): Add tests with leading and
49078         trailing spaces.
49079
49080 2013-04-08  Roland McGrath  <roland@hack.frob.com>
49081
49082         [BZ #14280]
49083         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
49084         when computing value.
49085
49086 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49087
49088         * math/README.libm-test (How can I generate "libm-test-ulps"?):
49089         Use testrun.sh to run libm tests.
49090
49091         [BZ #15309]
49092         * elf/dl-open.c (dl_open_worker): memset all of seen array.
49093
49094 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
49095
49096         [BZ #15264]
49097         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
49098
49099 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49100
49101         * Makefile.in (regen-ulps): New target.
49102         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
49103         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
49104         [ifneq (no,$(PERL)] (regen-ulps): New target.
49105         [ifeq (no,$(PERL)] (regen-ulps): New target.
49106         * math/libm-test.inc (ulps_file_name): Define.
49107         (output_dir): New variable.
49108         (options): Add "output-dir" option.
49109         (parse_opt): Handle 'o' case.
49110         (main): If output_dir is non-NULL use it as a prefix
49111         otherwise use "".
49112         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
49113
49114 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49115
49116         [BZ #10060, #10062]
49117         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
49118         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
49119         fail configure if __sync_val_compare_and_swap is not inlined.
49120         * sysdeps/i386/configure: Regenerate.
49121         * configure.in: Build for i686 when configured for i386.
49122         * configure: Regenerate.
49123         * README: Remove i386 reference.
49124
49125 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49126
49127         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
49128         * sysdeps/s390/s390-64/sysdep.h: Likewise.
49129
49130 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
49131
49132         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
49133         (lmsnanval): New variables.
49134         (F): Add conversion tests.
49135         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
49136         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
49137
49138         * stdio-common/tstdiomisc.c (F): Properly collect individual
49139         tests' results.
49140
49141         [BZ #14686, #15336]
49142         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
49143         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
49144         Instead, use input NaN values or generate a qNaN by arithmetic
49145         operation.  Also fix bugs to comply with the standard.
49146         * math/libm-test.inc (remainder_test): Add more tests.
49147
49148         [BZ #15335, #15342]
49149         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
49150         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
49151         input NaN values or generate a qNaN by arithmetic operation.
49152
49153         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
49154         unreachable code.
49155
49156         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
49157         definitions.
49158
49159 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
49160
49161         [BZ #14478]
49162         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
49163         underflowed result.
49164         * math/s_cexpf.c (__cexpf): Likewise.
49165         * math/s_cexpl.c (__cexpl): Likewise.
49166         * math/libm-test.inc (cexp_test): Add more tests.
49167
49168 2013-04-03  Andreas Schwab  <schwab@suse.de>
49169
49170         [BZ #15330]
49171         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
49172         order arrays from heap if bigger than alloca cutoff.
49173
49174 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
49175
49176         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
49177         (SNAN_TESTS_double): Refer to GCC PR56831.
49178         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
49179         GCC PR56828.
49180
49181 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
49182
49183         * Rules (bench): Move bench.out after the run is complete.
49184
49185         * Rules (bench): Echo currently running benchmark.
49186
49187         * benchtests/Makefile (bench): Add atan and slowatan.
49188         * benchtests/atan-inputs: New file.
49189         * benchtests/slowatan-inputs: New file.
49190         * benchtests/slowatan.c: New file.
49191
49192         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
49193         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
49194         its value.
49195
49196         [BZ #15305]
49197         * sysdeps/unix/sysv/linux/kernel-features.h
49198         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
49199         __ASSUME_XFS_RESTRICTED_CHOWN.
49200         * sysdeps/unix/sysv/linux/pathconf.c
49201         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
49202         Save and restore errno.
49203
49204 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
49205
49206         [BZ #15327]
49207         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
49208         arguments using __kernel_casinh.
49209         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
49210         arguments using __kernel_casinhf.
49211         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
49212         arguments using __kernel_casinhl.
49213         * math/libm-test.inc (cacosh_test): Add more tests.
49214         * sysdeps/i386/fpu/libm-test-ulps: Update.
49215         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49216
49217 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
49218
49219         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
49220         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
49221
49222         * bench/Makefile (bench): Add sin and slowsin.
49223         * benchtests/sin-inputs: New file.
49224         * benchtests/slowsin-inputs: New file.
49225         * benchtests/slowsin.c: New file.
49226
49227         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
49228         (bench): Add slowexp and slowpow.
49229         (exp-ITER): Increase iterations.
49230         (pow-ITER): Likewise.
49231         * benchtests/exp-inputs: Change input.
49232         * benchtests/pow-inputs: Likewise.
49233         * benchtests/slowexp-inputs: New file.
49234         * benchtests/slowexp.c: New file.
49235         * benchtests/slowpow-inputs: New file.
49236         * benchtests/slowpow.c: New file.
49237
49238 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49239
49240         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
49241         instructions.
49242         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
49243         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
49244         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49245         * benchtests/Makefile: Add rint benchtest.
49246         * benchtests/rint-inputs: Input for rint benchtest.
49247
49248 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
49249
49250         * Versions.def (libm): Add GLIBC_2.18.
49251         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
49252         hidden libm prototypes.
49253         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
49254         * math/Makefile (libm-calls): Add s_issignaling.
49255         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
49256         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
49257         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
49258         declaration.
49259         * math/math.h [__USE_GNU] (issignaling): New macro.
49260         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
49261         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
49262         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
49263         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
49264         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
49265         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
49266         * manual/arith.texi (issignaling): New section.
49267         * manual/libm-err-tab.pl (@all_functions): Update comment.
49268         * math/gen-libm-test.pl (parse_args): Apply special handling for
49269         issignaling.
49270         * math/libm-test.inc (print_float, issignaling_test): New
49271         functions.
49272         (check_float_internal): Add issignaling checks.
49273         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
49274         default definition.
49275         * sysdeps/powerpc/math-tests.h: New file.
49276         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
49277         tests.
49278         * math/test-snan.c (TEST_FUNC): Likewise.
49279
49280 2013-03-30  David S. Miller  <davem@davemloft.net>
49281
49282         * po/de.po: Update from translation team.
49283
49284 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
49285
49286         [BZ #10357]
49287         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49288         imaginary part less than 1.0 and real part less than 0.5
49289         specially.
49290         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49291         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49292         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
49293         (cacos_test): Add more tests.
49294         (casin_test): Likewise.
49295         (casinh_test): Likewise.
49296         * sysdeps/i386/fpu/libm-test-ulps: Update.
49297         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49298
49299 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
49300
49301         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
49302         ONE with its value.
49303
49304         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
49305         (__pow_mp): Replace ONE and MONE with their values.
49306         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49307         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
49308         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49309         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
49310         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49311         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49312
49313         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
49314
49315         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
49316         (__pow_mp): Replace ZERO and MZERO with their values.
49317         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49318         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49319         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49320         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
49321         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49322         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
49323         (__sqr): Likewise.
49324
49325         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
49326
49327         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
49328
49329 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49330
49331         * include/stdlib.h [!SHARED] (__call_tls_dtors):
49332         Declare with __attribute__ ((weak)).
49333         * stdlib/exit.c (__libc_atexit) [!SHARED]:
49334         Call __call_tls_dtors only if it's not NULL.
49335
49336 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49337
49338         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
49339         didn't do it already, then set _dl_phdr and _dl_phnum based on the
49340         magic __ehdr_start linker symbol if it's defined.
49341         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
49342         them up here if it was already done.
49343
49344         * elf/dl-support.c (_dl_phdr): Make pointer to const.
49345         (_dl_aux_init): Use const in cast when setting it.
49346         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
49347         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
49348         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
49349
49350         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
49351         Declare them here.
49352         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
49353         * csu/libc-tls.c: Nor here.
49354         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
49355
49356         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
49357         (__libc_message): Never call vsyslog.
49358
49359 2013-03-28  Alan Modra  <amodra@gmail.com>
49360
49361         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
49362         Define as empty.
49363         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
49364         Likewise.
49365
49366 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49367
49368         [BZ #15214]
49369         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
49370         underflow.
49371         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49372
49373 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
49374
49375         [BZ #15304]
49376         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
49377         Don't add gid passed as argument.
49378
49379         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
49380
49381 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
49382
49383         [BZ #15307]
49384         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49385         imaginary part between 1.0 and 1.5 and real part less than 0.5
49386         specially.
49387         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49388         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49389         * math/libm-test.inc (cacos_test): Add more tests.
49390         (casin_test): Likewise.
49391         (casinh_test): Likewise.
49392         * sysdeps/i386/fpu/libm-test-ulps: Update.
49393         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49394
49395 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
49396
49397         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
49398         constants.
49399         (norm): Likewise.
49400         (denorm): Likewise.
49401         (__dbl_mp): Likewise.
49402         (add_magnitudes): Likewise.
49403         (sub_magnitudes): Likewise.
49404         (__add): Likewise.
49405         (__sub): Likewise.
49406         (__mul): Likewise.
49407         (__sqr): Likewise.
49408         (__inv): Likewise.
49409         (__dvd): Likewise.
49410
49411         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
49412         commented code.
49413         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
49414         (__dubcos): Likewise.
49415         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
49416         (__ieee754_acos): Likewise.
49417         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49418         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
49419         (__exp1): Likewise.
49420         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49421         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
49422         (log1): Likewise.
49423         (my_log2): Likewise.
49424         (checkint): Likewise.
49425         * sysdeps/ieee754/dbl-64/e_remainder.c
49426         (__ieee754_remainder): Likewise.
49427         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49428         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
49429         (bsloww): Likewise.
49430         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49431
49432         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49433         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
49434         MANTISSA_STORE_T to store computations on mantissa.  Use
49435         macros for rounding and division.
49436         (denorm): Likewise.
49437         (__dbl_mp): Likewise.
49438         (add_magnitudes): Likewise.
49439         (sub_magnitudes): Likewise.
49440         (__mul): Likewise.
49441         (__sqr): Likewise.
49442         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49443         powers of two in terms of TWOPOW macro.
49444         (mp_no): Make type of mantissa as MANTISSA_T.
49445         [!RADIXI]: Define RADIXI.
49446         [!TWO52]: Define TWO52.
49447         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49448
49449 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49450
49451         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
49452         llroundl symbol when building for PPC32.
49453
49454 2013-03-24  Mark H Weaver  <mhw@netris.org>
49455
49456         * manual/arith.texi (Normalization Functions): Fix prototypes for
49457         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
49458
49459 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49460
49461         [BZ #13889]
49462         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
49463         high value to check if expl overflow.
49464         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
49465         to check for underflow and overflow.
49466         * math/libm-test.inc: Add exp test.
49467
49468 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
49469
49470         [BZ #11120]
49471         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
49472         with NOT_IN_libc.
49473
49474 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49475
49476         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
49477         symbol.
49478
49479 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
49480
49481         * math/gen-libm-test.pl (parse_args, special_functions): Properly
49482         wrap blocks consisting of several statements.
49483
49484         * sysdeps/generic/math-tests.h: New file.
49485         * sysdeps/i386/fpu/math-tests.h: Likewise.
49486         * math/test-snan.c: Include it.
49487         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
49488
49489 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49490
49491         [BZ #15285]
49492         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
49493         (__ieee754_j0l): Do not improve calculations using cos of twice
49494         input for inputs above LDBL_MAX / 2.0L.
49495         (__ieee754_y0l): Likewise.
49496         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
49497         (__ieee754_j1l): Do not improve calculations using cos of twice
49498         input for inputs above LDBL_MAX / 2.0L.
49499         (__ieee754_y1l): Likewise.
49500         * math/libm-test.inc (j0_test): Add another test.
49501         (j1_test): Likewise.
49502         (y0_test): Likewise.
49503         (y1_test): Likewise.
49504         * sysdeps/i386/fpu/libm-test-ulps: Update.
49505
49506 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49507
49508         * Rules ($(objpfx)bench-%.c): Include code from a C source
49509         file.
49510
49511 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49512
49513         [BZ #15287]
49514         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49515         imaginary part 1.0 and real part less than 0.5 specially.
49516         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49517         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49518         * math/libm-test.inc (cacos_test): Add more tests.
49519         (casin_test): Likewise.
49520         (casinh_test): Likewise.
49521         * sysdeps/i386/fpu/libm-test-ulps: Update.
49522         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49523
49524 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49525
49526         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
49527         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
49528
49529 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
49530
49531         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
49532         * config.make.in (config-cflags-sse4): Remove variable.
49533         (config-cflags-avx): Likewise.
49534         (config-cflags-sse2avx): Likewise.
49535         (config-cflags-novzeroupper): Likewise.
49536         (config-asflags-i686): Likewise.
49537         (have-mfma4): Likewise.
49538         (have-as-vis3): Likewise.
49539         (MIG): Likewise.
49540         * configure.in (MIG): Do not AC_SUBST.
49541         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
49542         (libc_cv_cc_sse4): Do not AC_SUBST.
49543         (libc_cv_cc_avx): Likewise.
49544         (libc_cv_cc_sse2avx): Likewise.
49545         (libc_cv_cc_novzeroupper): Likewise.
49546         (libc_cv_cc_fma4): Likewise.
49547         (libc_cv_as_i686): Likewise.
49548         (libc_cv_sparc_as_vis3): Likewise.
49549         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
49550         LIBC_CONFIG_VAR.
49551         (config-asflags-i686): Likewise.
49552         (config-cflags-avx): Likewise.
49553         (config-cflags-sse2avx): Likewise.
49554         (have-mfma4): Likewise.
49555         (config-cflags-novzeroupper): Likewise.
49556         * sysdeps/mach/configure.in (MIG): Likewise.
49557         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
49558         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
49559         LIBC_CONFIG_VAR.
49560         (config-cflags-avx): Likewise.
49561         (config-cflags-sse2avx): Likewise.
49562         (have-mfma4): Likewise.
49563         (config-cflags-novzeroupper): Likewise.
49564         * configure: Regenerated.
49565         * sysdeps/i386/configure: Likewise.
49566         * sysdeps/mach/configure: Likewise.
49567         * sysdeps/sparc/configure: Likewise.
49568         * sysdeps/x86_64/configure: Likewise.
49569
49570 2013-03-20  Roland McGrath  <roland@hack.frob.com>
49571
49572         [BZ #14812]
49573         * locale/programs/localedef.c (options): Put N_ translation marker
49574         on argument names, not just descriptions.
49575
49576 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
49577
49578         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
49579
49580 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
49581
49582         [BZ #14176]
49583         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
49584
49585 2013-03-19  Roland McGrath  <roland@hack.frob.com>
49586
49587         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
49588         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
49589         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
49590         [!BEFORE_ABORT] (before_abort): New function.
49591         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
49592         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
49593         (writev_for_fatal): New function.
49594         (WRITEV_FOR_FATAL): New macro; call that.
49595         (backtrace_and_maps): New function.
49596         (BEFORE_ABORT): New macro; call that.
49597         (struct str_list): Type removed.
49598         (__libc_message, __libc_fatal): Functions removed.
49599         Include <sysdeps/posix/libc_fatal.c> instead.
49600
49601 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
49602
49603         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
49604         constants.
49605         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
49606         double constants.
49607
49608 2013-03-19  Andreas Schwab  <schwab@suse.de>
49609
49610         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
49611         * sysdeps/gnu/configure: Regenerate.
49612
49613         * configure.in: Substitute libc_cv_rtlddir.
49614         * configure: Regenerate.
49615         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
49616         * Makeconfig (rtlddir, inst_rtlddir): New variables.
49617         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
49618         * elf/Makefile (install-others, CFLAGS-interp.c)
49619         (ldso_install, common-ldd-rewrite): Likewise.
49620         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
49621         $(inst_slibdir)/$(rtld-installed-name).
49622         * scripts/rellns-sh: Add -p option.
49623         * Makerules (make-shlib-link): Use rellns-sh to get relative name
49624         for source.
49625
49626 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
49627
49628         * manual/nptl.texi: Renamed to ...
49629         * manual/threads.texi: ... this.
49630         * manual/Makefile (chapters): Update.
49631
49632 2013-03-18  Roland McGrath  <roland@hack.frob.com>
49633
49634         [BZ #14812]
49635         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
49636         on argument names, not just descriptions.
49637         * malloc/memusagestat.c (options): Likewise.
49638         * nss/getent.c (options): Likewise.
49639
49640 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
49641
49642         [BZ #14812]
49643         * iconv/iconv_prog.c (options): Put N_ translation marker
49644         on argument names, not just descriptions.
49645         * iconv/iconvconfig.c (options): Likewise.
49646
49647 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
49648
49649         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
49650         implementation which is faster on all x86_64 architectures.
49651         Tested on AMD, Intel Nehalem, SNB, IVB.
49652         * sysdeps/x86_64/strnlen.S: Likewise.
49653
49654         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
49655         Remove all multiarch strlen and strnlen versions.
49656         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
49657         Remove strlen and strnlen related parts.
49658
49659         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
49660         Inline strlen part.
49661         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
49662
49663         * sysdeps/x86_64/multiarch/strlen.S: Remove.
49664         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
49665         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
49666         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
49667         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
49668         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
49669
49670 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
49671
49672         * manual/memory.texi (Malloc Tunable Parameters):
49673         Sort parameters alphabetically. Add comments for missing entries.
49674
49675 2013-03-17  David S. Miller  <davem@davemloft.net>
49676
49677         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49678
49679 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
49680
49681         [BZ #15283]
49682         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
49683         for arguments at most half maximum finite value.
49684         * math/libm-test.inc (j0_test): Add more tests.
49685         (j1_test): Likewise.
49686         (y0_test): Likewise.
49687         (y1_test): Likewise.
49688         * sysdeps/i386/fpu/libm-test-ulps: Update.
49689         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49690
49691         [BZ #14155]
49692         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
49693         1 / x and functions P and Q for arguments above 0x1p256L.
49694         (__ieee754_y0l): Likewise.
49695         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
49696         (__ieee754_y1l): Likewise.
49697         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
49698         (j1_test): Likewise.
49699         (y0_test): Likewise.
49700         (y1_test): Likewise.
49701
49702 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
49703
49704         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
49705         variable.
49706
49707 2013-03-15  Roland McGrath  <roland@hack.frob.com>
49708
49709         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
49710         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
49711         zero since it's initialized to EXEC_PAGESIZE.
49712
49713         * sysdeps/unix/sysv/linux/ldsodefs.h
49714         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
49715         * sysdeps/generic/ldsodefs.h: ... here.
49716
49717 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
49718
49719         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
49720
49721         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
49722         math/test-snan.c.
49723         * math/test-snan.c: Renamed from
49724         sysdeps/powerpc/fpu/test-powerpc-snan.c.
49725         * math/Makefile (tests): Add test-snan.
49726         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
49727         test-powerpc-snan.
49728
49729         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
49730         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
49731         functions.
49732         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
49733         __builtin_nan family of functions.
49734         * math/libm-test.inc (initialize): Initialize qnan_value with
49735         __builtin_nan family of functions.
49736         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
49737         Remove variables.
49738         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
49739         Remove functions.
49740         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
49741         storage class.  Initialize qNaN_var and sNaN_var with
49742         __builtin_nan and __builtin_nans families of functions,
49743         respectively.
49744
49745         * math/libm-test.inc (acosh_test): Also test with qNaN input.
49746         (sqrt_test): Remove duplicate test with qNaN input.
49747         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
49748         (round_test, signbit_test, significand_test): Note missing +/-Inf
49749         as well as qNaN tests.
49750
49751         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
49752         qNaN_var.  Fix a few strings, too.
49753         * math/libm-test.inc (nan_value): Rename to qnan_value.
49754         * math/gen-libm-test.pl (%beautify): Adjust to that.
49755         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
49756         * math/test-misc.c (main): Likewise.
49757         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
49758         to __qnan_bytes, and __qnan_union, respectively.
49759         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
49760         Likewise.
49761         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
49762         and lqnanval, respectively.
49763         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
49764         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
49765         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
49766         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
49767
49768         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
49769         * math/test-misc.c (main) [__x86_64__]: Enable test for long
49770         doubles.
49771
49772         * math/test-misc.c (main): Fix copy'n'pastos.
49773         * misc/tst-efgcvt.c (special): Likewise.
49774
49775         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
49776         Remove declarations.
49777
49778 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49779
49780         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
49781         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
49782         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
49783         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
49784
49785 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49786
49787         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
49788         macro to return vdso values correctly in IFUNC implementations.
49789         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
49790         Optimization by using IFUNC.
49791
49792 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49793             Richard Henderson  <rth@redhat.com>
49794             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
49795
49796         * Makefile.in (bench): New target.
49797         * NEWS: Mention the benchmark framework.
49798         * Rules (bench): Likewise.
49799         (binaries-bench): Generate binaries for functions to
49800         benchmark.
49801         * benchtests/Makefile: New makefile for benchmark tests.
49802         * benchtests/bench-skeleton.c: New skeleton file for benchmark
49803         programs.
49804         * benchtests/exp-inputs: New input file for EXP function.
49805         * benchtests/pow-inputs: New input file for POW function.
49806         * scripts/bench.pl: New script to generate source files for
49807         benchmark programs.
49808
49809 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49810
49811         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49812         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
49813         computations on mantissa.  Use macros for rounding and
49814         division.
49815         (denorm): Likewise.
49816         (__dbl_mp): Likewise.
49817         (add_magnitudes): Likewise.
49818         (sub_magnitudes): Likewise.
49819         (__mul): Likewise.
49820         (__sqr): Likewise.
49821         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49822         powers of two in terms of TWOPOW macro.
49823         (mp_no): Make type of mantissa as MANTISSA_T.
49824         [!RADIXI]: Define RADIXI.
49825         [!TWO52]: Define TWO52.
49826         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49827
49828         * manual/nptl.texi (cindex): Modify threads to pthreads.
49829
49830 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
49831
49832         * sysdeps/x86_64/preconfigure: Regenerated.
49833
49834 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
49835
49836         [BZ #14155]
49837         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
49838         0x1p28 and above.
49839         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
49840         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
49841         0x1p28 and above.
49842         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
49843         * math/libm-test.inc (j0_test): Do not allow one spurious
49844         underflow exception.
49845         (y1_test): Likewise.
49846
49847 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
49848
49849         * manual/Makefile (chapters): Add nptl.
49850         * manual/debug.texi (Debugging Support): Add link to Threads
49851         chapter.
49852         * manual/nptl.texi: New file.
49853
49854         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
49855
49856 2013-03-14  Petr Baudis  <pasky@ucw.cz>
49857
49858         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
49859         for non-NULL pointer before the memory validity test. Pointed
49860         out by Holger Brunck <holger.brunck@keymile.com>.
49861
49862 2013-03-13  Andreas Schwab  <schwab@suse.de>
49863
49864         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
49865         instead of .os.
49866
49867 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
49868
49869         * timezone/zic.c: Update from tzcode 2013b.
49870
49871 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
49872
49873         * manual/install.texi (Configuring and compiling):
49874         Mention i686 and i586.
49875         * INSTALL: Regenerate.
49876
49877 2013-03-12  Roland McGrath  <roland@hack.frob.com>
49878
49879         * sysdeps/init_array/elf-init.c: New file.
49880         * csu/elf-init.c
49881         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
49882         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
49883
49884         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
49885         __gmon_start__ as global, but as static with a .preinit_array pointer.
49886         * sysdeps/init_array/gmon-start.c: New file.  Use that.
49887         * sysdeps/init_array/crti.S: New file, empty except for comments.
49888         * sysdeps/init_array/crtn.S: Likewise.
49889
49890 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
49891
49892         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
49893         definining bcopy.
49894         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
49895         Remove Prefer_SSE_for_memop.
49896         * sysdeps/x86_64/multiarch/init-arch.h: Remove
49897         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
49898         HAS_PREFER_SSE_FOR_MEMOP.
49899         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
49900         memset-x86-64.
49901         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
49902         Remove bzero, memset ifunc support.
49903         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
49904         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
49905         * sysdeps/x86_64/multiarch/memset.S: Likewise.
49906         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
49907
49908 2013-03-11  Andreas Schwab  <schwab@suse.de>
49909
49910         [BZ #15234]
49911         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
49912         by SHLIB_COMPAT.
49913         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
49914         (GLIBC_2.16): Remove pthread_atfork.
49915
49916 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
49917
49918         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
49919         (ptestcases.h): Likewise.
49920
49921 2013-03-08  Roland McGrath  <roland@hack.frob.com>
49922
49923         * Makeconfig ($(common-objpfx)config.status): Depend on
49924         sysdeps/*/preconfigure{,.in} too.
49925
49926 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
49927
49928         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
49929         (__free_hook): Use void * instead of __malloc_ptr_t.
49930         (__malloc_hook): Likewise.
49931         (__realloc_hook): Likewise.
49932         (__memalign_hook): Likewise.
49933         (__after_morecore_hook): Likewise.
49934         * malloc/arena.c (save_malloc_hook): Likewise.
49935         (save_free_hook): Likewise.
49936         * malloc/hooks.c (malloc_hook_ini): Likewise.
49937         (realloc_hook_ini): Likewise.
49938         (memalign_hook_ini): Likewise.
49939         * malloc/malloc.c (malloc_hook_ini): Likewise.
49940         (realloc_hook_ini): Likewise.
49941         (memalign_hook_ini): Likewise.
49942         (__free_hook): Likewise.
49943         (__malloc_hook): Likewise.
49944         (__realloc_hook): Likewise.
49945         (__memalign_hook): Likewise.
49946         (__libc_malloc): Likewise.
49947         (__libc_free): Likewise.
49948         (__libc_realloc): Likewise.
49949         (__libc_memalign): Likewise.
49950         (__libc_valloc): Likewise.
49951         (__libc_pvalloc): Likewise.
49952         (__libc_calloc): Likewise.
49953         (__posix_memalign): Likewise.
49954         * malloc/morecore.c (__sbrk): Likewise.
49955         (__default_morecore): Likewise.
49956
49957         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
49958
49959         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
49960         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
49961         __malloc_ptrdiff_t.
49962
49963         * malloc/malloc.h (__malloc_size_t): Remove macro.
49964         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
49965         __malloc_size_t.
49966         (old_memalign_hook): Likewise.
49967         (old_realloc_hook): Likewise.
49968         (struct hdr): Likewise.
49969         (flood): Likewise.
49970         (mallochook): Likewise.
49971         (memalignhook): Likewise.
49972         (reallochook): Likewise.
49973         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
49974         (tr_old_realloc_hook): Likewise.
49975         (tr_old_memalign_hook): Likewise.
49976         (tr_mallochook): Likewise.
49977         (tr_reallochook): Likewise.
49978         (tr_memalignhook): Likewise.
49979
49980 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49981
49982         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
49983         default_ldbl_pack and using as default implementation.
49984         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
49985         implementation.
49986         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
49987         redundant definition.
49988         (ldbl_insert_mantissa): Likewise.
49989         (ldbl_canonicalize): Likewise.
49990         (ldbl_nearbyint): Likewise.
49991         (ldbl_pack): Rename to ldbl_pack_ppc.
49992         (ldbl_unpack): Rename to ldbl_unpack_ppc.
49993         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
49994         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
49995
49996 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
49997
49998         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
49999         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
50000         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
50001         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
50002         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
50003         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
50004         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
50005         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
50006
50007 2013-03-07  Andreas Jaeger  <aj@suse.de>
50008
50009         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
50010         bits/mman-linux.h.
50011
50012 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
50013
50014         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
50015         Include mpa.h and declare __MPEXP.
50016         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
50017         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50018         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50019         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
50020         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50021         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50022         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
50023
50024         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
50025         (__slowpow): Use long double EXPL and LOGL functions to
50026         compute POW.
50027         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50028         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50029         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
50030         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50031         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50032         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
50033
50034         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
50035         intermediate variable to calculate exponent.
50036         (__sqr): Likewise.
50037         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
50038         Likewise.
50039         (__sqr): Likewise.
50040
50041         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
50042         [!NO__SQR]: Define __sqr.
50043         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
50044         and NO__SQR.  Remove all code except __mul and __sqr.  Include
50045         sysdeps/ieee754/dbl-64/mpa.c.
50046         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
50047
50048         [BZ #12723]
50049         * posix/Makefile (tests): Add tst-pathconf.
50050         * posix/tst-pathconf.c: New test case.
50051         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
50052         _PC_PIPE_BUF.
50053         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
50054
50055 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
50056
50057         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
50058
50059 2013-03-06  Andreas Jaeger  <aj@suse.de>
50060
50061         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
50062         definition via __MAP_ANONYMOUS.
50063
50064         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
50065         it's not part of Linux headers.
50066
50067         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
50068         (MAP_HUGE_MASK): Define.
50069
50070         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50071         Define.
50072         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50073         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50074         Define.
50075         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50076         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50077         Define.
50078         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50079         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
50080         Define.
50081         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50082
50083         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
50084         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
50085         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
50086         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
50087         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
50088         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
50089
50090         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
50091         Handle f2fs.
50092
50093         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
50094         Handle f2fs and efivarfs.
50095
50096         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
50097         f2fs.
50098
50099         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
50100         (EFIVARFS_MAGIC): Add.
50101         (F2FS_LINK_MAX): Add.
50102
50103 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
50104
50105         * stdio-common/vfprintf.c: Replace __builtin_expect with
50106         __glibc_unlikely.
50107
50108 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
50109
50110         [BZ #13550]
50111         * sysdeps/generic/bp-sym.h: Remove file.
50112         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
50113         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
50114         <bp-sym.h> and <bp-asm.h>.
50115         (__longjmp): Don't use BP_SYM.
50116         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
50117         and <bp-asm.h>.
50118         (memcpy): Don't use BP_SYM.
50119         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
50120         <bp-sym.h> and <bp-asm.h>.
50121         (memcpy): Don't use BP_SYM.
50122         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
50123         <bp-asm.h>.
50124         (memcpy): Don't use BP_SYM.
50125         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
50126         <bp-asm.h>.
50127         (memset): Don't use BP_SYM.
50128         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50129         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50130         (__bzero): Don't use BP_SYM.
50131         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50132         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50133         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
50134         <bp-sym.h> and <bp-asm.h>.
50135         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50136         pointers.
50137         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
50138         <bp-sym.h> and <bp-asm.h>.
50139         (memcpy): Don't use BP_SYM.
50140         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
50141         <bp-sym.h> and <bp-asm.h>.
50142         (memset): Don't use BP_SYM.
50143         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50144         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50145         (__bzero): Don't use BP_SYM.
50146         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50147         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50148         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
50149         <bp-sym.h> and <bp-asm.h>.
50150         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50151         pointers.
50152         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
50153         <bp-sym.h> and <bp-asm.h>.
50154         (memcpy): Don't use BP_SYM.
50155         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
50156         <bp-sym.h> and <bp-asm.h>.
50157         (memset): Don't use BP_SYM.
50158         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50159         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50160         (__bzero): Don't use BP_SYM.
50161         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50162         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50163         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
50164         <bp-sym.h> and <bp-asm.h>.
50165         (__memchr): Don't use BP_SYM.
50166         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
50167         <bp-sym.h> and <bp-asm.h>.
50168         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50169         pointers.
50170         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
50171         <bp-sym.h> and <bp-asm.h>.
50172         (memcpy): Don't use BP_SYM.
50173         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
50174         <bp-sym.h> and <bp-asm.h>.
50175         (__mempcpy): Don't use BP_SYM.
50176         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
50177         <bp-sym.h> and <bp-asm.h>.
50178         (__memrchr): Don't use BP_SYM.
50179         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
50180         <bp-sym.h> and <bp-asm.h>.
50181         (memset): Don't use BP_SYM.
50182         (__bzero): Likewise.
50183         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
50184         <bp-sym.h> and <bp-asm.h>.
50185         (__rawmemchr): Don't use BP_SYM.
50186         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
50187         <bp-sym.h> and <bp-asm.h>.
50188         (__STRCMP): Don't use BP_SYM.
50189         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
50190         <bp-sym.h> and <bp-asm.h>.
50191         (strchr): Don't use BP_SYM.
50192         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
50193         <bp-sym.h> and <bp-asm.h>.
50194         (__strchrnul): Don't use BP_SYM.
50195         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
50196         <bp-sym.h> and <bp-asm.h>.
50197         (strlen): Don't use BP_SYM.
50198         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
50199         <bp-sym.h> and <bp-asm.h>.
50200         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50201         pointers.
50202         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
50203         <bp-sym.h> and <bp-asm.h>.
50204         (__strnlen): Don't use BP_SYM.
50205         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
50206         <bp-sym.h> and <bp-asm.h>.
50207         (__GI__setjmp): Don't use BP_SYM.
50208         (_setjmp): Likewise.
50209         (__sigsetjmp): Likewise.
50210         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
50211         (L(start_addresses)): Don't use BP_SYM.
50212         (_start): Likewise.
50213         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
50214         <bp-asm.h>.
50215         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
50216         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
50217         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50218         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50219         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
50220         <bp-asm.h>.
50221         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
50222         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
50223         about bounded pointers.
50224         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50225         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50226         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
50227         <bp-asm.h>.
50228         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50229         about bounded pointers.  Remove GKM FIXME comments.
50230         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50231         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
50232         <bp-asm.h>.
50233         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
50234         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
50235         Remove GKM FIXME comments.
50236         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50237         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50238         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
50239         <bp-asm.h>.
50240         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50241         about bounded pointers.  Remove GKM FIXME comment.
50242         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
50243         and <bp-asm.h>.
50244         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50245         pointers.
50246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
50247         <bp-sym.h> and <bp-asm.h>.
50248         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
50250         <bp-sym.h> and <bp-asm.h>.
50251         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50252         comment.
50253
50254 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
50255
50256         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
50257         call free(NULL).
50258
50259 2013-03-05  David S. Miller  <davem@davemloft.net>
50260
50261         * po/es.po: Update from translation team.
50262
50263 2013-03-05  Andreas Jaeger  <aj@suse.de>
50264
50265         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
50266         <bits/mman-linux.h>.
50267         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50268         is fine.
50269         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
50270         <bits/mman-linux.h> to end of file.
50271         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50272         is fine.
50273         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
50274         <bits/mman-linux.h> to end of file.
50275         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50276         is fine.
50277         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
50278         <bits/mman-linux.h> to end of file.
50279
50280         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
50281         (MCL_CURRENT, MCL_FUTURE): Define here.
50282
50283 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50284
50285         [BZ #15232]
50286         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
50287         attribute_hidden.
50288         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
50289
50290 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50291
50292         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
50293         fourth parameter needed for rt_sigprocmask syscall.
50294         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
50295         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
50296         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
50297         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
50298         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
50299         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
50300
50301 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
50302
50303         [BZ #13550]
50304         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
50305         comment about bounded pointers.
50306         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
50307         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
50308
50309 2013-03-04  Andreas Jaeger  <aj@suse.de>
50310
50311         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
50312         common definitions.
50313
50314         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
50315         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
50316         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
50317         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
50318         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
50319         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
50320
50321 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50322
50323         [BZ #15055]
50324         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
50325         __ieee754_sqrl instead of __sqrl.
50326
50327 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
50328
50329         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
50330         * sysdeps/powerpc/fpu_control.h: ... here.
50331         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
50332         * sysdeps/powerpc/bits/fenvinline.h: ... here.
50333         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
50334         * sysdeps/powerpc/bits/mathinline.h: ... here.
50335
50336 2013-03-01  Roland McGrath  <roland@hack.frob.com>
50337
50338         * elf/dl-hwcaps.c (_dl_important_hwcaps):
50339         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
50340         to just [NEED_DL_SYSINFO_DSO].
50341         * elf/dl-support.c: Likewise.
50342         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
50343         * elf/rtld.c (dl_main): Likewise.
50344         * elf/setup-vdso.h (setup_vdso): Likewise.
50345         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
50346         * sysdeps/unix/sysv/linux/dl-sysdep.c
50347         (_dl_discover_osversion): Likewise.
50348
50349 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
50350
50351         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
50352         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50353
50354 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
50355
50356         * NEWS: Mention libm performance improvements and non-x86 PI
50357         futex support.
50358
50359         * csu/libc-start.c (__pthread_initialize_minimal): Change
50360         function arguments.
50361         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50362
50363 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
50364
50365         [BZ #13550]
50366         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
50367         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
50368         <bp-sym.h> and <bp-asm.h>.
50369         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50370         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
50371         and <bp-asm.h>.
50372         (memcpy): Don't use BP_SYM.
50373         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
50374         <bp-asm.h>.
50375         (__mpn_add_n): Don't use BP_SYM.
50376         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
50377         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
50378         and <bp-asm.h>.
50379         (__mpn_addmul_1): Don't use BP_SYM.
50380         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50381         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
50382         <bp-sym.h>.
50383         (_setjmp): Don't use BP_SYM.
50384         (__novmx_setjmp): Likewise.
50385         (__GI__setjmp): Likewise.
50386         (__vmx_setjmp): Likewise.
50387         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
50388         <bp-sym.h>.
50389         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
50390         (__bzero): Don't use BP_SYM.
50391         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50392         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50393         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
50394         <bp-sym.h> and <bp-asm.h>.
50395         (memcpy): Don't use BP_SYM.
50396         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
50397         <bp-sym.h> and <bp-asm.h>.
50398         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50399         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
50400         <bp-sym.h> and <bp-asm.h>.
50401         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50402         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
50403         <bp-asm.h>.
50404         (__mpn_lshift): Don't use BP_SYM.
50405         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50406         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
50407         <bp-asm.h>.
50408         (memset): Don't use BP_SYM.
50409         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50410         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50411         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
50412         <bp-asm.h>.
50413         (__mpn_mul_1): Don't use BP_SYM.
50414         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50415         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
50416         <bp-sym.h> and <bp-asm.h>.
50417         (memcmp): Don't use BP_SYM.
50418         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
50419         <bp-sym.h> and <bp-asm.h>.
50420         (memcpy): Don't use BP_SYM.
50421         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
50422         <bp-sym.h> and <bp-asm.h>.
50423         (memset): Don't use BP_SYM.
50424         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
50425         <bp-sym.h> and <bp-asm.h>.
50426         (strncmp): Don't use BP_SYM.
50427         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
50428         <bp-sym.h> and <bp-asm.h>.
50429         (memcpy): Don't use BP_SYM.
50430         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
50431         <bp-sym.h> and <bp-asm.h>.
50432         (memset): Don't use BP_SYM.
50433         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
50434         <bp-sym.h> and <bp-asm.h>.
50435         (__memchr): Don't use BP_SYM.
50436         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
50437         <bp-sym.h> and <bp-asm.h>.
50438         (memcmp): Don't use BP_SYM.
50439         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
50440         <bp-sym.h> and <bp-asm.h>.
50441         (memcpy): Don't use BP_SYM.
50442         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
50443         <bp-sym.h> and <bp-asm.h>.
50444         (__mempcpy): Don't use BP_SYM.
50445         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
50446         <bp-sym.h> and <bp-asm.h>.
50447         (__memrchr): Don't use BP_SYM.
50448         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
50449         <bp-sym.h> and <bp-asm.h>.
50450         (memset): Don't use BP_SYM.
50451         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
50452         <bp-sym.h> and <bp-asm.h>.
50453         (__rawmemchr): Don't use BP_SYM.
50454         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
50455         <bp-sym.h> and <bp-asm.h>.
50456         (__STRCMP): Don't use BP_SYM.
50457         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
50458         <bp-sym.h> and <bp-asm.h>.
50459         (strchr): Don't use BP_SYM.
50460         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
50461         <bp-sym.h> and <bp-asm.h>.
50462         (__strchrnul): Don't use BP_SYM.
50463         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
50464         <bp-sym.h> and <bp-asm.h>.
50465         (strlen): Don't use BP_SYM.
50466         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
50467         <bp-sym.h> and <bp-asm.h>.
50468         (strncmp): Don't use BP_SYM.
50469         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
50470         <bp-sym.h> and <bp-asm.h>.
50471         (__strnlen): Don't use BP_SYM.
50472         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
50473         <bp-asm.h>.
50474         (__mpn_rshift): Don't use BP_SYM.
50475         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50476         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
50477         <bp-sym.h> and <bp-asm.h>.
50478         (__sigsetjmp): Don't use BP_SYM.
50479         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
50480         (L(start_addresses)): Don't use BP_SYM.
50481         (_start): Likewise.
50482         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
50483         <bp-asm.h>.
50484         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
50485         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50486         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50487         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
50488         <bp-asm.h>.
50489         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
50490         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50491         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50492         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
50493         <bp-asm.h>.
50494         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50495         comments.
50496         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50497         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
50498         <bp-asm.h>.
50499         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
50500         FIXME comments.
50501         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50502         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50503         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
50504         <bp-asm.h>.
50505         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50506         comment.
50507         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
50508         and <bp-asm.h>.
50509         (strncmp): Don't use BP_SYM,
50510         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
50511         <bp-asm.h>.
50512         (__mpn_sub_n): Don't use BP_SYM.
50513         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50514         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
50515         and <bp-asm.h>.
50516         (__mpn_submul_1): Don't use BP_SYM.
50517         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
50519         <bp-sym.h> and <bp-asm.h>.
50520         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50521         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
50522         <bp-sym.h> and <bp-asm.h>.
50523         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50524         comment.
50525
50526 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
50527
50528         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
50529         Use ZK to minimize writes to Z.
50530         (sub_magnitudes): Simplify code a bit.
50531         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
50532         Use ZK to minimize writes to Z.
50533         (sub_magnitudes): Simplify code a bit.
50534
50535 2013-02-27  Roland McGrath  <roland@hack.frob.com>
50536
50537         * csu/gmon-start.c: Add special exception to license text.
50538
50539 2013-02-27  Richard Henderson  <rth@redhat.com>
50540
50541         * scripts/config.guess: Update from config.git.
50542         * scripts/config.sub: Likewise.
50543
50544 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
50545
50546         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
50547
50548         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
50549
50550         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
50551
50552         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
50553
50554         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
50555
50556 2013-02-26  Roland McGrath  <roland@hack.frob.com>
50557
50558         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
50559         [$(build-shared = yes].
50560
50561 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50562
50563         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
50564         (__mul): Reduce iterations for calculating mantissa.
50565
50566         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
50567         MPTWO.
50568         (__mpranred): Likewise.
50569
50570         [BZ #15160]
50571         * malloc/memusagestat.c (main): Draw graphs for heap and stack
50572         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
50573
50574 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
50575
50576         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
50577         Define __attribute__.
50578
50579 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50580
50581         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
50582         unused.
50583         * posix/regex_internal.h (__attribute): Remove.
50584         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
50585         (re_string_context_at): Likewise.
50586         (bitset_not): Use __attribute__ and mark function as possibly
50587         unused.
50588         (bitset_merge): Likewise.
50589         (bitset_mask): Likewise.
50590         (re_string_char_size_at): Likewise.
50591         (re_string_wchar_at): Likewise.
50592         (re_string_elem_size_at): Likewise.
50593
50594 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
50595
50596         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
50597         code.
50598         (cc32): Likewise.
50599
50600         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
50601         (__acr): Likewise.
50602         (__cpy): Likewise.
50603         (norm): Likewise.
50604         (denorm): Likewise.
50605         (__dbl_mp): Likewise.
50606         (add_magnitudes): Likewise.
50607         (sub_magnitudes): Likewise.
50608         (__mul): Likewise.
50609         (__inv): Likewise.
50610
50611         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
50612         style.
50613
50614         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
50615         style.
50616
50617         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
50618         code.
50619
50620         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
50621         up changes with default code.
50622         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
50623         Likewise.
50624
50625 2013-02-24  Allan McRae  <allan@archlinux.org>
50626
50627         * manual/socket.texi (The Internet Namespace): Order menu items
50628         to match that in the file.
50629
50630         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
50631         node listing of the info page menu.
50632
50633 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
50634
50635         [BZ #13550]
50636         * sysdeps/i386/bp-asm.h: Remove file.
50637         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
50638         (PARMS): Do not use macros from bp-asm.h.
50639         (S1): Likewise.
50640         (S2): Likewise.
50641         (SIZE): Likewise.
50642         (__mpn_add_n): Do not use BP_SYM
50643         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
50644         "bp-asm.h".
50645         (PARMS): Do not use macros from bp-asm.h.
50646         (S1): Likewise.
50647         (SIZE): Likewise.
50648         (__mpn_addmul_1): Do not use BP_SYM
50649         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
50650         "bp-asm.h".
50651         (PARMS): Do not use macros from bp-asm.h.
50652         (SIGMSK): Likewise.
50653         (_setjmp): Likewise.  Do not use BP_SYM.
50654         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
50655         "bp-asm.h".
50656         (PARMS): Do not use macros from bp-asm.h.
50657         (SIGMSK): Likewise.
50658         (setjmp): Likewise.  Do not use BP_SYM.
50659         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
50660         "bp-asm.h".
50661         (PARMS): Do not use macros from bp-asm.h.
50662         (__frexp): Do not use BP_SYM.
50663         (frexp): Likewise.
50664         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
50665         "bp-asm.h".
50666         (PARMS): Do not use macros from bp-asm.h.
50667         (__frexpf): Do not use BP_SYM.
50668         (frexpf): Likewise.
50669         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
50670         "bp-asm.h".
50671         (PARMS): Do not use macros from bp-asm.h.
50672         (__frexpl): Do not use BP_SYM.
50673         (frexpl): Likewise.
50674         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
50675         "bp-asm.h".
50676         (PARMS): Do not use macros from bp-asm.h.
50677         (__remquo): Do not use BP_SYM.
50678         (remquo): Likewise.
50679         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
50680         "bp-asm.h".
50681         (PARMS): Do not use macros from bp-asm.h.
50682         (__remquof): Do not use BP_SYM.
50683         (remquof): Likewise.
50684         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
50685         "bp-asm.h".
50686         (PARMS): Do not use macros from bp-asm.h.
50687         (__remquol): Do not use BP_SYM.
50688         (remquol): Likewise.
50689         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
50690         "bp-asm.h".
50691         (PARMS): Do not use macros from bp-asm.h.
50692         (DEST): Likewise.
50693         (SRC): Likewise.
50694         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
50695         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
50696         "bp-asm.h".
50697         (PARMS): Do not use macros from bp-asm.h.
50698         (strlen): Do not use BP_SYM.
50699         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
50700         "bp-asm.h".
50701         (PARMS): Do not use macros from bp-asm.h.
50702         (S1): Likewise.
50703         (S2): Likewise.
50704         (SIZE): Likewise.
50705         (__mpn_add_n): Do not use BP_SYM.
50706         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
50707         "bp-asm.h".
50708         (PARMS): Do not use macros from bp-asm.h.
50709         (S1): Likewise.
50710         (SIZE): Likewise.
50711         (__mpn_addmul_1): Do not use BP_SYM.
50712         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
50713         weak_alias.
50714         (bzero): Likewise.
50715         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
50716         "bp-asm.h".
50717         (PARMS): Do not use macros from bp-asm.h.
50718         (S): Likewise.
50719         (SIZE): Likewise.
50720         (__mpn_lshift): Do not use BP_SYM.
50721         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
50722         "bp-asm.h".
50723         (PARMS): Do not use macros from bp-asm.h.
50724         (DEST): Likewise.
50725         (SRC): Likewise.
50726         (LEN): Likewise.
50727         (memcpy): Likewise.  Do not use BP_SYM.
50728         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
50729         libc_hidden_def and weak_alias.
50730         (mempcpy): Do not use BP_SYM in weak_alias.
50731         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
50732         "bp-asm.h".
50733         (PARMS): Do not use macros from bp-asm.h.
50734         (DEST): Likewise.
50735         (LEN): Likewise.
50736         [!BZERO_P] (CHR): Likewise.
50737         (memset): Likewise.  Do not use BP_SYM.
50738         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
50739         "bp-asm.h".
50740         (PARMS): Do not use macros from bp-asm.h.
50741         (S1): Likewise.
50742         (SIZE): Likewise.
50743         (__mpn_mul_1): Do not use BP_SYM.
50744         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
50745         "bp-asm.h".
50746         (PARMS): Do not use macros from bp-asm.h.
50747         (S): Likewise.
50748         (SIZE): Likewise.
50749         (__mpn_rshift): Do not use BP_SYM.
50750         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
50751         "bp-asm.h".
50752         (PARMS): Do not use macros from bp-asm.h.
50753         (STR): Likewise.
50754         (CHR): Likewise.
50755         (strchr): Likewise.  Do not use BP_SYM.
50756         (index): Do not use BP_SYM in weak_alias.
50757         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
50758         "bp-asm.h".
50759         (PARMS): Do not use macros from bp-asm.h.
50760         (DEST): Likewise.
50761         (SRC): Likewise.
50762         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
50763         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
50764         "bp-asm.h".
50765         (PARMS): Do not use macros from bp-asm.h.
50766         (strlen): Do not use BP_SYM.
50767         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
50768         "bp-asm.h".
50769         (PARMS): Do not use macros from bp-asm.h.
50770         (S1): Likewise.
50771         (S2): Likewise.
50772         (SIZE): Likewise.
50773         (__mpn_sub_n): Do not use BP_SYM.
50774         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
50775         "bp-asm.h".
50776         (PARMS): Do not use macros from bp-asm.h.
50777         (S1): Likewise.
50778         (SIZE): Likewise.
50779         (__mpn_submul_1): Do not use BP_SYM.
50780         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
50781         "bp-asm.h".
50782         (PARMS): Do not use macros from bp-asm.h.
50783         (S1): Likewise.
50784         (S2): Likewise.
50785         (SIZE): Likewise.
50786         (__mpn_add_n): Do not use BP_SYM.
50787         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
50788         weak_alias.
50789         (bzero): Likewise.
50790         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
50791         "bp-asm.h".
50792         (PARMS): Do not use macros from bp-asm.h.
50793         (BLK2): Likewise.
50794         (LEN): Likewise.
50795         (memcmp): Do not use BP_SYM.
50796         (bcmp): Do not use BP_SYM in weak_alias.
50797         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
50798         "bp-asm.h".
50799         (PARMS): Do not use macros from bp-asm.h.
50800         (DEST): Likewise.
50801         (SRC): Likewise.
50802         (LEN): Likewise.
50803         (memcpy): Likewise.  Do not use BP_SYM.
50804         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
50805         "bp-asm.h".
50806         (PARMS): Do not use macros from bp-asm.h.
50807         (DEST): Likewise.
50808         (SRC): Likewise.
50809         (LEN): Likewise.
50810         (memmove): Likewise.  Do not use BP_SYM.
50811         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
50812         "bp-asm.h".
50813         (PARMS): Do not use macros from bp-asm.h.
50814         (DEST): Likewise.
50815         (SRC): Likewise.
50816         (LEN): Likewise.
50817         (__mempcpy): Likewise.  Do not use BP_SYM.
50818         (mempcpy): Do not use BP_SYM in weak_alias.
50819         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
50820         "bp-asm.h".
50821         (PARMS): Do not use macros from bp-asm.h.
50822         (DEST): Likewise.
50823         (LEN): Likewise.
50824         [!BZERO_P] (CHR): Likewise.
50825         (memset): Likewise.  Do not use BP_SYM.
50826         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
50827         "bp-asm.h".
50828         (PARMS): Do not use macros from bp-asm.h.
50829         (STR2): Likewise.
50830         (strcmp): Do not use BP_SYM.
50831         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
50832         "bp-asm.h".
50833         (PARMS): Do not use macros from bp-asm.h.
50834         (STR): Likewise.
50835         (DELIM): Likewise.
50836         [USE_AS_STRTOK_R] (SAVE): Likewise.
50837         (FUNCTION): Likewise.  Do not use BP_SYM.
50838         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
50839         aliases.
50840         (strtok_r): Likewise.
50841         (__GI___strtok_r): Likewise.
50842         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
50843         (PARMS): Do not use macros from bp-asm.h.
50844         (S): Likewise.
50845         (SIZE): Likewise.
50846         (__mpn_lshift): Do not use BP_SYM.
50847         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
50848         (PARMS): Do not use macros from bp-asm.h.
50849         (STR): Likewise.
50850         (CHR): Likewise.
50851         (__memchr): Do not use BP_SYM.
50852         (memchr): Do not use BP_SYM in weak_alias.
50853         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
50854         (PARMS): Do not use macros from bp-asm.h.
50855         (BLK2): Likewise.
50856         (LEN): Likewise.
50857         (memcmp): Do not use BP_SYM.
50858         (bcmp): Do not use BP_SYM in weak_alias.
50859         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
50860         (PARMS): Do not use macros from bp-asm.h.
50861         (S1): Likewise.
50862         (SIZE): Likewise.
50863         (__mpn_mul_1): Do not use BP_SYM.
50864         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
50865         "bp-asm.h".
50866         (PARMS): Do not use macros from bp-asm.h.
50867         (STR): Likewise.
50868         (CHR): Likewise.
50869         (__rawmemchr): Do not use BP_SYM.
50870         (rawmemchr): Do not use BP_SYM in weak_alias.
50871         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
50872         (PARMS): Do not use macros from bp-asm.h.
50873         (S): Likewise.
50874         (SIZE): Likewise.
50875         (__mpn_rshift): Do not use BP_SYM.
50876         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
50877         (PARMS): Do not use macros from bp-asm.h.
50878         (SIGMSK): Likewise.
50879         (__sigsetjmp): Likewise.  Do not use BP_SYM.
50880         * sysdeps/i386/start.S: Do not include "bp-sym.h".
50881         (_start): Do not use BP_SYM.
50882         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
50883         (PARMS): Do not use macros from bp-asm.h.
50884         (DEST): Likewise.
50885         (SRC): Likewise.
50886         (__stpcpy): Likewise.  Do not use BP_SYM.
50887         (stpcpy): Do not use BP_SYM in weak_alias.
50888         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
50889         "bp-asm.h".
50890         (PARMS): Do not use macros from bp-asm.h.
50891         (DEST): Likewise.
50892         (SRC): Likewise.
50893         (LEN): Likewise.
50894         (__stpncpy): Likewise.  Do not use BP_SYM.
50895         (stpncpy): Do not use BP_SYM in weak_alias.
50896         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
50897         (PARMS): Do not use macros from bp-asm.h.
50898         (STR): Likewise.
50899         (CHR): Likewise.
50900         (strchr): Likewise.  Do not use BP_SYM.
50901         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
50902         "bp-asm.h".
50903         (PARMS): Do not use macros from bp-asm.h.
50904         (STR): Likewise.
50905         (CHR): Likewise.
50906         (__strchrnul): Likewise.  Do not use BP_SYM.
50907         (strchrnul): Do not use BP_SYM in weak_alias.
50908         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
50909         "bp-asm.h".
50910         (PARMS): Do not use macros from bp-asm.h.
50911         (STOP): Likewise.
50912         (strcspn): Do not use BP_SYM.
50913         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
50914         "bp-asm.h".
50915         (PARMS): Do not use macros from bp-asm.h.
50916         (STR): Likewise.
50917         (STOP): Likewise.
50918         (strpbrk): Likewise.  Do not use BP_SYM.
50919         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
50920         "bp-asm.h".
50921         (PARMS): Do not use macros from bp-asm.h.
50922         (STR): Likewise.
50923         (CHR): Likewise.
50924         (strrchr): Likewise.  Do not use BP_SYM.
50925         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
50926         (PARMS): Do not use macros from bp-asm.h.
50927         (SKIP): Likewise.
50928         (strspn): Do not use BP_SYM.
50929         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
50930         (PARMS): Do not use macros from bp-asm.h.
50931         (STR): Likewise.
50932         (DELIM): Likewise.
50933         (SAVE): Likewise.
50934         (FUNCTION): Likewise.  Do not use BP_SYM.
50935         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
50936         aliases.
50937         (strtok_r): Likewise.
50938         (__GI___strtok_r): Likewise.
50939         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
50940         (PARMS): Do not use macros from bp-asm.h.
50941         (S1): Likewise.
50942         (S2): Likewise.
50943         (SIZE): Likewise.
50944         (__mpn_sub_n): Do not use BP_SYM.
50945         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
50946         "bp-asm.h".
50947         (PARMS): Do not use macros from bp-asm.h.
50948         (S1): Likewise.
50949         (SIZE): Likewise.
50950         (__mpn_submul_1): Do not use BP_SYM.
50951         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
50952         <bp-sym.h>.
50953         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
50954         and <bp-asm.h>.
50955         (PARMS): Do not use macros from bp-asm.h.
50956         (FLAGS): Likewise.
50957         (PTID): Likewise.
50958         (TLS): Likewise.
50959         (CTID): Likewise.
50960         (__clone): Do not use BP_SYM.
50961         (clone): Do not use BP_SYM in weak_alias.
50962         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
50963         and <bp-asm.h>.
50964         (PARMS): Do not use macros from bp-asm.h.
50965         (LEN): Likewise.
50966         (__mmap64): Do not use BP_SYM.
50967         (mmap64): Do not use BP_SYM in weak_alias.
50968         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
50969         <bp-sym.h> and <bp-asm.h>.
50970         (PARMS): Do not use macros from bp-asm.h.
50971         (__posix_fadvise64_l64): Do not use BP_SYM.
50972         * sysdeps/unix/sysv/linux/i386/semtimedop.S
50973         (PARMS): Do not use macros from bp-asm.h.
50974         (NSOPS): Likewise.
50975         (semtimedop): Do not use BP_SYM.
50976         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
50977         and <bp-asm.h>.
50978
50979 2013-02-21  Allan McRae  <allan@archlinux.org>
50980
50981         * manual/message.texi (Charset conversion in gettext):
50982         Move @end statement to beginning of line.
50983
50984 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50985
50986         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
50987         static.
50988         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
50989         Likewise.
50990
50991         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
50992         (denorm): Likewise.
50993         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
50994         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
50995
50996 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50997
50998         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
50999         tail-call to the resolved function if pltexit isn't needed.
51000
51001 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51002
51003         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
51004         or Y being zero as being unlikely.
51005         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
51006         Likewise.
51007
51008 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
51009
51010         * manual/nss.texi (System Databases and Name Service Switch):
51011         Remove frobnicate @pxref.
51012
51013 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51014
51015         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51016         __attribute__ ((unused)) to __attribute__ ((__unused__)).
51017
51018 2013-02-20  Petr Machata  <pmachata@redhat.com>
51019
51020         * elf/elf.h (R_ARM_TARGET1): New macro.
51021         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
51022         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
51023         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
51024         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
51025         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
51026         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
51027         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
51028         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
51029         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
51030         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
51031         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
51032         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
51033         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
51034         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
51035         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
51036         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
51037         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
51038         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
51039         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
51040         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
51041         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
51042         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
51043         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
51044         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
51045         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
51046         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
51047         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
51048         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
51049         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
51050         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
51051         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
51052         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
51053         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
51054         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
51055         (R_ARM_THM_GOT_BREL12): Likewise.
51056         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
51057         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
51058         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
51059         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
51060         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
51061         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
51062         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
51063         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
51064         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
51065
51066 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51067
51068         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51069         __attribute_used__ to __attribute__ ((unused)).
51070
51071 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
51072
51073         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
51074         powerpc mpa.c.
51075         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
51076         comment formatting.
51077         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
51078
51079 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
51080
51081         [BZ #13550]
51082         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
51083         Remove macro.
51084         (ENTER): Remove both macro definitions.
51085         (LEAVE): Likewise.
51086         (CHECK_BOUNDS_LOW): Likewise.
51087         (CHECK_BOUNDS_HIGH): Likewise.
51088         (CHECK_BOUNDS_BOTH): Likewise.
51089         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
51090         (RETURN_BOUNDED_POINTER): Likewise.
51091         (RETURN_NULL_BOUNDED_POINTER): Likewise.
51092         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
51093         (POP_ERRNO_LOCATION_RETURN): Likewise.
51094         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
51095         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51096         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
51097         macros.
51098         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51099         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
51100         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
51101         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
51102         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
51103         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
51104         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
51105         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
51106         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
51107         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
51108         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
51109         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
51110         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51111         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
51112         removed macros.
51113         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51114         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
51115         macros.
51116         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51117         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
51118         * sysdeps/i386/i586/memset.S (memset): Likewise.
51119         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
51120         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51121         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
51122         macros.
51123         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51124         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
51125         Change uses of L(2) to L(out).
51126         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
51127         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
51128         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
51129         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51130         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
51131         removed macros.
51132         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51133         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
51134         macros.
51135         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51136         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
51137         (RETURN): Do not use macro LEAVE.
51138         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
51139         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
51140         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
51141         * sysdeps/i386/i686/memset.S (memset): Likewise.
51142         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
51143         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
51144         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51145         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
51146         Likewise.
51147         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51148         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
51149         L(1_2) and L(1_3) into L(1).
51150         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51151         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
51152         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51153         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
51154         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51155         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
51156         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
51157         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51158         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
51159         macros.
51160         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
51161         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51162         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
51163         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
51164         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
51165         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51166         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
51167         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
51168         * sysdeps/i386/strcspn.S (strcspn): Likewise.
51169         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
51170         * sysdeps/i386/strrchr.S (strrchr): Likewise.
51171         * sysdeps/i386/strspn.S (strspn): Likewise.
51172         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
51173         conditional code.
51174         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51175         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
51176         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51177         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
51178         L(1_3) into L(1_1).
51179         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
51180         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51181         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
51182         macros.
51183         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51184
51185 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
51186
51187         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
51188         macro.
51189
51190 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
51191
51192         * math/atest-exp.c (exp_mpn): Remove ROUND.
51193         * math/atest-exp2.c (exp_mpn): Likewise.
51194         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
51195
51196         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
51197         * stdlib/tst-tls-atexit-lib.c: Likewise.
51198         * stdlib/tst-tls-atexit.c: Likewise.
51199
51200 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51201
51202         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
51203         and __attribute_alloc_size__.
51204
51205 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51206
51207         * include/programs/xmalloc.h: Change __attribute_alloc_size to
51208         __attribute_alloc_size__.
51209         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
51210         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
51211
51212 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51213
51214         * include/programs/xmalloc.h: New file.
51215         * catgets/gencat.c: Include it.
51216         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
51217         * elf/pldd.c: Likewise.
51218         * iconv/iconv_charmap.c: Likewise.
51219         * iconv/iconvconfig.c: Likewise.
51220         * iconv/strtab.c: Likewise.
51221         * locale/programs/locale.c: Likewise.
51222         * locale/programs/localedef.h: Likewise.
51223         * locale/programs/simple-hash.c: Likewise.
51224         * nscd/nscd.h: Likewise.
51225         * nss/makedb.c: Likewise.
51226         * sysdeps/generic/ldconfig.h: Likewise.
51227
51228 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
51229
51230         * Versions.def: Add GLIBC_2.18.
51231         * include/link.h (struct link_map): New member l_tls_dtor_count.
51232         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
51233         (__call_tls_dtors): Likewise.
51234         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
51235         __cxa_thread_atexit_impl.
51236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
51237         Likewise.
51238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
51239         Likewise.
51240         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
51241         Likewise.
51242         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
51243         Likewise.
51244         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
51245         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
51246         Likewise.
51247         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
51248         Likewise.
51249         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
51250         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
51251         Likewise.
51252         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
51253         (tests): Add test case tst-tls-atexit.
51254         (modules-names): Add shared library for tst-tls-atexit.
51255         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
51256         (GLIBC_PRIVATE): Add __call_tls_dtors.
51257         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
51258         for libstdc++.
51259         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
51260         * stdlib/tst-tls-atexit.c: New test case.
51261         * stdlib/tst-tls-atexit-lib.c: New test case.
51262
51263         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
51264
51265         * elf/Versions (ld): Add _dl_find_dso_for_object.
51266         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
51267         * elf/dl-open.c (_dl_find_dso_for_object): New function.
51268         (dl_open_worker): Use _dl_find_dso_for_object.
51269         * elf/dl-sym.c (do_sym): Likewise.
51270         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
51271
51272 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51273
51274         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
51275         Syntactic changes only.
51276         (_dl_runtime_profile): Do a tail-call to the resolved function.
51277
51278 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
51279
51280         [BZ #13550]
51281         * sysdeps/x86_64/bp-asm.h: Remove file.
51282         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
51283         <bp-sym.h> and <bp-asm.h>.
51284         (__clone): Do not use BP_SYM.
51285         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
51286         <bp-sym.h> and <bp-asm.h>.
51287         * sysdeps/unix/x86_64/sysdep.S: Likewise.
51288         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
51289         "bp-asm.h".
51290         (_setjmp): Do not use BP_SYM.
51291         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
51292         "bp-asm.h".
51293         (setjmp): Do not use BP_SYM.
51294         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
51295         libc_hidden_def.
51296         (mempcpy): Do not use BP_SYM in weak_alias.
51297         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
51298         "bp-asm.h".
51299         (strchr): Do not use BP_SYM.
51300         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
51301         "bp-asm.h".
51302         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
51303         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
51304         (_start): Do not use BP_SYM.
51305         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
51306         "bp-asm.h".
51307         (strcat): Do not use BP_SYM.
51308         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
51309         "bp-asm.h".
51310         (STRCMP): Do not use BP_SYM.
51311         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
51312         "bp-asm.h".
51313         (STRCPY): Do not use BP_SYM.
51314         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
51315         "bp-asm.h".
51316         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
51317         "bp-asm.h".
51318         (FUNCTION): Do not use BP_SYM.
51319         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
51320         weak_alias.
51321         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
51322
51323 2013-02-17  Andreas Jaeger  <aj@suse.de>
51324
51325         * time/Versions: Sort entries.
51326         * string/Versions: Likewise.
51327         * resolv/Versions: Likewise.
51328         * posix/Versions: Likewise.
51329         * iconv/Versions: Likewise.
51330         * elf/Versions: Likewise.
51331         * wcsmbs/Versions: Likewise.
51332
51333 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51334
51335         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
51336         loop termination condition.
51337
51338         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
51339         variable to calculate EZ.
51340         (__sqr): Likewise.
51341
51342         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
51343         the lower precision input.
51344
51345 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
51346
51347         [BZ #13550]
51348         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
51349         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
51350         (run-via-rtld-prefix): Do not handle %-bp tests.
51351         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
51352         (all-object-suffixes): Remove .ob.
51353         (bppfx): Remove variable.
51354         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
51355         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
51356         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
51357         [$(build-bounded) = yes] (libtype.ob): Likewise.
51358         * Makerules (elide-routines.ob): Remove variable.
51359         (do-tests-clean): Do not handle *-bp.out.
51360         (common-mostlyclean): Do not handle *-bp and *-bp.out.
51361         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
51362         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
51363         (tests): Do not include $(tests-bp.out).
51364         (xtests): Do not include $(xtests-bp.out).
51365         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
51366         [$(build-bounded) = yes] ($(addprefix
51367         $(objpfx),$(binaries-bounded))): Remove rule.
51368         ($(objpfx)%-bp.out): Remove rule.
51369         * config.make.in (build-bounded): Remove variable.
51370         * crypt/Makefile [$(build-bounded) = yes]
51371         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
51372         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
51373         append to variable.
51374         [$(build-bounded) = yes] (install-lib): Likewise.
51375         [$(build-bounded) = yes] (generated): Likewise.
51376         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
51377         Remove rule.
51378         * intl/Makefile [$(build-bounded) = yes]
51379         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
51380         * math/Makefile [$(build-bounded) = yes]
51381         ($(tests:%=$(objpfx)%-bp): Likewise.
51382         * misc/Makefile [$(build-bounded) = yes]
51383         ($(objpfx)tst-tsearch-bp): Likewise.
51384         * nptl/Makeconfig (bounded-thread-library): Remove variable.
51385         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
51386         Remove dependency.
51387         * string/Makefile (o-objects.ob): Remove variable.
51388         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
51389         (CFLAGS-.ob): Remove variable.
51390         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
51391         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
51392         both definitions of variable.
51393         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
51394         (ASFLAGS-.ob): Remove variable.
51395
51396 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
51397
51398         [BZ #13550]
51399         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
51400         Remove __BOUNDED_POINTERS__ from condition.
51401         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
51402         * string/bits/string2.h [!__NO_STRING_INLINES &&
51403         !__BOUNDED_POINTERS__]: Likewise.
51404         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
51405         Likewise.
51406         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
51407         Remove conditional code.
51408         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
51409         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
51410         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
51411         condition.
51412
51413         [BZ #13550]
51414         * csu/libc-start.c: Do not include <bp-sym.h>.
51415         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
51416         * elf/dl-open.c: Do not include <bp-sym.h>.
51417         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
51418         * math/fegetenv.c: Do not include <bp-sym.h>.
51419         (fegetenv): Do not use BP_SYM in versioned symbols.
51420         * nptl/sysdeps/pthread/bits/libc-lockP.h
51421         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
51422         <bp-sym.h>.
51423         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51424         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
51425         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51426         (__pthread_mutex_destroy): Likewise.
51427         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51428         (__pthread_mutex_lock): Likewise.
51429         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51430         (__pthread_mutex_trylock): Likewise.
51431         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51432         (__pthread_mutex_unlock): Likewise.
51433         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51434         (__pthread_mutexattr_init): Likewise.
51435         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51436         (__pthread_mutexattr_destroy): Likewise.
51437         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51438         (__pthread_mutexattr_settype): Likewise.
51439         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51440         (__pthread_rwlock_init): Likewise.
51441         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51442         (__pthread_rwlock_destroy): Likewise.
51443         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51444         (__pthread_rwlock_rdlock): Likewise.
51445         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51446         (__pthread_rwlock_tryrdlock): Likewise.
51447         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51448         (__pthread_rwlock_wrlock): Likewise.
51449         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51450         (__pthread_rwlock_trywrlock): Likewise.
51451         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51452         (__pthread_rwlock_unlock): Likewise.
51453         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51454         (__pthread_key_create): Likewise.
51455         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51456         (__pthread_setspecific): Likewise.
51457         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51458         (__pthread_getspecific): Likewise.
51459         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
51460         Likewise.
51461         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51462         (_pthread_cleanup_push_defer): Likewise.
51463         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51464         (_pthread_cleanup_pop_restore): Likewise.
51465         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51466         (pthread_setcancelstate): Likewise.
51467         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
51468         <bp-sym.h>.
51469         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
51470         (memchr): Do not use BP_SYM in weak_alias.
51471         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
51472         (fegetenv): Do not use BP_SYM in versioned symbols.
51473         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
51474         (fesetenv): Do not use BP_SYM in versioned symbols.
51475         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51476         (feupdateenv): Do not use BP_SYM in versioned symbols.
51477         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51478         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51479         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
51480         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
51481         (open64): Do not use BP_SYM in weak_alias.
51482         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
51483         (fegetenv): Do not use BP_SYM in versioned symbols.
51484         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
51485         (fesetenv): Do not use BP_SYM in versioned symbols.
51486         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51487         (feupdateenv): Do not use BP_SYM in versioned symbols.
51488         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
51489         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
51490         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
51491         (feraiseexcept): Do not use BP_SYM in versioned symbols.
51492         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51493         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51494         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
51495         <bp-sym.h>.
51496         (__libc_start_main): Do not use BP_SYM.
51497
51498 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
51499
51500         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
51501         redundant return line.
51502         (norm): Likewise.
51503         (denorm): Likewise.
51504         (dbl_mp): Likewise.
51505         (sub_magnitudes): Likewise.
51506         (__add): Likewise.
51507         (__sub): Likewise.
51508         (__mul): Likewise.
51509         (__inv): Likewise.
51510         (__dvd): Likewise.
51511         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
51512         (norm): Likewise.
51513         (denorm): Likewise.
51514         (dbl_mp): Likewise.
51515         (sub_magnitudes): Likewise.
51516         (__add): Likewise.
51517         (__sub): Likewise.
51518         (__mul): Likewise.
51519         (__inv): Likewise.
51520         (__dvd): Likewise.
51521
51522         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
51523         instead of __mul.
51524         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
51525         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
51526         (cc32): Likewise.
51527
51528         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
51529         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
51530         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
51531         of __mul for squares.
51532         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
51533         function
51534         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
51535         Likewise.
51536         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
51537         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
51538
51539 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
51540
51541         [BZ #13550]
51542         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
51543         code.
51544         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
51545         prototype or function definition.  Rename ubp_* variables and
51546         parameters.  Remove argv definitions conditional on
51547         [__BOUNDED_POINTERS__].
51548         * debug/backtrace.c (__backtrace): Do not use __unbounded.
51549         * elf/dl-runtime.c (_dl_fixup): Likewise.
51550         * include/set-hooks.h (RUN_HOOK): Likewise.
51551         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
51552         definition.
51553         * string/strcpy.c (strcpy): Do not use __unbounded.
51554         * sysdeps/generic/frame.h (struct layout): Likewise.
51555         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
51556         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
51557         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
51558         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
51559         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
51560         (__backtrace): Likewise.
51561         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
51562         use __ptrvalue.
51563         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
51564         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
51565         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
51566         Likewise.
51567         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
51568         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
51569         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
51570         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
51571         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
51572         Do not use __unbounded.
51573         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
51574         Rename __unboundedrlimits parameter to rlimits in prototype.
51575         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
51576         Do not use __unbounded.
51577         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
51578         not use __ptrvalue.
51579         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
51580         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
51581         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
51582         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
51583         __ptrvalue or __unbounded.
51584         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
51585         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
51586         use __unbounded.
51587         (__new_msgctl): Do not use __ptrvalue.
51588         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
51589         __unbounded.
51590         (__libc_msgrcv): Do not use __ptrvalue.
51591         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
51592         startup_info): Do not use __unbounded.
51593         (__libc_start_main): Likewise.  Rename ubp_* variables and
51594         parameters.  Remove argv definitions conditional on
51595         [__BOUNDED_POINTERS__].
51596         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
51597         __ptrvalue.
51598         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
51599         use __unbounded.
51600         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
51601         or __ptrvalue.
51602         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
51603         use __unbounded.
51604         (__new_shmctl): Do not use __ptrvalue.
51605         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
51606         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
51607         Likewise.
51608         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
51609         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
51610         (__libc_sigaction): Likewise.
51611         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
51612         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
51613         Likewise.
51614         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
51615
51616 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
51617
51618         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
51619
51620         * string/mempcpy.c: Implement by calling memcpy.
51621
51622 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51623
51624         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
51625
51626         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
51627         evaluation.
51628
51629         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
51630         values in the mantissa.
51631
51632         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
51633         minimize writes to Z.
51634         (sub_magnitudes): Simplify code a bit.
51635
51636 2013-02-12  Roland McGrath  <roland@hack.frob.com>
51637
51638         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
51639         from the message.  The linker prefixes all warnings with that already.
51640
51641 2013-02-12  Andreas Schwab  <schwab@suse.de>
51642
51643         [BZ #15078]
51644         * posix/regexec.c (extend_buffers): Add parameter min_len.
51645         (check_matching): Pass minimum needed length.
51646         (clean_state_log_if_needed): Likewise.
51647         (get_subexp): Likewise.
51648         * posix/Makefile (tests): Add bug-regex34.
51649         (bug-regex34-ENV): Define.
51650         * posix/bug-regex34.c: New file.
51651
51652         [BZ #11561]
51653         * posix/regcomp.c (parse_bracket_exp): When looking up collating
51654         elements compare against the byte sequence of it, not its name.
51655         * posix/Makefile (tests): Add bug-regex35.
51656         (bug-regex35-ENV): Define.
51657         * posix/bug-regex35.c: New file.
51658
51659 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51660
51661         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
51662         comment.
51663         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
51664         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
51665         (CHECK_EOL): Add undef.
51666
51667 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
51668
51669         * bits/stdlib-bsearch.h: New file.
51670         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
51671         * stdlib/stdlib.h: Likewise.
51672
51673 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51674
51675         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
51676         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
51677         declaration.
51678         * manual/search.texi (Array Search Function): Add missing const in
51679         lfind prototype.
51680         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
51681         declaration to use rlim_t.
51682         (Basic Scheduling Functions): Remove erroneous const from
51683         sched_getparam prototype.  Remove erroneous * from
51684         sched_get_priority_max and sched_get_priority_min prototypes.
51685         (Resource Usage): Fix summary @comment on vtimes to refer to
51686         sys/vtimes.h rather than vtimes.h.
51687         Add missing *s in vtimes prototype.
51688         (Limits on Resources): Fix ulimit prototype to return long int.
51689         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
51690         prototypes to use long int rather than double.
51691         (BSD Random): Fix initstate and setstate to use char *, not void *.
51692         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
51693         prototype to make second argument 'struct aiocb64 *const[]'.
51694         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
51695         (Status of AIO Operations): Remove erroneous const in aio_return and
51696         aio_return64 prototypes.
51697         (Synchronizing I/O): Fix sync prototype to return void.
51698         * manual/startup.texi (Suboptions): Remove an erroneous const in
51699         getsubopt prototype.
51700         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
51701         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
51702         use size_t rather than int.
51703         (Scanning All Users): Likewise for getpwent_r.
51704         (Setting Groups): Add missing const to setgroups prototype.
51705         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
51706         * manual/socket.texi (Host Names): Fix gethostbyaddr and
51707         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
51708         'const void *' rather than 'const char *'.
51709         (Host Address Functions): Likewise for inet_ntop.
51710         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
51711         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
51712         ssize_t for return value.
51713         (Sending Data): Likewise for send, sendto, sendmsg.
51714         (Socket Option Functions): Add a missing const in setsockopt prototype.
51715         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
51716         use wchar_t for the argument.
51717         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
51718         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
51719         take no arguments.
51720         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
51721         double/float/long double for second argument.
51722         Fix return types of significand, significandf, significandl.
51723         * manual/filesys.texi (Setting Permissions): Use mode_t for second
51724         argument in fchmod prototype.
51725         (File Owner): Use uid_t and gid_t in fchown prototype.
51726         (File Times): Add const to utimes, futimes, and lutimes prototypes.
51727         (Making Special Files): Use mode_t and dev_t in mknod prototype.
51728         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
51729         use 'const struct dirent **' as argument types to CMP function pointer
51730         argument.
51731         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
51732         (File Times): Fix summary magic @comment for struct utimbuf and utime
51733         to refer to utime.h, not time.h.
51734         * manual/string.texi (Argz Functions): Add missing const in
51735         argz_extract and argz_next prototypes.
51736         (Finding Tokens in a String): Likewise for basename.
51737         (String/Array Comparison): Fix typo in wcscasecmp prototype.
51738         (Copying and Concatenation): Fix typo in wmemmove prototype.
51739         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
51740         (Signal Stack): Remove erroneous const in sigstack prototype.
51741         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
51742         prototype.
51743         (Simple Calendar Time): Likewise for stime.
51744         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
51745         prototype.
51746         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
51747         say sys/sysctl.h instead.
51748         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
51749         and vsyslog prototypes.
51750
51751 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51752
51753         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
51754         Remove.
51755
51756 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51757
51758         * misc/sys/mman.h: Fix typo in mremap comment.
51759
51760 2013-02-08  Roland McGrath  <roland@hack.frob.com>
51761
51762         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
51763         the '\0' terminator.
51764
51765 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
51766
51767         [BZ #13550]
51768         * debug/segfault.c: Don't include <bp-checks.h>.
51769         * sysdeps/generic/bp-checks.h: Remove file.
51770         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
51771         (__GETDENTS): Don't use CHECK_N.
51772         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
51773         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
51774         (__getgroups): Don't use CHECK_N.
51775         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
51776         (setgroups): Don't use CHECK_N.
51777         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
51778         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
51779         (__libc_msgrcv): Don't use CHECK_N.
51780         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
51781         (__libc_msgsnd): Don't use CHECK_N.
51782         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
51783         <bp-checks.h>.
51784         (__libc_pread): Don't use CHECK_N.
51785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
51786         include <bp-checks.h>.
51787         (__libc_pread64): Don't use CHECK_N.
51788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
51789         include <bp-checks.h>.
51790         (__libc_pwrite): Don't use CHECK_N.
51791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
51792         include <bp-checks.h>.
51793         (__libc_pwrite64): Don't use CHECK_N.
51794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
51795         <bp-checks.h>.
51796         (__libc_pread): Don't use CHECK_N.
51797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
51798         include <bp-checks.h>.
51799         (__libc_pread64): Don't use CHECK_N.
51800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
51801         include <bp-checks.h>.
51802         (__libc_pwrite): Don't use CHECK_N.
51803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
51804         include <bp-checks.h>.
51805         (__libc_pwrite64): Don't use CHECK_N.
51806         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
51807         (do_pread): Don't use CHECK_N.
51808         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
51809         (do_pread64): Don't use CHECK_N.
51810         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
51811         (do_pwrite): Don't use CHECK_N.
51812         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
51813         (do_pwrite64): Don't use CHECK_N.
51814         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
51815         (__libc_readv): Don't use CHECK_N.
51816         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
51817         (semop): Don't use CHECK_N.
51818         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
51819         <bp-checks.h>.
51820         (semtimedop): Don't use CHECK_N.
51821         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
51822         (__libc_pread): Don't use CHECK_N.
51823         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
51824         <bp-checks.h>.
51825         (__libc_pread64): Don't use CHECK_N.
51826         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
51827         <bp-checks.h>.
51828         (__libc_pwrite): Don't use CHECK_N.
51829         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
51830         <bp-checks.h>.
51831         (__libc_pwrite64): Don't use CHECK_N.
51832         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
51833         <bp-checks.h>.
51834         (__libc_msgrcv): Don't use CHECK_N.
51835         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
51836         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
51837         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
51838         (__libc_writev): Don't use CHECK_N.
51839
51840 2013-02-08  Roland McGrath  <roland@hack.frob.com>
51841
51842         * string/strcpy.c: Removed unused variable.
51843
51844         * Makeconfig (+sysdep-includes): Define with := rather than =.
51845         Use an existing include/ subdir of each sysdeps dir before it.
51846
51847 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51848
51849         * nscd/connection.c (register_traced_file): Comment function.
51850         [HAVE_INOTIFY] (union __inev): Define.
51851         [HAVE_INOTIFY] (inotify_check_files): New function.
51852         [HAVE_INOTIFY] (clear_db_cache): Likewise.
51853         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
51854         clear_db_cache.
51855         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
51856
51857 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51858
51859         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
51860         loaded if not already and that a failure is permanent.
51861
51862 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51863
51864         [BZ #15006]
51865         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
51866         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
51867
51868 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
51869
51870         [BZ #13550]
51871         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
51872         (CHECK_1_NULL_OK): Likewise.
51873         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
51874         (__fxstat): Do not use CHECK_1.
51875         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
51876         <bp-checks.h>.
51877         (___fxstat64): Do not use CHECK_1.
51878         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
51879         <bp-checks.h>.
51880         (__fxstatat): Do not use CHECK_1.
51881         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
51882         <bp-checks.h>.
51883         (__fxstatat64): Do not use CHECK_1.
51884         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
51885         <bp-checks.h>.
51886         (__fxstat): Do not use CHECK_1.
51887         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
51888         <bp-checks.h>.
51889         (__fxstatat): Do not use CHECK_1.
51890         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
51891         <bp-checks.h>.
51892         (__getresgid): Do not use CHECK_1.
51893         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
51894         <bp-checks.h>.
51895         (__getresuid): Do not use CHECK_1.
51896         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
51897         <bp-checks.h>.
51898         (__lxstat): Do not use CHECK_1.
51899         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
51900         <bp-checks.h>.
51901         (__old_msgctl): Do not use CHECK_1.
51902         (__new_msgctl): Likewise.
51903         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
51904         <bp-checks.h>.
51905         (__new_setrlimit): Do not use CHECK_1.
51906         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
51907         <bp-checks.h>.
51908         (__old_shmctl): Do not use CHECK_1.
51909         (__new_shmctl): Likewise.
51910         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
51911         <bp-checks.h>.
51912         (__xstat): Do not use CHECK_1.
51913         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
51914         (__lxstat): Do not use CHECK_1.
51915         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
51916         <bp-checks.h>.
51917         (___lxstat64): Do not use CHECK_1.
51918         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
51919         (__old_msgctl): Do not use CHECK_1.
51920         (__new_msgctl): Likewise.
51921         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
51922         <bp-checks.h>.
51923         (__gettimeofday): Do not use CHECK_1.
51924         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
51925         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
51926         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
51927         <bp-checks.h>.
51928         (__gettimeofday): Do not use CHECK_1.
51929         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
51930         (__old_shmctl): Do not use CHECK_1_NULL_OK.
51931         (__new_shmctl): Do not use CHECK_1.
51932         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
51933         <bp-checks.h>.
51934         (do_sigtimedwait): Do not use CHECK_1.
51935         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
51936         <bp-checks.h>.
51937         (do_sigwaitinfo): Do not use CHECK_1.
51938         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
51939         <bp-checks.h>.
51940         (msgctl): Do not use CHECK_1.
51941         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
51942         <bp-checks.h>.
51943         (shmctl): Do not use CHECK_1.
51944         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
51945         (ustat): Do not use CHECK_1.
51946         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
51947         <bp-checks.h>.
51948         (__fxstat): Do not use CHECK_1.
51949         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
51950         <bp-checks.h>.
51951         (__fxstatat): Do not use CHECK_1.
51952         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
51953         <bp-checks.h>.
51954         (__lxstat): Do not use CHECK_1.
51955         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
51956         <bp-checks.h>.
51957         (__xstat): Do not use CHECK_1.
51958         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
51959         (__xstat): Do not use CHECK_1.
51960         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
51961         (___xstat64): Do not use CHECK_1.
51962
51963         [BZ #13550]
51964         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
51965         definitions.
51966         (CHECK_BOUNDS_HIGH): Likewise.
51967         * string/strcpy.c: Do not include <bp-checks.h>.
51968         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
51969
51970 2013-02-07  Roland McGrath  <roland@hack.frob.com>
51971
51972         * nscd/nscd-client.h (__nscd_drop_map_ref):
51973         Add __attribute__ ((unused)).
51974         * nis/nss-nisplus.h (niserr2nss): Likewise.
51975
51976         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
51977         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
51978
51979         * csu/libc-tls.c (init_static_tls, init_slotinfo):
51980         Remove inline keyword.
51981         * include/rounding-mode.h (round_away): Likewise.
51982         * libio/wfileops.c (adjust_wide_data): Likewise.
51983         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
51984         (__m128i_strloadu_tolower): Likewise.
51985         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
51986         (__m128i_strloadu_tolower): Likewise.
51987         * time/mktime.c (ydhms_diff): Likewise.
51988         * locale/elem-hash.h (elem_hash): Likewise.
51989         * locale/setlocale.c (setdata): Likewise.
51990         * posix/regex_internal.h (re_string_char_size_at): Likewise.
51991         (re_string_wchar_at): Likewise.
51992         (bitset_not, bitset_merge, bitset_mask): Likewise.
51993         [!(__GNUC__ > 3)] (inline): Remove macro.
51994         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
51995         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
51996         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
51997         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
51998         * string/memcmp.c (memcmp_bytes): Likewise.
51999         * locale/programs/locarchive.c (compute_hashval): Likewise.
52000         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
52001         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
52002         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
52003         * nss/getent.c (print_rpc, print_protocols): Likewise.
52004         (print_passwd, print_group, print_aliases): Likewise.
52005         * nis/nss-nisplus.h (niserr2nss): Likewise.
52006         * nscd/connections.c (restart_p): Likewise.
52007         Change return type to bool.
52008
52009 2013-02-05  Roland McGrath  <roland@hack.frob.com>
52010
52011         * Makeconfig (all-Depend-files): Add existing
52012         $(sorted-subdirs:=/Depend) files.
52013         (all-subdirs): Remove nss.
52014         * sysdeps/unix/inet/Subdirs: Add it here instead.
52015         * hesiod/Depend: New file.
52016
52017         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
52018         instead of calling alloca.
52019
52020         * io/lseek.c (__lseek): Rename to __libc_lseek.
52021         Define __lseek as an alias.
52022
52023         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
52024
52025 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
52026
52027         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
52028         else clause and remove check for non-standard endianness.
52029
52030 2013-02-04  David S. Miller  <davem@davemloft.net>
52031
52032         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52033
52034 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
52035
52036         [BZ #13550]
52037         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
52038         (__ubp_memchr): Remove prototype.
52039         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
52040         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52041         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
52042         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52043         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
52044         Remove alias.
52045         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
52046         (__ubp_memchr): Likewise.
52047         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
52048         (__ubp_memchr): Likewise.
52049         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
52050         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
52051         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
52052         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
52053         CHECK_STRING.
52054         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
52055         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
52056         (__getcwd): Do not use CHECK_STRING.
52057         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
52058         <bp-checks.h>.
52059         (__real_chown): Do not use CHECK_STRING.
52060         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
52061         <bp-checks.h>.
52062         (fchownat): Do not use CHECK_STRING.
52063         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
52064         CHECK_STRING.
52065         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
52066         <bp-checks.h>.
52067         (__lchown): Do not use CHECK_STRING.
52068         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52069         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52070         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52071         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
52072         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
52073         include <bp-checks.h>.
52074         (truncate64): Do not use CHECK_STRING.
52075         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
52076         <bp-checks.h>.
52077         (__real_chown): Do not use CHECK_STRING.
52078         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
52079         <bp-checks.h>.
52080         (__lchown): Do not use CHECK_STRING.
52081         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
52082         <bp-checks.h>.
52083         (__chown): Do not use CHECK_STRING.
52084         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
52085         <bp-checks.h>.
52086         (truncate64): Do not use CHECK_STRING.
52087         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
52088         Likewise.
52089         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
52090         (__xmknod): Do not use CHECK_STRING.
52091         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
52092         <bp-checks.h>.
52093         (__xmknodat): Do not use CHECK_STRING.
52094         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52095         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
52096
52097 2013-02-04  Andreas Schwab  <schwab@suse.de>
52098
52099         [BZ #14142]
52100         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
52101         * include/netdb.h: Likewise for h_errno.
52102         * elf/tst-stackguard1.c: Include <tls.h>.
52103
52104 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
52105
52106         * elf/link.h (struct link_map): Extend the l_addr comment.
52107         * include/link.h (struct link_map): Likewise.
52108
52109 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
52110
52111         [BZ #13550]
52112         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
52113         (BOUNDED_1): Remove macro.
52114         * debug/backtrace.c: Don't include <bp-checks.h>.
52115         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
52116         (__backtrace): Likewise.
52117         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
52118         <bp-checks.h>.
52119         (__backtrace): Don't use BOUNDED_1.
52120         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
52121         <bp-checks.h>.
52122         (__backtrace): Don't use BOUNDED_1.
52123         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
52124         (__backtrace): Don't use BOUNDED_1.
52125         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
52126         (shmat): Don't use BOUNDED_N.
52127
52128 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
52129
52130         [BZ #13550]
52131         * sysdeps/generic/bp-start.h: Remove file.
52132         * csu/libc-start.c: Don't include <bp-start.h>.
52133         (LIBC_START_MAIN): Set up __environ directly instead of using
52134         INIT_ARGV_and_ENVIRON.
52135         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
52136         <bp-start.h>.
52137
52138         [BZ #13550]
52139         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
52140         definitions.
52141         (CHECK_FCNTL): Likewise.
52142         (CHECK_N_PAGES): Likewise.
52143
52144         [BZ #13550]
52145         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
52146         definitions.
52147         (CHECK_SIGSET_NULL_OK): Likewise.
52148         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
52149         <bp-checks.h>.
52150         (sigpending): Don't use CHECK_SIGSET.
52151         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
52152         <bp-checks.h>.
52153         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52154         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
52155         <bp-checks.h>.
52156         (do_sigsuspend): Don't use CHECK_SIGSET.
52157         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
52158         use CHECK_SIGSET.
52159         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
52160         (do_sigwait): Don't use CHECK_SIGSET.
52161         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
52162         use CHECK_SIGSET.
52163         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
52164         include <bp-checks.h>.
52165         (sigpending): Don't use CHECK_SIGSET.
52166         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
52167         include <bp-checks.h>.
52168         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52169         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
52170         <bp-checks.h>.
52171         (sigpending): Don't use CHECK_SIGSET.
52172         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
52173         <bp-checks.h>.
52174         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52175
52176         [BZ #13550]
52177         * sysdeps/generic/bp-semctl.h: Remove file.
52178         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
52179         <bp-checks.h> and <bp-semctl.h>.
52180         (__old_semctl): Don't use CHECK_SEMCTL.
52181         (__new_semctl): Likewise.
52182         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
52183         and <bp-semctl.h>.
52184         (__old_semctl): Don't use CHECK_SEMCTL.
52185         (__new_semctl): Likewise.
52186         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
52187         <bp-checks.h> and <bp-semctl.h>.
52188         (__old_semctl): Don't use CHECK_SEMCTL.
52189         (__new_semctl): Likewise.
52190         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
52191         <bp-checks.h> and <bp-semctl.h>.
52192         (semctl): Don't use CHECK_SEMCTL.
52193
52194         [BZ #13550]
52195         * Makerules (elide-bp-thunks): Remove variable.
52196         (elide-routines.oS): Don't use $(elide-bp-thunks).
52197         (elide-routines.os): Likewise.
52198         (elide-routines.o): Likewise.
52199         (elide-routines.op): Likewise.
52200         (elide-routines.og): Likewise.
52201         (objects): Don't use $(bp-thunks).
52202         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
52203         include.
52204         (common-generated): Do not add s-proto-bp.d.
52205         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
52206         (int): Likewise.
52207         (typ): Likewise.
52208         Do not generate makefile rules for bounded-pointer thunks.
52209         * sysdeps/generic/bp-thunks.h: Remove file.
52210         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
52211         * sysdeps/unix/s-proto-bp.S: Likewise.
52212
52213         [BZ #15062]
52214         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
52215         parts of result separately when argument is not close to line from
52216         -i to i and one part of argument is small.
52217         * math/k_casinhf.c (__kernel_casinhf): Likewise.
52218         * math/k_casinhl.c (__kernel_casinhl): Likewise.
52219         * math/libm-test.inc (cacos_test): Add more tests.
52220         (casin_test): Likewise.
52221         (casinh_test): Likewise.
52222         * sysdeps/i386/fpu/libm-test-ulps: Update.
52223         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52224
52225 2013-01-31  David S. Miller  <davem@davemloft.net>
52226
52227         * po/de.po: Update from translation team.
52228
52229 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
52230
52231         * time/tzfile.c: Include stdint.h for SIZE_MAX.
52232
52233 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
52234
52235         * configure.in (_AC_PROG_CC_C89): New definition.
52236         * configure: Regenerate.
52237
52238         * configure.in (AC_PROG_CPP): New definition.
52239         * configure: Regenerate.
52240
52241 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52242
52243         * debug/tst-backtrace.h: New file.
52244         * debug/tst-backtrace2.c: Include tst-backtrace.h.
52245         (ret): Remove variable.
52246         (x): Likewise.
52247         (FAIL): Remove macro.
52248         (NO_INLINE): Likewise.
52249         (fn1): Use match function instead of strstr.
52250         * debug/tst-backtrace3.c: Include tst-backtrace.h.
52251         (ret): Remove variable.
52252         (x): Likewise.
52253         (FAIL): Remove macro.
52254         (NO_INLINE): Likewise.
52255         (fn): Use match function instead of strstr.
52256         * debug/tst-backtrace4.c: Include tst-backtrace.h.
52257         (ret): Remove variable.
52258         (x): Likewise.
52259         (FAIL): Remove macro.
52260         (NO_INLINE): Likewise.
52261         (handle_signal): Use match function instead of strstr.
52262         * debug/tst-backtrace5.c: Include tst-backtrace.h.
52263         (ret): Remove variable.
52264         (x): Likewise.
52265         (FAIL): Remove macro.
52266         (NO_INLINE): Likewise.
52267         (handle_signal): Use match function instead of strstr.
52268
52269 2013-01-23  Roland McGrath  <roland@hack.frob.com>
52270
52271         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
52272
52273 2013-01-23  David S. Miller  <davem@davemloft.net>
52274
52275         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
52276         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
52277         argument of CAS if possible.
52278         * sysdeps/sparc/sparc64/bits/atomic.h
52279         (__arch_compare_and_exchange_val_32_acq): Likewise.
52280         (__arch_compare_and_exchange_val_64_acq): Likewise.
52281
52282 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
52283
52284         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
52285         * sysdeps/posix/ulimit.c: ... this.
52286         Include <limits.h>.
52287         * sysdeps/unix/bsd/ulimit.c: Remove file.
52288
52289 2013-01-23  Adam Conrad  <adconrad@0c3.net>
52290
52291         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
52292         (LDFLAGS-tst-array5): Likewise.
52293
52294 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52295
52296         [BZ #15036]
52297         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
52298         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
52299         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
52300         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
52301
52302 2013-01-21  David S. Miller  <davem@davemloft.net>
52303
52304         * sysdeps/sparc/backtrace.c: New file.
52305         * sysdeps/sparc/sparc32/backtrace.h: New file.
52306         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
52307         * sysdeps/sparc/sparc64/backtrace.h: New file.
52308         * sysdeps/sparc/sparc64/backtrace.c: Delete.
52309         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
52310         -funwind-tables.
52311
52312 2013-01-21  Andreas Schwab  <schwab@suse.de>
52313
52314         [BZ #15020]
52315         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
52316         closed its stdout.
52317
52318 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
52319
52320         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
52321         "mpa2.h".
52322         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52323
52324 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
52325             Mark Mitchell  <mark@codesourcery.com>
52326             Tom de Vries  <tom@codesourcery.com>
52327             Paul Pluzhnikov  <ppluzhnikov@google.com>
52328
52329         * debug/tst-backtrace2.c: New file.
52330         * debug/tst-backtrace3.c: Likewise.
52331         * debug/tst-backtrace4.c: Likewise.
52332         * debug/tst-backtrace5.c: Likewise.
52333         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
52334         (CFLAGS-tst-backtrace3.c): Likewise.
52335         (CFLAGS-tst-backtrace4.c): Likewise.
52336         (CFLAGS-tst-backtrace5.c): Likewise.
52337         (LDFLAGS-tst-backtrace2): Likewise.
52338         (LDFLAGS-tst-backtrace3): Likewise.
52339         (LDFLAGS-tst-backtrace4): Likewise.
52340         (LDFLAGS-tst-backtrace5): Likewise.
52341         (tests): Add new tests tst-backtrace2, tst-backtrace3,
52342         tst-backtrace4 and tst-backtrace5.
52343
52344 2013-01-18  Anton Blanchard  <anton@samba.org>
52345             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52346
52347         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
52348         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
52349         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
52350         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
52351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
52352         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
52353         "+r" and remove output regs list as redundant.  Add explicit inline
52354         asm to specify register of return val to work around compiler codegen
52355         bug.  Remove (int) cast on return value.  Add return type parameter to
52356         use in macro so that this macro does not truncate return value for
52357         64-bit values.
52358         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
52359         pass to INTERNAL_VSYSCALL_NCS.
52360         (INLINE_VSYSCALL): Add 'long int' as return type to
52361         INTERNAL_VSYSCALL_NCS macro invocation.
52362         (INTERNAL_VSYSCALL): Add 'long int' as return type to
52363         INTERNAL_VSYSCALL_NCS macro invocation.
52364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
52365
52366 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
52367
52368         [BZ #14496]
52369         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
52370         Fix application of SIMD FP exception mask.
52371
52372         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
52373         mp_no from a power of two.
52374         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
52375         __mpexp_twomm1.  Use __pow_mp.
52376
52377         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
52378         multiplication.
52379
52380 2013-01-17  David S. Miller  <davem@davemloft.net>
52381
52382         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52383
52384 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52385
52386         [BZ #15023]
52387         * include/complex.h: Condition contents on [!_COMPLEX_H].
52388         (__kernel_casinhf): New prototype.
52389         (__kernel_casinh): Likewise.
52390         (__kernel_casinhl): Likewise.
52391         * math/Makefile (libm_calls): Add k_casinh.
52392         * math/k_casinh.c: New file.
52393         * math/k_casinhf.c: Likewise.
52394         * math/k_casinhl.c: Likewise.
52395         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
52396         finite nonzero arguments.
52397         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
52398         finite nonzero arguments.
52399         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
52400         finite nonzero arguments.
52401         * math/s_casinh.c: Do not include <float.h>.
52402         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
52403         * math/s_casinhf.c: Do not include <float.h>.
52404         (__casinhf): Move code for finite nonzero arguments to
52405         k_casinhf.c.
52406         * math/s_casinhl.c: Do not include <float.h>.
52407         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
52408         redefine.
52409         (__casinhl): Move code for finite nonzero arguments to
52410         k_casinhl.c.
52411         * math/libm-test.inc (cacos_test): Add more tests.
52412         * sysdeps/i386/fpu/libm-test-ulps: Update.
52413         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52414
52415 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
52416
52417         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
52418         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
52419         [!HAVE_MREMAP]: Remove [defined linux] case.
52420         * malloc/arena.c: Do not include <malloc-sysdep.h>.
52421
52422 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
52423
52424         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
52425
52426 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
52427
52428         * elf/elf.h (R_386_SIZE32): New relocation.
52429         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
52430         R_386_SIZE32.
52431         (elf_machine_rela): Likewise.
52432         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
52433         R_X86_64_SIZE64 and R_X86_64_SIZE32.
52434
52435 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52436
52437         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
52438         (FP_FAST_FMA): Do not define.
52439         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
52440         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
52441         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
52442         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
52443         !_SOFT_FLOAT]: Likewise.
52444         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
52445         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
52446         value.
52447         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
52448         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
52449         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
52450         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
52451         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
52452         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
52453         file.
52454
52455 2013-01-16  Andreas Schwab  <schwab@suse.de>
52456
52457         [BZ #14327]
52458         * include/stdlib.h (__mktemp): Add declaration.
52459         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
52460         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
52461
52462 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52463
52464         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
52465         definitions.
52466         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
52467         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
52468         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
52469         definitions here.
52470         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
52471         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
52472         definitions.
52473         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
52474         and ONE.
52475         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
52476         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
52477         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
52478         definitions.
52479         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
52480         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
52481         definitions.
52482         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
52483
52484         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
52485
52486 2013-01-15  David S. Miller  <davem@davemloft.net>
52487
52488         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52489         trunc{,f} to libm-sysdep_routes.
52490         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
52492         file.
52493         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
52494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
52495         file.
52496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
52497         file.
52498         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
52499         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
52500         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
52501         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
52502         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
52503         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
52504         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
52505         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
52506
52507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52508         nearbyint{,f} to libm-sysdep_routes.
52509         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
52511         New file.
52512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
52513         file.
52514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
52515         New file.
52516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
52517         file.
52518         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
52519         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
52520         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
52521         file.
52522         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
52523         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
52524         file.
52525         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
52526         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
52527         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
52528
52529         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
52530         libc_feholdexcept and libc_fesetenv.
52531
52532 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
52533
52534         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
52535
52536 2013-01-14  David S. Miller  <davem@davemloft.net>
52537
52538         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
52539         (SPARC_ASM_VIS2_IFUNC): Likewise.
52540         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
52541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
52542         use of 'siam' instruction.
52543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
52544         Likewise.
52545         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
52546         Likewise.
52547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
52548         Likewise.
52549         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
52550         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
52551         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
52552         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
52553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
52554         file.
52555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
52556         file.
52557         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
52558         file.
52559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
52560         file.
52561         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
52562         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
52563         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
52564         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
52565         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
52566         new VIS2 routines.
52567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
52568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
52569         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
52570         Likewise.
52571         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
52572         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
52573         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
52574         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
52575         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
52576         routines to libm-sysdep_routines.
52577         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52578
52579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52580         fdim/fdimf to libm-sysdep_routines.
52581         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
52582         file.
52583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
52584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
52585         file.
52586         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
52587         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
52588         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
52589         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
52590         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
52591         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
52592         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
52593
52594 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
52595
52596         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
52597         to optimize copies.
52598
52599         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
52600         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
52601         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52602
52603         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
52604         local variable MPTWO.
52605         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
52606         Likewise.
52607
52608 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52609
52610         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
52611         GLOB_NOESCAPE.
52612
52613 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52614
52615         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
52616
52617 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52618
52619         * manual/pattern.texi (glob_t): Document gl_flags.
52620         (glob64_t): Likewise.
52621
52622 2013-01-11  David S. Miller  <davem@davemloft.net>
52623
52624         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
52625         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
52626         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
52627         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
52628         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
52629         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
52630         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
52631         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
52632         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
52633         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
52634         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
52635         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
52636         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
52637
52638         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
52639         sparc V9 rather than using V8 code.
52640         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52641         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52642
52643         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
52644         Move to...
52645         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
52646         Here.
52647
52648 2013-01-11  Roland McGrath  <roland@hack.frob.com>
52649
52650         [BZ #14941]
52651         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
52652         not in the main loop.
52653         * configure: Regenerated.
52654
52655 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
52656
52657         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
52658         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
52659         to just #else.
52660         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
52661         [!__GLIBC_HAVE_LONG_LONG] case.
52662         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
52663         condition to just #else.
52664         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
52665         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
52666         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
52667         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
52668         unconditional.
52669         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
52670         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52671         #elif condition to just #else.
52672         * sysdeps/unix/sysv/linux/sys/sysmacros.h
52673         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
52674         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52675         #elif condition to just #else.
52676
52677 2013-01-11  Steve Ellcey  <sellcey@mips.com>
52678
52679         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
52680         (EF_MIPS_ARCH_64): Fix value.
52681         (EF_MIPS_ARCH_32R2): New.
52682         (EF_MIPS_ARCH_64R2): New.
52683
52684 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
52685
52686         * Makeconfig (+link-pie-before-libc): New.
52687         (+link-pie-after-libc): Likewise.
52688         (+link-pie-tests): Likewise.
52689         (+link-pie): Rewritten.
52690         (link-before-libc): Remove $(config-LDFLAGS).
52691         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
52692         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
52693         (config-LDFLAGS): Renamed to ...
52694         (rtld-LDFLAGS): This.
52695         (rtld-tests-LDFLAGS): New macro.
52696         (link-libc-rpath-link): Likewise.
52697         (link-libc-tests-rpath-link): Likewise.
52698         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
52699         (link-libc): Prepand $(link-libc-rpath-link).
52700         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
52701         (test-program-prefix): New macro.
52702         (test-via-rtld-prefix): Likewise.
52703         (test-program-cmd): Likewise.
52704         (host-test-program-cmd): Likewise.
52705         * Makefile ($(common-objpfx)testrun.sh): Replace
52706         $(run-program-prefix) with $(test-program-prefix).
52707         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
52708         $(rtld-LDFLAGS).
52709         ($(common-objpfx)shlib.lds): Likewise.
52710         (build-module-helper): Likewise.
52711         ($(common-objpfx)format.lds): Likewise.
52712         * Rules (binaries-pie-tests): New.
52713         (binaries-pie-notests): Likewise.
52714         (binaries-pie): Rewritten.
52715         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
52716         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
52717         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
52718         (make-test-out): Replace $(host-built-program-cmd) with
52719         $(host-test-program-cmd).
52720         * config.make.in (build-hardcoded-path-in-tests): New variable.
52721         * configure.in (--enable-hardcoded-path-in-tests): New configure
52722         option.
52723         (hardcoded_path_in_tests): New AC_SUBST.
52724         * configure: Regenerated.
52725         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
52726         $(built-program-cmd) with $(test-program-cmd).
52727         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
52728         (test_program_cmd): This.
52729         * elf/Makefile ($(objpfx)order.out): Run test with
52730         $(test-program-prefix).
52731         ($(objpfx)order2.out): Likewise.
52732         ($(objpfx)tst-initorder.out): Likewise.
52733         ($(objpfx)tst-initorder2.out): Likewise.
52734         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
52735         $(test-program-cmd).
52736         ($(objpfx)tst-array1-static.out): Likewise.
52737         ($(objpfx)tst-array2.out): Likewise.
52738         ($(objpfx)tst-array3.out): Likewise.
52739         ($(objpfx)tst-array4.out): Likewise.
52740         ($(objpfx)tst-array5.out): Likewise.
52741         ($(objpfx)tst-array5-static.out): Likewise.
52742         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
52743         $(test-program-cmd).
52744         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
52745         $(run-program-prefix) with $(test-program-prefix).
52746         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
52747         (test_program_prefix): This.
52748         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
52749         $(run-program-prefix) with $(test-program-prefix).
52750         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
52751         (test_program_prefix): This.
52752         * iconvdata/tst-tables.sh: Likewise.
52753         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
52754         $(run-program-prefix) with $(test-program-prefix).
52755         ($(objpfx)tst-translit.out): Likewise.
52756         ($(objpfx)tst-gettext2.out): Likewise.
52757         ($(objpfx)tst-gettext4.out): Likewise.
52758         ($(objpfx)tst-gettext6.out): Likewise.
52759         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
52760         (test_program_prefix): This.
52761         * intl/tst-gettext2.sh: Likewise.
52762         * intl/tst-gettext4.sh  Likewise.
52763         * intl/tst-gettext6.sh: Likewise.
52764         * intl/tst-translit.sh: Likewise.
52765         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
52766         with $(test-program-cmd).
52767         * libio/Makefile ($(objpfx)test-freopen.out): Replace
52768         $(run-program-prefix) with $(test-program-prefix).
52769         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
52770         (test_program_prefix): This.
52771         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
52772         $(run-program-prefix) with $(test-program-prefix).
52773         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
52774         (test_program_prefix): This.
52775         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
52776         * posix/Makefile ($(objpfx)globtest.out): Replace
52777         $(run-via-rtld-prefix) and $(test-wrapper) with
52778         $(test-program-prefix) and $(test-via-rtld-prefix).
52779         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
52780         $(test-program-prefix).
52781         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
52782         $(host-test-program-cmd).
52783         (tst-spawn-ARGS): Likewise.
52784         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
52785         $(test-program-prefix).
52786         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
52787         (test_via_rtld_prefix): This.
52788         (test_wrapper): Renamed to ...
52789         (test_program_prefix): This.
52790         (run_program_prefix): Replaced by test_program_prefix.
52791         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
52792         (test_program_prefix): This.
52793         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
52794         with $(host-test-program-cmd).
52795         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
52796         $(run-program-prefix) with $(test-program-prefix).
52797         ($(objpfx)tst-printf.out): Likewise.
52798         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
52799         $(test-program-cmd).
52800         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
52801         (test_program_prefix): This.
52802         * stdio-common/tst-unbputc.sh: Likewise.
52803         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
52804         $(run-program-prefix) with $(test-program-prefix).
52805         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
52806         (test_program_prefix): This.
52807         * string/Makefile ($(objpfx)tst-svc.out):  Replace
52808         $(built-program-cmd) with $(test-program-cmd).
52809
52810 2013-01-11  Andreas Jaeger  <aj@suse.de>
52811
52812         [BZ #15003]
52813         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
52814         value. Sync with Linux 3.7.
52815
52816 2013-01-10  David S. Miller  <davem@davemloft.net>
52817
52818         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
52819         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52820         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52821
52822 2013-01-10  Roland McGrath  <roland@hack.frob.com>
52823
52824         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
52825         never set.
52826         * configure: Regenerated.
52827
52828 2013-01-10  David S. Miller  <davem@davemloft.net>
52829
52830         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
52831         sparc V9 rather than using V8 code.
52832         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52833         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52834
52835 2013-01-10  Roland McGrath  <roland@hack.frob.com>
52836
52837         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
52838         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
52839         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
52840         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
52841         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
52842         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
52843         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
52844         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
52845         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
52846         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
52847         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
52848         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
52849         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
52850         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
52851         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
52852         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
52853         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
52854         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
52855         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
52856         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
52857         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
52858         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
52859         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
52860         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
52861         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
52862         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
52863         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
52864
52865 2013-01-10  David S. Miller  <davem@davemloft.net>
52866
52867         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52868
52869 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
52870
52871         * posix/Makefile (tests-static): New variable.
52872         (tests): Add $(tests-static).
52873         (tst-exec-static-ARGS): New variable.
52874         (tst-spawn-static-ARGS): Likewise.
52875         * posix/tst-exec-static.c: New file.
52876         * posix/tst-spawn-static.c: Likewise.
52877         * posix/tst-exec.c: Support run directly.
52878         * posix/tst-spawn.c: Likewise.
52879
52880 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
52881
52882         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
52883         long.
52884         * math/bits/mathcalls.h (llrint): Likewise.
52885         (llround): Likewise.
52886         * stdlib/stdlib.h (struct drand48_data): Likewise.
52887         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
52888         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
52889         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
52890         Likewise.
52891         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
52892         Likewise.
52893         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
52894         (elf_greg_t): Likewise.
52895         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
52896         (__jmp_buf): Likewise.
52897         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
52898         definitions.
52899         (llrint): Likewise, for all definitions.
52900         (llrintl): Likewise.
52901
52902         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
52903         Remove [__GNUC__] condition.
52904         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
52905         condition to just [__USE_ISOC99].
52906         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
52907
52908 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
52909
52910         [BZ #14200]
52911         * sysdeps/unix/sysv/linux/x86/bits/environments.h
52912         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
52913         defined.
52914         (_POSIX_V6_ILP32_OFF32): Likewise.
52915         (_XBS5_ILP32_OFF32): Likewise.
52916         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
52917         (__ILP32_OFFBIG_LDFLAGS): Likewise.
52918
52919 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
52920
52921         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
52922
52923         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
52924         doubles __mpexp_twomm1.  Adjust usage.
52925         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
52926         Remove.
52927
52928 2013-01-10  Andreas Schwab  <schwab@suse.de>
52929
52930         [BZ #14964]
52931         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
52932         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
52933
52934 2013-01-09  David S. Miller  <davem@davemloft.net>
52935
52936         [BZ #15003]
52937         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
52938         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
52939         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
52940         (TCP_FASTOPEN): Define.
52941         (tcp_repair_opt): New structure.
52942         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
52943         enum values.
52944         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
52945         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
52946         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
52947         (tcp_cookie_transactions): New structure.
52948
52949 2013-01-09  Anton Blanchard  <anton@samba.org>
52950
52951         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
52952         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
52953         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
52954         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
52955
52956 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
52957
52958         * include/features.h (__USE_ANSI): Remove.
52959
52960 2013-01-09  Roland McGrath  <roland@hack.frob.com>
52961
52962         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
52963
52964         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
52965
52966 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
52967
52968         * sysdeps/s390/fpu/libm-test-ulps: Update.
52969
52970         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52971
52972         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
52973         (__acr): Likewise.
52974         (__cpy): Likewise.
52975         (norm): Likewise.
52976         (denorm): Likewise.
52977         (__mp_dbl): Likewise.
52978         (__dbl_mp): Likewise.
52979         (add_magnitudes): Likewise.
52980         (sub_magnitudes): Likewise.
52981         (__add): Likewise.
52982         (__sub): Likewise.
52983         (__mul): Likewise.
52984         (__inv): Likewise.
52985         (__dvd): Likewise.
52986         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
52987         (__acr): Likewise.
52988         (__cpy): Likewise.
52989         (norm): Likewise.
52990         (denorm): Likewise.
52991         (__mp_dbl): Likewise.
52992         (__dbl_mp): Likewise.
52993         (add_magnitudes): Likewise.
52994         (sub_magnitudes): Likewise.
52995         (__add): Likewise.
52996         (__sub): Likewise.
52997         (__mul): Likewise.
52998         (__inv): Likewise.
52999         (__dvd): Likewise.
53000         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
53001         (__acr): Likewise.
53002         (__cpy): Likewise.
53003         (norm): Likewise.
53004         (denorm): Likewise.
53005         (__mp_dbl): Likewise.
53006         (__dbl_mp): Likewise.
53007         (add_magnitudes): Likewise.
53008         (sub_magnitudes): Likewise.
53009         (__add): Likewise.
53010         (__sub): Likewise.
53011         (__mul): Likewise.
53012         (__inv): Likewise.
53013         (__dvd): Likewise.
53014
53015 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
53016
53017         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
53018         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
53019         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
53020         2 && __USE_EXTERN_INLINES]: Likewise.
53021
53022 2013-01-08  Andreas Jaeger  <aj@suse.de>
53023
53024         [BZ# 14985]
53025         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
53026         Remove.
53027         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53028         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53029
53030 2013-01-07  Anton Blanchard  <anton@samba.org>
53031
53032         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
53033         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
53034         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
53035         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
53036         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
53037         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
53038         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
53039         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53040         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53041         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53042         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
53043         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
53044         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
53045         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
53046         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
53047         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
53048         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
53049         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
53050         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
53051         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
53052         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
53053         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
53054         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
53055         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
53056         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
53057         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
53058         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
53059         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
53060         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
53061         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
53062         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
53063         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53064         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53065         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
53066         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
53067         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
53068         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
53069         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
53070         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
53071         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
53072         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
53073         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
53074         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
53075
53076 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
53077
53078         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
53079         (__MALLOC_PMT): Likewise.
53080         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
53081         [__GNUC__], only on [_LIBC].
53082         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53083         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
53084         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53085         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
53086         forward declaration.
53087         (realloc_hook_ini): Likewise.
53088         (memalign_hook_ini): Likewise.
53089         (__libc_memalign): Do not use __MALLOC_PMT in variable
53090         declaration.
53091         (__libc_valloc): Likewise.
53092         (__libc_pvalloc): Likewise.
53093         (__libc_calloc): Likewise.
53094         (__posix_memalign): Likewise.
53095
53096         [BZ #14996]
53097         * math/s_casinh.c: Include <float.h>.
53098         (__casinh): Do not do computation with squaring and square root
53099         for large arguments.
53100         * math/s_casinhf.c: Include <float.h>.
53101         (__casinhf): Do not do computation with squaring and square root
53102         for large arguments.
53103         * math/s_casinhl.c: Include <float.h>.
53104         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
53105         (__casinhl): Do not do computation with squaring and square root
53106         for large arguments.
53107         * math/libm-test.inc (casin_test): Add more tests.
53108         (casinh_test): Likewise.
53109         * sysdeps/i386/fpu/libm-test-ulps: Update.
53110         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53111
53112 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
53113
53114         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
53115         (__x86_64_raw_data_cache_size): Likewise.
53116         (__x86_64_data_cache_size_half): Likewise.
53117         (__x86_64_raw_data_cache_size_half): Likewise.
53118         (__x86_64_shared_cache_size): Likewise.
53119         (__x86_64_raw_shared_cache_size): Likewise.
53120         (__x86_64_shared_cache_size_half): Likewise.
53121         (__x86_64_raw_shared_cache_size_half): Likewise.
53122         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
53123         to ...
53124         (__x86_data_cache_size): This.
53125         (__x86_64_raw_data_cache_size): Renamed to ...
53126         (__x86_raw_data_cache_size): This.
53127         (__x86_64_data_cache_size_half): Renamed to ...
53128         (__x86_data_cache_size_half): This.
53129         (__x86_64_raw_data_cache_size_half): Renamed to ...
53130         (__x86_raw_data_cache_size_half): This.
53131         (__x86_64_shared_cache_size): Renamed to ...
53132         (__x86_shared_cache_size): This.
53133         (__x86_64_raw_shared_cache_size): Renamed to ...
53134         (__x86_raw_shared_cache_size): This.
53135         (__x86_64_shared_cache_size_half): Renamed to ...
53136         (__x86_shared_cache_size_half): This.
53137         (__x86_64_raw_shared_cache_size_half): Renamed to ...
53138         (__x86_raw_shared_cache_size_half): This.
53139         * sysdeps/x86_64/memcpy.S: Updated.
53140         * sysdeps/x86_64/memset.S: Likewise.
53141         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
53142         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
53143         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
53144
53145 2013-01-04  David S. Miller  <davem@davemloft.net>
53146
53147         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53148
53149 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
53150
53151         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
53152         1 to avoid redefinition warning.
53153         (__USE_GNU): Don't define.
53154         (init_signaling_nan): Protoize.
53155
53156         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53157
53158 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53159
53160         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
53161         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
53162         (__cpymn): Likewise.
53163         (norm): Remove commented code.
53164         (denorm): Likewise.
53165         (__mp_dbl): Likewise.
53166         (__inv): Likewise.
53167         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
53168         (__cpymn): Likewise.
53169         (norm): Remove commented code.
53170         (denorm): Likewise.
53171         (__mp_dbl): Likewise.
53172         (__inv): Likewise.
53173
53174         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
53175         mp_no value for 1.0 and 2.0.
53176         (norm): Use RADIXI instead of radixi.d.
53177         (denorm): Likewise.
53178         (__mul): Use 0.0 instead of zero.d.
53179         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
53180         mp_no value for 1.0 and 2.0.
53181         (norm): Use RADIXI instead of radixi.d.
53182         (denorm): Likewise.
53183         (__mul): Use 0.0 instead of zero.d.
53184
53185 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
53186
53187         [BZ #14994]
53188         * math/s_casinh.c (__casinh): Reduce finite argument to first
53189         quadrant then set signs of results at the end.
53190         * math/s_casinhf.c (__casinhf): Likewise.
53191         * math/s_casinhl.c (__casinhl): Likewise.
53192         * math/libm-test.inc (casin_test): Add more tests.
53193         (casinh_test): Likewise.
53194         * sysdeps/i386/fpu/libm-test-ulps: Update.
53195         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53196
53197 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53198
53199         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
53200
53201         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
53202
53203         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
53204         declarations.
53205         (denorm): Likewise.
53206         (__mp_dbl): Likewise.
53207         (__inv): Likewise.
53208
53209         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
53210         and adjust the header comment.
53211
53212         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
53213         variable name from declaration.
53214
53215 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
53216
53217         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
53218         Initialize COMMON_CPUID_INDEX_7 element.
53219         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
53220         (CPUID_RTM): Likewise.
53221         (HAS_RTM): Likewise.
53222         (COMMON_CPUID_INDEX_7): New enum.
53223
53224 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
53225
53226         [BZ #14981]
53227         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
53228         size is zero, record memory as freed.
53229
53230 2013-01-03  Andreas Jaeger  <aj@suse.de>
53231
53232         * po/ia.po: Add new Interlingua translation.
53233
53234 2012-01-03  Allan McRae  <allan@archlinux.org>
53235
53236         * locale/programs/localedef.c: Fix description of '--posix' flag.
53237
53238 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
53239
53240         * NEWS: Update dates in second copyright notice.
53241         * README: Update copyright dates in example.
53242         * manual/libc.texinfo: Update copyright dates.
53243         * scripts/test-installation.pl: Update copyright date in --version
53244         output.
53245
53246         * hurd/ctty-input.c: Fix copyright notice formatting.
53247         * hurd/ctty-output.c: Likewise.
53248         * hurd/dtable.c: Likewise.
53249         * hurd/hurd-raise.c: Likewise.
53250         * hurd/hurdprio.c: Likewise.
53251         * hurd/msgportdemux.c: Likewise.
53252         * misc/sys/file.h: Likewise.
53253         * misc/sys/ioctl.h: Likewise.
53254         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
53255         * sysdeps/mach/hurd/chdir.c: Likewise.
53256         * sysdeps/mach/hurd/fchdir.c: Likewise.
53257         * sysdeps/mach/hurd/rename.c: Likewise.
53258         * sysdeps/mach/hurd/rmdir.c: Likewise.
53259         * sysdeps/mach/hurd/seekdir.c: Likewise.
53260         * sysdeps/mach/hurd/setsid.c: Likewise.
53261         * sysdeps/posix/wait3.c: Likewise.
53262
53263         * All files with FSF copyright notices: Update copyright dates
53264         using scripts/update-copyrights.
53265         * intl/plural.c: Regenerated.
53266         * locale/programs/charmap-kw.h: Likewise.
53267         * locale/programs/locfile-kw.h: Likewise.
53268
53269 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
53270
53271         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
53272         four values.
53273
53274         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
53275         calculation loop and add branch prediction.
53276
53277         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
53278         check access beyond bounds of m1np.
53279
53280         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53281         MPTWO.
53282         (__inv): Remove local variable MPTWO to use the global
53283         constant.
53284         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
53285         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53286         variable MPTWO.
53287         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
53288         MP3HALFS static const.
53289
53290 2013-01-01  David S. Miller  <davem@davemloft.net>
53291
53292         * po/ca.po: Update from translation team.
53293
53294 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
53295
53296         * scripts/update-copyrights: New file.
53297         * Makeconfig: Reformat copyright notice.
53298         * ctype/ctype.h: Likewise.
53299         * debug/swprintf_chk.c: Likewise.
53300         * elf/dl-cache.c: Likewise.
53301         * elf/dl-debug.c: Likewise.
53302         * elf/dl-object.c: Likewise.
53303         * grp/initgroups.c: Likewise.
53304         * hurd/Makefile: Likewise.
53305         * hurd/hurd/signal.h: Likewise.
53306         * hurd/hurdfault.c: Likewise.
53307         * hurd/hurdioctl.c: Likewise.
53308         * hurd/hurdlookup.c: Likewise.
53309         * hurd/intr-msg.c: Likewise.
53310         * iconv/gconv_open.c: Likewise.
53311         * libio/swprintf.c: Likewise.
53312         * locale/lc-ctype.c: Likewise.
53313         * locale/nl_langinfo.c: Likewise.
53314         * mach/Machrules: Likewise.
53315         * mach/Makefile: Likewise.
53316         * malloc/obstack.h: Likewise.
53317         * manual/Makefile: Likewise.
53318         * manual/tsort.awk: Likewise.
53319         * misc/bits/stab.def: Likewise.
53320         * nis/nis_print_group_entry.c: Likewise.
53321         * nis/nis_table.c: Likewise.
53322         * nis/nss_compat/compat-pwd.c: Likewise.
53323         * nis/nss_compat/compat-spwd.c: Likewise.
53324         * po/Makefile: Likewise.
53325         * posix/fnmatch.c: Likewise.
53326         * posix/regex.h: Likewise.
53327         * resolv/Makefile: Likewise.
53328         * resolv/nss_dns/dns-network.c: Likewise.
53329         * resolv/res_hconf.c: Likewise.
53330         * scripts/gen-sorted.awk: Likewise.
53331         * soft-fp/soft-fp.h: Likewise.
53332         * stdio-common/printf.h: Likewise.
53333         * stdlib/monetary.h: Likewise.
53334         * stdlib/random.c: Likewise.
53335         * stdlib/random_r.c: Likewise.
53336         * sysdeps/generic/Makefile: Likewise.
53337         * sysdeps/gnu/Makefile: Likewise.
53338         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
53339         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
53340         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
53341         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
53342         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
53343         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
53344         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
53345         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
53346         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
53347         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
53348         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
53349         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
53350         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
53351         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
53352         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
53353         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
53354         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
53355         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
53356         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
53357         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
53358         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
53359         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
53360         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
53361         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
53362         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
53363         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
53364         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
53365         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
53366         * sysdeps/mach/hurd/errnos.awk: Likewise.
53367         * sysdeps/mach/hurd/fork.c: Likewise.
53368         * sysdeps/mach/hurd/getcwd.c: Likewise.
53369         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
53370         * sysdeps/mach/hurd/mmap.c: Likewise.
53371         * sysdeps/mach/hurd/utimes.c: Likewise.
53372         * sysdeps/mach/hurd/xmknod.c: Likewise.
53373         * sysdeps/posix/profil.c: Likewise.
53374         * sysdeps/posix/readdir_r.c: Likewise.
53375         * sysdeps/powerpc/bits/mathdef.h: Likewise.
53376         * sysdeps/powerpc/bits/setjmp.h: Likewise.
53377         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
53378         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53379         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53380         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
53381         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53382         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
53383         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53384         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
53385         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53386         * sysdeps/pthread/lio_listio.c: Likewise.
53387         * sysdeps/sparc/dl-procinfo.h: Likewise.
53388         * sysdeps/unix/i386/sysdep.S: Likewise.
53389         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
53390         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
53391         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
53392         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
53393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
53394         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
53395         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
53396         * sysdeps/unix/sysv/linux/speed.c: Likewise.
53397         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
53398         * sysdeps/wordsize-32/divdi3.c: Likewise.
53399         * time/sys/time.h: Likewise.
53400         * wcsmbs/Makefile: Likewise.
53401
53402 2013-01-01  David S. Miller  <davem@davemloft.net>
53403
53404         * po/fr.po: Update from translation team.
53405
53406         * catgets/gencat.c: Update copyright year.
53407         * csu/version.c: Likewise.
53408         * debug/catchsegv.sh: Likewise.
53409         * debug/pcprofiledump.c: Likewise.
53410         * debug/xtrace.sh: Likewise.
53411         * elf/ldconfig.c: Likewise.
53412         * elf/ldd.bash.in: Likewise.
53413         * elf/pldd.c: Likewise.
53414         * elf/sotruss.ksh: Likewise.
53415         * elf/sprof.c: Likewise.
53416         * iconv/iconv_prog.c: Likewise.
53417         * iconv/iconvconfig.c: Likewise.
53418         * locale/programs/locale.c: Likewise.
53419         * locale/programs/localedef.c: Likewise.
53420         * login/programs/pt_chown.c: Likewise.
53421         * malloc/memusage.sh: Likewise.
53422         * malloc/memusagestat.c: Likewise.
53423         * malloc/mtrace.pl: Likewise.
53424         * nscd/nscd.c: Likewise.
53425         * nss/getent.c: Likewise.
53426         * nss/makedb.c: Likewise.
53427         * posix/getconf.c: Likewise.
53428
53429 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
53430
53431         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
53432         numbers.
53433
53434 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
53435
53436         * math/bits/mathcalls.h (modf): Use __nonnull.
53437
53438 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
53439
53440         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
53441         (split): Use macro CN instead of the bare value.
53442         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
53443         could be used.
53444         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
53445         instead of the bare value.
53446         (power1): Likewise.
53447
53448 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53449
53450         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
53451         __ATAN_TWOM.
53452         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53453
53454         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
53455         their values.
53456         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
53457         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
53458         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
53459         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
53460
53461 2012-12-28  Andreas Jaeger  <aj@suse.de>
53462
53463         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
53464         values are from Linux 3.7.
53465
53466         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
53467         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
53468
53469 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53470
53471         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
53472         TRUE case.
53473
53474         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
53475         (norm): Likewise.
53476         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
53477         variables with preprocessor constants.
53478         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53479         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
53480         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
53481
53482 2012-12-27  Bruno Haible  <bruno@clisp.org>
53483
53484         [BZ #14317]
53485         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
53486         only if needed.
53487
53488 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
53489
53490         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
53491         and use variable directly.
53492         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
53493
53494         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53495         MPONE.
53496         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
53497         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53498         variable MPONE.
53499         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
53500         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
53501         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
53502         include directive.  Remove local variable MPONE.
53503         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
53504         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
53505         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
53506
53507 2012-12-25  David S. Miller  <davem@davemloft.net>
53508
53509         * version.h (RELEASE): Set to "development".
53510         (VERSION): Set to "2.17.90".
53511         * NEWS: Add 2.18 section.
53512
53513 2012-12-21  David S. Miller  <davem@davemloft.net>
53514
53515         * po/hr.po: Update from translation team.
53516
53517 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
53518
53519         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
53520
53521 2012-12-19  Steve Ellcey  <sellcey@mips.com>
53522
53523         * NEWS:  Mention new memcpy for MIPS.
53524
53525 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
53526
53527         * manual/contrib.texi (Contributors): Spelling correction.
53528
53529 2012-12-15  David S. Miller  <davem@davemloft.net>
53530
53531         * po/ru.po: Update from translation team.
53532
53533 2012-12-13  David S. Miller  <davem@davemloft.net>
53534
53535         * NEWS: Mention IFUNC testsuite enhancements.
53536
53537         * po/pl.po: Update from translation team.
53538         * po/bg.po: Likewise.
53539
53540         * manual/contrib.texi (Contributors): Update entries for Hongjiu
53541         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
53542
53543 2012-12-11  David S. Miller  <davem@davemloft.net>
53544
53545         * po/sv.po: Update from translation team.
53546
53547         * po/vi.po: Update from translation team.
53548
53549         * po/cs.po: Update from translation team.
53550
53551         * po/de.po: Update from translation team.
53552         * po/eo.po: Likewise.
53553         * po/nl.po: Likewise.
53554
53555 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
53556
53557         [BZ #14246]
53558         * manual/argp.texi (Argp Helper Functions): Move node to follow
53559         Argp Parsing State.
53560
53561         [BZ #14872]
53562         * manual/conf.texi (Limits on File System Capacity): Mention if
53563         terminating null is included in the max size.
53564
53565 2012-12-10  Andreas Jaeger  <aj@suse.de>
53566
53567         * po/cs.po: Update from translation team.
53568
53569 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
53570
53571         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
53572         void pointer and cast to uintptr_t.
53573         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
53574         path.
53575         * sysdeps/s390/s390-64/memcpy.S: Likewise.
53576         * sysdeps/s390/s390-64/memset.S: Likewise.
53577
53578 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
53579
53580         [BZ #14833]
53581         * menual/message.texi (Message Translation): Fix typos.
53582         (Helper programs for gettext): Likewise.
53583
53584 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
53585
53586         [BZ #14898]
53587         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
53588         Change to -1.
53589
53590 2012-12-07  David S. Miller  <davem@davemloft.net>
53591
53592         * po/libc.pot: Update.
53593
53594 2012-12-07  Richard Henderson  <rth@redhat.com>
53595
53596         [BZ #10114]
53597         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
53598         normal/normal case to before the switch.
53599         (_FP_DIV): Likewise.
53600
53601 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
53602             Mike Frysinger  <vapier@gentoo.org>
53603
53604         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
53605         check for __NR_fadvise64_64.
53606
53607 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
53608
53609         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
53610         0, not just to plain "0" as a statement.
53611         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
53612         with cw.
53613
53614 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
53615
53616         * NEWS: Use sourceware.org in Bugzilla URL.
53617
53618 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
53619
53620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
53621         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
53622
53623         * stdio-common/tst-put-error.c (do_test): Add newline to the
53624         padded test to ensure flush.
53625
53626 2012-12-05  Jeff Law  <law@redhat.com>
53627
53628         * sunrpc/etc.rpc (fedfs_admin): Add entry.
53629
53630 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
53631
53632         * README: Don't refer to ports add-on as distributed separately.
53633         Mention AArch64 in list of systems supported in the ports add-on.
53634
53635         * LICENSES: Add more non-FSF copyright and license notices.
53636
53637         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
53638         ((unused)).
53639
53640         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
53641
53642         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
53643         10000 as width of padded output.
53644
53645 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53646
53647         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
53648
53649         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
53650         variable LX with __attribute__ ((unused)).
53651         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
53652         Likewise.
53653         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
53654         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
53655         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
53656         with __attribute__ ((unused)).
53657
53658 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
53659
53660         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
53661
53662 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53663
53664         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
53665         (CFLAGS-nldbl-acos.c): New variable.
53666         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
53667         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
53668         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
53669         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
53670         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
53671         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
53672         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
53673         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
53674         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
53675         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
53676         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
53677         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
53678         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
53679         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
53680         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
53681         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
53682         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
53683         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
53684         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
53685         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
53686         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
53687         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
53688         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
53689         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
53690         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
53691         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
53692         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
53693         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
53694         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
53695         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
53696         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
53697         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
53698         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
53699         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
53700         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
53701         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
53702         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
53703         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
53704         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
53705         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
53706         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
53707         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
53708         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
53709         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
53710         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
53711         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
53712         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
53713         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
53714         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
53715         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
53716         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
53717         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
53718         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
53719         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
53720         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
53721         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
53722         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
53723         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
53724         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
53725         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
53726         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
53727         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
53728         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
53729         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
53730         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
53731         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
53732         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
53733         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
53734         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
53735         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
53736         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
53737         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
53738         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
53739         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
53740         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
53741         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
53742         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
53743         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
53744         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
53745         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
53746         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
53747         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
53748         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
53749         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
53750         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
53751         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
53752         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
53753         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
53754         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
53755         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
53756         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
53757         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
53758         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
53759         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
53760         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
53761         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
53762         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
53763
53764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
53765         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
53766
53767         [BZ #14914]
53768         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
53769         whole low double instead of just low 47 bits when splitting values
53770         into two parts.
53771
53772 2012-12-03  Allan McRae  <allan@archlinux.org>
53773
53774         * manual/stdio.texi (Predefined Printf Handlers): Remove
53775         @hsep and @vsep usage.
53776
53777 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
53778
53779         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
53780         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
53781
53782 2012-12-03  Jeff Law  <law@redhat.com>
53783
53784         * time/sys/time.h (settimeofday): Do not mark TV argument
53785         as __nonnull.
53786
53787 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
53788
53789         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
53790         when currently writing and seek to current position when not.
53791         * libio/Makefile (tests): Remove bug-fclose1.
53792         * libio/bug-fclose1.c: Delete.
53793
53794 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
53795
53796         * manual/arith.texi (feenableexcept): Fix typo.
53797         (fedisableexcept): Likewise.
53798
53799 2012-11-30  Roland McGrath  <roland@hack.frob.com>
53800
53801         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
53802         second, differently-typed declaration, rather than a cast.
53803
53804 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
53805
53806         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
53807         * include/rpc/svc.h: ... here.
53808
53809 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
53810
53811         [BZ #13013]
53812         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
53813         depending n and resplen2 to catch cases where answer
53814         equals answerp2.
53815
53816 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
53817
53818         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
53819         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
53820
53821 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
53822
53823         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
53824
53825 2012-11-29  Roland McGrath  <roland@hack.frob.com>
53826
53827         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
53828
53829 2012-11-28  Jeff Law  <law@redhat.com>
53830
53831         [BZ #13761]
53832         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
53833         dataset_temporary.  Track alloca usage into alloca_used.
53834         If dataset is large allocate and release it via malloc/free.
53835
53836 2012-06-04  Florian Weimer  <fweimer@redhat.com>
53837
53838         [BZ #14197]
53839         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
53840
53841 2012-11-28  David S. Miller  <davem@davemloft.net>
53842
53843         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53844
53845 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
53846
53847         [BZ #14803]
53848         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
53849         of pi/2 rounded to nearest to 64 bits.
53850         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
53851         nearest to 64 bits.
53852         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
53853         bits.
53854
53855 2012-11-28  Jeff Law <law@redhat.com>
53856             Martin Osvald <mosvald@redhat.com>
53857
53858         [BZ #14889]
53859         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
53860         * sunrpc/svc.c: Include time.h.
53861         (__svc_accept_failed): New function.
53862         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
53863         any reason other than EINTR, call __svc_accept_failed.
53864         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
53865         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
53866
53867 2012-11-28  Andreas Schwab  <schwab@suse.de>
53868
53869         * scripts/abilist.awk: Also handle indirect functions in .opd
53870         section.
53871
53872 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
53873
53874         [BZ #13881]
53875         * sysdeps/x86/fpu/powl_helper.c: New file.
53876         * sysdeps/x86/fpu/Makefile: Likewise.
53877         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
53878         (p3): New object.
53879         (__ieee754_powl): Use __powl_helper for finite arguments except
53880         integer exponents below 8.
53881         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
53882         (p3): New object.
53883         (__ieee754_powl): Use __powl_helper for finite arguments except
53884         integer exponents below 8.
53885         * math/libm-test.inc (pow_test): Add more tests and enable some
53886         previously disabled tests.
53887         * sysdeps/i386/fpu/libm-test-ulps: Update.
53888         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53889
53890 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53891             Carlos O'Donell  <carlos_odonell@mentor.com>
53892
53893         * nss/makedb.c (is_prime): Assert that input is odd and greater
53894         than 4.  Note that fact in a comment too.
53895         (next_prime): Add 4 to input.
53896
53897 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
53898
53899         [BZ #11741]
53900         * libio/Makefile (tests): Add test case tst-fwrite-error.
53901         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
53902         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
53903         * libio/tst-fwrite-error.c: New test case.
53904
53905 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
53906
53907         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
53908         before casting to void *.
53909         * include/libc-internal.h (__pointer_type): New macro.
53910         (__integer_if_pointer_type_sub): Likewise.
53911         (__integer_if_pointer_type): Likewise.
53912         (cast_to_integer): Likewise.
53913         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
53914         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
53915         before casting to atomic64_t.
53916         (atomic_exchange_acq): Likewise.
53917         (__arch_exchange_and_add_body): Likewise.
53918         (__arch_add_body): Likewise.
53919         (atomic_add_negative): Likewise.
53920         (atomic_add_zero): Likewise.
53921
53922 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
53923
53924         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
53925         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
53926         (add_fdes): Likewise.
53927         (linear_search_fdes): Likewise.
53928         (binary_search_unencoded_fdes): Likewise.
53929
53930 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
53931
53932         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
53933
53934 2012-11-24  Adam Conrad  <adconrad@0c3.net>
53935
53936         * configure.in: Autodetect C++ header directories.
53937         * configure: Regenerated.
53938
53939 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
53940
53941         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
53942
53943 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
53944
53945         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53946
53947 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
53948
53949         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
53950         LDBL_MANT_DIG == 106]: Disable some tests.
53951         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
53952         Likewise.
53953         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
53954         Likewise.
53955
53956         [BZ #14871]
53957         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
53958         input for small inputs.  Return +/- pi/2 for large inputs.
53959         * math/libm-test.inc (atan_test): Add more tests.
53960
53961         * sysdeps/generic/unwind-dw2-fde-glibc.c
53962         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
53963         __attribute__ ((unused)).
53964
53965         [BZ #14645]
53966         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
53967         x * y if x and y are nonzero and z is zero.
53968
53969         [BZ #14811]
53970         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
53971         nonzero exponents with absolute value below 0x1p-117 to +/-
53972         0x1p-117.
53973
53974         [BZ #14869]
53975         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
53976         up arguments below 2**-450, not just those below 2**-500.
53977         * math/libm-test.inc (hypot_test): Add another test.
53978
53979         [BZ #14868]
53980         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
53981         Return a+b for ratio over 2**120, not 2**60.
53982         * math/libm-test.inc (hypot_test): Add another test.
53983
53984         * math/libm-test.inc (clog_test): Use
53985         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
53986         (clog10_test): Likewise.
53987
53988         [BZ #6778]
53989         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
53990
53991 2012-11-22  Andreas Schwab  <schwab@suse.de>
53992
53993         * sysdeps/i386/fpu/libm-test-ulps: Update.
53994
53995 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
53996
53997         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
53998         printf output with newline.
53999
54000 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
54001
54002         [BZ #14865]
54003         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
54004         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
54005         -z nodlopen, -z initfirst and -z execstack support.
54006         * configure: Regenerated.
54007
54008         * elf/elf.h (DF_1_NODIRECT): New macro.
54009         (DF_1_IGNMULDEF): Likewise.
54010         (DF_1_NOKSYMS): Likewise.
54011         (DF_1_NOHDR): Likewise.
54012         (DF_1_EDITED): Likewise.
54013         (DF_1_NORELOC): Likewise.
54014         (DF_1_SYMINTPOSE): Likewise.
54015         (DF_1_GLOBAUDIT): Likewise.
54016         (DF_1_SINGLETON): Likewise.
54017         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
54018         DT_1_SUPPORTED_MASK bits.
54019         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
54020
54021 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
54022
54023         * sysdeps/unix/make-syscalls.sh: Document prefixes.
54024
54025 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
54026
54027         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
54028         macro.
54029
54030         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
54031         (sendmmsg): Move declarations...
54032         * socket/sys/socket.h: ... here.
54033         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
54034         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
54035         include it from...
54036         * socket/recvmmsg.c: ... this new file.
54037         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
54038         (sendmmsg): Rename to __sendmmsg, create weak alias and make
54039         definition of __sendmmsg hidden.
54040         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
54041         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
54042         Move ENOSYS stub into and include it from...
54043         * socket/sendmmsg.c: ... this new file.
54044         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
54045         (sysdep_routines): Move recvmmsg and sendmmsg...
54046         * socket/Makefile (routines): ... here.
54047         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
54048         (GLIBC_PRIVATE): Add __sendmmsg.
54049         * include/sys/socket.h (__sendmmsg): Add declarations.
54050         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
54051         sendmmsg.
54052
54053 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
54054
54055         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
54056         variable I1 with __attribute__ ((unused)).
54057         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
54058
54059 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54060
54061         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
54062         DUMMY variables with __attribute__ ((unused)).
54063
54064         * bits/byteswap.h: Include <bits/types.h>.
54065         (__bswap_64): Use __uint64_t instead of unsigned long long int.
54066
54067 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54068
54069         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
54070         string_t.  Do not manually set errno.
54071         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
54072         length with __strnlen.  Make sure to both set errno and return it on
54073         failure.
54074
54075 2012-11-19  David S. Miller  <davem@davemloft.net>
54076
54077         With help from Joseph Myers.
54078         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
54079         very large arguments properly.
54080         * math/libm-test.inc (atan_test): New tests.
54081         (atan2_test): New tests.
54082         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54083         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54084
54085 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54086
54087         [BZ #14856]
54088         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
54089         Define to 3.
54090
54091         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
54092         [POSIX] (EADDRNOTAVAIL): Likewise.
54093         [POSIX] (EAFNOSUPPORT): Likewise.
54094         [POSIX] (EALREADY): Likewise.
54095         [POSIX] (ECONNABORTED): Likewise.
54096         [POSIX] (ECONNREFUSED): Likewise.
54097         [POSIX] (ECONNRESET): Likewise.
54098         [POSIX] (EDESTADDRREQ): Likewise.
54099         [POSIX] (EDQUOT): Likewise.
54100         [POSIX] (EHOSTUNREACH): Likewise.
54101         [POSIX] (EIDRM): Likewise.
54102         [POSIX] (EISCONN): Likewise.
54103         [POSIX] (ELOOP): Likewise.
54104         [POSIX] (EMULTIHOP): Likewise.
54105         [POSIX] (ENETDOWN): Likewise.
54106         [POSIX] (ENETUNREACH): Likewise.
54107         [POSIX] (ENOBUFS): Likewise.
54108         [POSIX] (ENODATA): Likewise.
54109         [POSIX] (ENOLINK): Likewise.
54110         [POSIX] (ENOMSG): Likewise.
54111         [POSIX] (ENOPROTOOPT): Likewise.
54112         [POSIX] (ENOSR): Likewise.
54113         [POSIX] (ENOSTR): Likewise.
54114         [POSIX] (ENOTCONN): Likewise.
54115         [POSIX] (ENOTSOCK): Likewise.
54116         [POSIX] (EOPNOTSUPP): Likewise.
54117         [POSIX] (EOVERFLOW): Likewise.
54118         [POSIX] (EPROTO): Likewise.
54119         [POSIX] (EPROTONOSUPPORT): Likewise.
54120         [POSIX] (EPROTOTYPE): Likewise.
54121         [POSIX] (ESTALE): Likewise.
54122         [POSIX] (ETIME): Likewise.
54123         [POSIX] (ETXTBSY): Likewise.
54124         [POSIX] (EWOULDBLOCK): Likewise.
54125         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
54126         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
54127         [POSIX] (SEEK_CUR): Likewise.
54128         [POSIX] (SEEK_END): Likewise.
54129         [POSIX || UNIX98] (mode_t): Do not require.
54130         [POSIX] (off_t): Likewise.
54131         [POSIX] (pid_t): Likewise.
54132         [POSIX] (sys/stat.h): Do not allow header.
54133         [POSIX] (unistd.h): Likewise.
54134         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
54135         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
54136         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
54137         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
54138         require.
54139         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
54140         sigevent): Specify elements.
54141         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
54142         entry.
54143         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
54144         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
54145
54146         * conform/data/cpio.h-data [POSIX]: Disable whole file.
54147         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
54148         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
54149         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
54150         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
54151         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
54152         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
54153         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
54154         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
54155         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
54156         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
54157         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
54158         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
54159         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
54160         Likewise.
54161         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
54162         Likewise.
54163         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
54164         Likewise.
54165         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
54166         Likewise.
54167         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
54168         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
54169         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
54170         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
54171         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
54172         Specify lower bound on value.
54173         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
54174         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
54175         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
54176         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
54177         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
54178         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
54179         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
54180         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
54181         value.
54182         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
54183         as optional.
54184         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
54185         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
54186         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
54187         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
54188         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
54189         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
54190         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
54191         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
54192         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
54193         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
54194         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
54195         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
54196         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
54197         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
54198         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
54199         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
54200         entry.
54201         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
54202         optional.
54203         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
54204         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
54205         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
54206         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
54207         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
54208         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
54209         Likewise.
54210         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
54211         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
54212         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
54213         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
54214         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
54215         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
54216         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
54217         as optional.
54218         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
54219         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
54220         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
54221         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
54222         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
54223         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
54224         specify as optional.
54225         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
54226         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
54227         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
54228         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
54229         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
54230         [XPG3] (NL_LANGMAX): Likewise.
54231         [POSIX || XPG3] (NL_MSGMAX): Likewise.
54232         [POSIX || XPG3] (NL_NMAX): Likewise.
54233         [POSIX || XPG3] (NL_SETMAX): Likewise.
54234         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
54235         [XPG3] (NZERO): Likewise.
54236         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
54237         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
54238         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
54239         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
54240         (REG_ERANGE): Expect.
54241         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
54242         optional-constant.
54243         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
54244         Use (void) in prototype.
54245         [POSIX] (*_t): Allow.
54246         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
54247         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
54248         (WRDE_BADVAL): Expect.
54249
54250         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
54251         expect.
54252         [XPG3 || XPG4] (O_RSYNC): Likewise.
54253         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
54254         Likewise.
54255         [XPG3 || XPG4] (pthread_sigmask): Likewise.
54256         [XPG3 || XPG4] (sigqueue): Likewise.
54257         [XPG3 || XPG4] (sigtimedwait): Likewise.
54258         [XPG3 || XPG4] (sigwaitinfo): Likewise.
54259         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
54260         [XPG3 || XPG4] (vsnprintf): Likewise.
54261         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
54262         Likewise.
54263         [XPG3 || XPG4] (blksize_t): Likewise.
54264         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
54265         Likewise.
54266         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
54267         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
54268         [XPG3 || XPG4] (struct itimerspec): Likewise.
54269         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
54270         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
54271         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
54272         [XPG3 || XPG4] (clockid_t): Likewise.
54273         [XPG3 || XPG4] (timer_t): Likewise.
54274         [XPG3 || XPG4] (clock_getres): Likewise.
54275         [XPG3 || XPG4] (clock_gettime): Likewise.
54276         [XPG3 || XPG4] (clock_settime): Likewise.
54277         [XPG3 || XPG4] (nanosleep): Likewise.
54278         [XPG3 || XPG4] (timer_create): Likewise.
54279         [XPG3 || XPG4] (timer_delete): Likewise.
54280         [XPG3 || XPG4] (timer_gettime): Likewise.
54281         [XPG3 || XPG4] (timer_getoverrun): Likewise.
54282         [XPG3 || XPG4] (timer_settime): Likewise.
54283         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
54284         [XPG3 || XPG4] (getlogin_r): Likewise.
54285         [XPG3 || XPG4] (pread): Likewise.
54286         [XPG3 || XPG4] (pthread_atfork): Likewise.
54287         [XPG3 || XPG4] (pwrite): Likewise.
54288
54289         [BZ #14835]
54290         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
54291         <bits/siginfo.h>.
54292
54293 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54294
54295         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
54296         finalizing MALLSTREAM.
54297
54298         * sysdeps/mach/hurd/syncfs.c: New file.
54299
54300 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
54301
54302         [BZ #14719]
54303         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
54304         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
54305         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
54306         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
54307         (_nss_dns_gethostbyname4_r): Likewise.
54308         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
54309         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
54310
54311 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
54312
54313         [BZ #13763]
54314         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
54315
54316 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
54317
54318         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
54319         * elf/cache.c (print_entry): Print ",AArch64" for
54320         FLAG_AARCH64_LIB64
54321
54322         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
54323         * elf/cache.c (print_entry): Print ",hard-float" for
54324         FLAG_ARM_LIBHF.
54325
54326 2012-11-18  David S. Miller  <davem@davemloft.net>
54327
54328         With help from Joseph Myers.
54329         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
54330         cutoff to 2**-13.
54331         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
54332         cutoff to 2**-25.
54333         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
54334         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
54335         small.
54336         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
54337         * math/libm-test.inc (y0_test): New tests.
54338         (y1_test): New tests.
54339         * sysdeps/i386/fpu/libm-test-ulps: Update.
54340         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54341         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54342
54343 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
54344
54345         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
54346         64-bit targets.
54347         * configure: Regenerated.
54348
54349 2012-11-17  David S. Miller  <davem@davemloft.net>
54350
54351         [BZ #14811]
54352         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
54353         nonzero exponents with absolute value below 0x1p-128 to +/-
54354         0x1p-128.
54355
54356 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
54357
54358         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
54359
54360         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
54361
54362         * posix/getconf-speclist.c: New file.
54363         * posix/posix-envs.def: Likewise.
54364         * posix/confstr.c (START_ENV_GROUP): New macro.
54365         (END_ENV_GROUP): Likewise.
54366         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54367         (KNOWN_PRESENT_ENV_STRING): Likewise.
54368         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54369         (UNKNOWN_ENVIRONMENT): Likewise.
54370         (confstr): Include posix-envs.def instead of handling
54371         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
54372         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
54373         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
54374         (END_ENV_GROUP): Likewise.
54375         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54376         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54377         (UNKNOWN_ENVIRONMENT): Likewise.
54378         (__sysconf): Include posix-envs.def instead of handling associated
54379         cases directly here.
54380         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
54381         preprocessing getconf-speclist.c rather than running getconf or
54382         generating empty file.
54383
54384 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
54385
54386         * scripts/check-local-headers.sh: Ignore 'mach' headers.
54387
54388 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
54389
54390         [BZ #14672]
54391         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
54392
54393 2012-11-16  David S. Miller  <davem@davemloft.net>
54394
54395         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
54396         smaller than LDBL_EPSILON/2.0L, just return xm1.
54397
54398 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
54399
54400         * elf/tst-array1.c (init): Set constructor priority to 1000.
54401         (fini): Set destructor priority to 1000.
54402         * elf/tst-array2dep.c: Likewise.
54403
54404 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54405
54406         [BZ #11741]
54407         * libio/fileops.c (_IO_new_file_write): Correctly return error.
54408         (_IO_new_file_xsputn): Also return EOF if none of the input
54409         data was written when overflow failed.
54410         * libio/iopadn.c (_IO_padn): Likewise.
54411         * libio/iowpadn.c (_IO_wpadn): Likewise.
54412         * stdio-common/tst-put-error.c: Add copyright notice.
54413         (do_test): Add case for printing padded string.
54414         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
54415         _IO_padn returned error.
54416         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
54417         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
54418         return EOF.
54419
54420 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54421
54422         * libio/libioP.h: Add comment note that the references to C++
54423         bits are now obsolete.
54424
54425 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54426
54427         * math/libm-test.inc (check_complex): Use asprintf.
54428
54429 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
54430
54431         * debug/pcprofiledump.c (print_version): Update copyright year.
54432         * malloc/memusagestat.c (print_version): Likewise.
54433
54434 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
54435
54436         [BZ #14831]
54437         * elf/Makefile (tests): Add tst-audit8.
54438         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
54439         ($(objpfx)tst-audit8.out): New target.
54440         (tst-audit8-ENV): New variable.
54441         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
54442         audit if l_reloc_result is NULL.
54443         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
54444         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
54445         * elf/tst-audit8.c: New file.
54446
54447 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54448
54449         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
54450         * misc/Makefile (CFLAGS-select.c): Define.
54451         * posix/Makefile (CFLAGS-pause.c): Define.
54452
54453 2012-11-13  David S. Miller  <davem@davemloft.net>
54454
54455         * crypt/Makefile: Move test targets after toplevel Rules
54456         inclusion.  Grab any necessary sysdep routines when linking.
54457         * crypt/md5.c (md5_process_block): Remove define, we will always
54458         name it __md5_process_block.
54459         (md5_finish_ctx): Update md5_process_block call.
54460         (md5_stream): Likewise.
54461         (md5_process_bytes): Likewise.
54462         (md5_process_block): Rename to __md5_process_block and move to ...
54463         * crypt/md5-block.c: ... here.
54464         * crypt/sha256.c (sha256_process_block): Move to ...
54465         * crypt/sha256-block.c: ... here.
54466         * crypt/sha512.c (sha512_process_block): Move to ...
54467         * crypt/sha512-block.c: ... here.
54468         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
54469         path.
54470         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
54471         * sysdeps/sparc/sparc64/multiarch/Makefile
54472         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
54473         crypt subdir.
54474         (localedef-aux): Add md5 crypto assembler when in locale subdir.
54475         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
54476         multiarch changes.
54477         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
54478         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
54479         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
54480         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
54481         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
54482         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
54483         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
54484         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
54485         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
54486         file.
54487         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
54488         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
54489         file.
54490         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
54491
54492 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
54493
54494         * timezone/tzselect.ksh: Update from tzcode git revision
54495         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
54496         * timezone/zdump.c: Likewise.
54497         * timezone/zic.c: Likewise.
54498         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
54499         in TZVERSION setting, not $(PKGVERSION).
54500         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
54501         REPORT_BUGS_TO settings.
54502
54503         [BZ #14838]
54504         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
54505         macro.
54506
54507 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54508
54509         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
54510         detection to immediately after _FP_ROUND().
54511         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
54512         bits are 0.
54513
54514 2012-11-11  David S. Miller  <davem@davemloft.net>
54515
54516         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
54517         inttypes.h
54518         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
54519         __close rather than their public counterparts.
54520
54521 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
54522
54523         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
54524         file.
54525         [UNIX98] (sem_timedwait): Do not expect.
54526         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
54527         [XPG4 || UNIX98] (sockatmark): Do not expect.
54528         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
54529         (clock_getcpuclockid): Do not expect.
54530         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
54531         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
54532         Do not expect.
54533         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
54534         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
54535         [UNIX98] (vwscanf): Likewise.
54536         [UNIX98] (vswscanf): Likewise.
54537
54538 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
54539
54540         * timezone/version.h: Remove file.
54541         * timezone/README: Do not refer to version.h.
54542         * timezone/Makefile ($(objpfx)zic.o): New dependency on
54543         $(objpfx)version.h.
54544         ($(objpfx)zdump.o): Likewise.
54545         ($(objpfx)version.h): New target.
54546
54547         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
54548         2012i.
54549         * timezone/README: Don't mention modification to tzselect.ksh.
54550         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
54551         work on unmodified tzselect.ksh.  Substitute version numbers in
54552         tzselect.ksh.
54553
54554         * Makefile (format-me): Remove.
54555         (INSTALL): Adjust indentation.  Use commands directly instead of
54556         using $(format-me).
54557
54558         * aclocal.m4 (ACX_PKGVERSION): New macro.
54559         (ACX_BUGURL): Likewise.
54560         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
54561         (PKGVERSION): New AC_DEFINE_UNQUOTED.
54562         (REPORT_BUGS_TO): Likewise.
54563         * configure: Regenerated.
54564         * config.h.in (PKGVERSION): New macro.
54565         (REPORT_BUGS_TO): Likewise.
54566         * config.make.in (PKGVERSION): New variable.
54567         (PKGVERSION_TEXI): Likewise.
54568         (REPORT_BUGS_TO): Likewise.
54569         (REPORT_BUGS_TEXI): Likewise.
54570         * Makefile (format-me): Use -I$(common-objpfx)manual.
54571         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
54572         ($(common-objpfx)manual/%): New target.
54573         (manual/%): Remove target.
54574         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
54575         (print_version): Use PKGVERSION.
54576         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
54577         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
54578         and REPORT_BUGS_TO.
54579         ($(objpfx)xtrace): Likewise.
54580         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
54581         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
54582         (print_version): Use PKGVERSION.
54583         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
54584         (do_version): Use PKGVERSION.
54585         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
54586         REPORT_BUGS_TO.
54587         (common-ldd-rewrite): Likewise.
54588         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
54589         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
54590         (print_version): Use PKGVERSION.
54591         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
54592         * elf/pldd.c (argp_program_bug_address): Remove variable.
54593         (more_help): New function.
54594         (argp): Use more_help.
54595         (print_version): Use PKGVERSION.
54596         * elf/sln.c (main): Use PKGVERSION.
54597         (usage): Use REPORT_BUGS_TO.
54598         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
54599         (top level): Use PKGVERSION.
54600         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
54601         (print_version): Use PKGVERSION.
54602         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
54603         (print_version): Use PKGVERSION.
54604         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
54605         (print_version): Use PKGVERSION.
54606         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
54607         (print_version): Use PKGVERSION.
54608         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
54609         (print_version): Use PKGVERSION.
54610         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
54611         (print_version): Use PKGVERSION.
54612         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
54613         and BUGURL.
54614         ($(objpfx)memusage): Likewise.
54615         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
54616         (do_version): Use PKGVERSION.
54617         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
54618         (print_version): Use PKGVERSION.
54619         * malloc/mtrace.pl ($PACKAGE): Remove variable.
54620         ($PKGVERSION): New variable.
54621         ($REPORT_BUGS_TO): Likewise.
54622         (usage): Use $REPORT_BUGS_TO.
54623         (top level): Use $PKGVERSION.
54624         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
54625         ($(objpfx)pkgvers.texi): New rule.
54626         ($(objpfx)stamp-pkgvers): Likewise.
54627         * manual/install.texi: Include pkgvers.texi.
54628         (--with-pkgversion): Document new configure option.
54629         (--with-bugurl): Likewise.
54630         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
54631         than necessarily for this particular distribution.  Use
54632         REPORT_BUGS_TO for where to report bugs.
54633         * INSTALL: Regenerated.
54634         * manual/libc.texinfo: Include pkgvers.texi.
54635         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
54636         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
54637         (print_version): Use PKGVERSION.
54638         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
54639         (print_version): Use PKGVERSION.
54640         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
54641         (print_version): Use PKGVERSION.
54642         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
54643         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
54644         macro.
54645         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
54646         (print_version): Use PKGVERSION.
54647         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
54648         (print_version): Use PKGVERSION.
54649         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
54650         and PKGVERSION.
54651
54652         * timezone/checktab.awk: Update from tzcode 2012i.
54653         * timezone/ialloc.c: Likewise.
54654         * timezone/private.h: Likewise.
54655         * timezone/scheck.c: Likewise.
54656         * timezone/tzfile.h: Likewise.
54657         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
54658         (TZVERSION): Hardcode tzcode version number.
54659         * timezone/zdump.c: Update from tzcode 2012i.
54660         * timezone/zic.c: Likewise.
54661         * timezone/version.h: New file.
54662         * timezone/README: Describe version.h.  Update upstream location.
54663
54664         [BZ #14824]
54665         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
54666         (mktemp): Enable declaration.
54667         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
54668         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
54669         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
54670         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
54671         Likewise.
54672         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
54673         Likewise.
54674         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
54675         Likewise.
54676         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
54677         Likewise.
54678         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
54679         Likewise.
54680         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
54681         Likewise.
54682
54683         [BZ #14821]
54684         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
54685         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
54686         for copies of such integer values.
54687         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
54688         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
54689
54690 2012-11-09  Andreas Jaeger  <aj@suse.de>
54691
54692         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
54693         definitions and declarations that are provided by
54694         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
54695
54696 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54697
54698         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
54699         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
54700         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
54701         definition.
54702
54703 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54704
54705         * elf/elf.h: Update comment before AArch64 relocations.
54706
54707 2012-11-07  David S. Miller  <davem@davemloft.net>
54708
54709         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
54710         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
54711         (__start_context): Declare.
54712         (__makecontext_ret): Delete.
54713         (__makecontext): Hook up __start_context instead of
54714         __makecontext_ret.
54715         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
54716         (sysdep_routines): Add __start_context when in stdlib.
54717
54718 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54719
54720         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
54721         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
54722         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
54723         hardcoded "nm".
54724         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
54725         (READELF): New variable.  Use it instead of hardcoded "readelf".
54726
54727 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
54728
54729         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
54730         * sysdeps/x86/Makefile: Here.
54731         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
54732         * sysdeps/x86/tst-xmmymm.sh: This.
54733
54734 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54735
54736         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
54737         expectations.
54738         [UNIX98] (pthread_barrier_t): Do not expect.
54739         [UNIX98] (pthread_barrierattr_t): Likewise.
54740         [UNIX98] (pthread_spinlock_t): Likewise.
54741         [UNIX98] (pthread_barrier_destroy): Likewise.
54742         [UNIX98] (pthread_barrier_init): Likewise.
54743         [UNIX98] (pthread_barrier_wait): Likewise.
54744         [UNIX98] (pthread_barrierattr_destroy): Likewise.
54745         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
54746         [UNIX98] (pthread_barrierattr_init): Likewise.
54747         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
54748         [UNIX98] (pthread_getcpuclockid): Likewise.
54749         [UNIX98] (pthread_mutex_timedlock): Likewise.
54750         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
54751         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
54752         [UNIX98] (pthread_sigmask): Likewise.
54753         [UNIX98] (pthread_spin_destroy): Likewise.
54754         [UNIX98] (pthread_spin_init): Likewise.
54755         [UNIX98] (pthread_spin_lock): Likewise.
54756         [UNIX98] (pthread_spin_trylock): Likewise.
54757         [UNIX98] (pthread_spin_unlock): Likewise.
54758         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
54759         Do not expect.
54760         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
54761         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
54762         [XPG3 || XPG4] (pthread_cond_t): Likewise.
54763         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
54764         [XPG3 || XPG4] (pthread_key_t): Likewise.
54765         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
54766         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
54767         [XPG3 || XPG4] (pthread_once_t): Likewise.
54768         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
54769         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
54770         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
54771         [XPG3 || XPG4] (pthread_t): Likewise.
54772
54773         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
54774         not expect.
54775         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
54776
54777         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
54778         Change function return type to int.
54779
54780         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
54781         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
54782         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
54783         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
54784         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
54785         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
54786         [!POSIX] (posix_madvise): Likewise.
54787         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
54788         && !UNIX98].
54789         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
54790         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
54791         (mode_t): Likewise.
54792         (posix_mem_offset): Likewise.
54793         (posix_typed_mem_get_info): Likewise.
54794         (posix_typed_mem_open): Likewise.
54795
54796         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
54797         Change condition to [XOPEN2K8].
54798
54799         * conform/conformtest.pl: Preprocess allow-header data with -x c
54800         instead of from stdin.
54801         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
54802         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
54803         [C99-based standards] (cerfc): Likewise.
54804         [C99-based standards] (cexp2): Likewise.
54805         [C99-based standards] (cexpm1): Likewise.
54806         [C99-based standards] (clog10): Likewise.
54807         [C99-based standards] (clog1p): Likewise.
54808         [C99-based standards] (clog2): Likewise.
54809         [C99-based standards] (clgamma): Likewise.
54810         [C99-based standards] (ctgamma): Likewise.
54811         [C99-based standards] (cerff): Likewise.
54812         [C99-based standards] (cerfcf): Likewise.
54813         [C99-based standards] (cexp2f): Likewise.
54814         [C99-based standards] (cexpm1f): Likewise.
54815         [C99-based standards] (clog10f): Likewise.
54816         [C99-based standards] (clog1pf): Likewise.
54817         [C99-based standards] (clog2f): Likewise.
54818         [C99-based standards] (clgammaf): Likewise.
54819         [C99-based standards] (ctgammaf): Likewise.
54820         [C99-based standards] (cerfl): Likewise.
54821         [C99-based standards] (cerfcl): Likewise.
54822         [C99-based standards] (cexp2l): Likewise.
54823         [C99-based standards] (cexpm1l): Likewise.
54824         [C99-based standards] (clog10l): Likewise.
54825         [C99-based standards] (clog1pl): Likewise.
54826         [C99-based standards] (clog2l): Likewise.
54827         [C99-based standards] (clgammal): Likewise.
54828         [C99-based standards] (ctgammal): Likewise.
54829         * conform/data/inttypes.h-data [C99-based standards]: Include
54830         stdint.h-data.  Remove all expectations for stdint.h contents.
54831         [C99-based standards] (PRI*): Do not allow.
54832         [C99-based standards] (SCN*): Likewise.
54833         [C99-based standards] (*_t): Likewise.
54834         [C99-based-standards] (PRId8): Expect macro.
54835         [C99-based-standards] (PRIi8): Likewise.
54836         [C99-based-standards] (PRIo8): Likewise.
54837         [C99-based-standards] (PRIu8): Likewise.
54838         [C99-based-standards] (PRIx8): Likewise.
54839         [C99-based-standards] (PRIX8): Likewise.
54840         [C99-based-standards] (SCNd8): Likewise.
54841         [C99-based-standards] (SCNi8): Likewise.
54842         [C99-based-standards] (SCNo8): Likewise.
54843         [C99-based-standards] (SCNu8): Likewise.
54844         [C99-based-standards] (SCNx8): Likewise.
54845         [C99-based-standards] (PRIdLEAST8): Likewise.
54846         [C99-based-standards] (PRIiLEAST8): Likewise.
54847         [C99-based-standards] (PRIoLEAST8): Likewise.
54848         [C99-based-standards] (PRIuLEAST8): Likewise.
54849         [C99-based-standards] (PRIxLEAST8): Likewise.
54850         [C99-based-standards] (PRIXLEAST8): Likewise.
54851         [C99-based-standards] (SCNdLEAST8): Likewise.
54852         [C99-based-standards] (SCNiLEAST8): Likewise.
54853         [C99-based-standards] (SCNoLEAST8): Likewise.
54854         [C99-based-standards] (SCNuLEAST8): Likewise.
54855         [C99-based-standards] (SCNxLEAST8): Likewise.
54856         [C99-based-standards] (PRIdFAST8): Likewise.
54857         [C99-based-standards] (PRIiFAST8): Likewise.
54858         [C99-based-standards] (PRIoFAST8): Likewise.
54859         [C99-based-standards] (PRIuFAST8): Likewise.
54860         [C99-based-standards] (PRIxFAST8): Likewise.
54861         [C99-based-standards] (PRIXFAST8): Likewise.
54862         [C99-based-standards] (SCNdFAST8): Likewise.
54863         [C99-based-standards] (SCNiFAST8): Likewise.
54864         [C99-based-standards] (SCNoFAST8): Likewise.
54865         [C99-based-standards] (SCNuFAST8): Likewise.
54866         [C99-based-standards] (SCNxFAST8): Likewise.
54867         [C99-based-standards] (PRId16): Likewise.
54868         [C99-based-standards] (PRIi16): Likewise.
54869         [C99-based-standards] (PRIo16): Likewise.
54870         [C99-based-standards] (PRIu16): Likewise.
54871         [C99-based-standards] (PRIx16): Likewise.
54872         [C99-based-standards] (PRIX16): Likewise.
54873         [C99-based-standards] (SCNd16): Likewise.
54874         [C99-based-standards] (SCNi16): Likewise.
54875         [C99-based-standards] (SCNo16): Likewise.
54876         [C99-based-standards] (SCNu16): Likewise.
54877         [C99-based-standards] (SCNx16): Likewise.
54878         [C99-based-standards] (PRIdLEAST16): Likewise.
54879         [C99-based-standards] (PRIiLEAST16): Likewise.
54880         [C99-based-standards] (PRIoLEAST16): Likewise.
54881         [C99-based-standards] (PRIuLEAST16): Likewise.
54882         [C99-based-standards] (PRIxLEAST16): Likewise.
54883         [C99-based-standards] (PRIXLEAST16): Likewise.
54884         [C99-based-standards] (SCNdLEAST16): Likewise.
54885         [C99-based-standards] (SCNiLEAST16): Likewise.
54886         [C99-based-standards] (SCNoLEAST16): Likewise.
54887         [C99-based-standards] (SCNuLEAST16): Likewise.
54888         [C99-based-standards] (SCNxLEAST16): Likewise.
54889         [C99-based-standards] (PRIdFAST16): Likewise.
54890         [C99-based-standards] (PRIiFAST16): Likewise.
54891         [C99-based-standards] (PRIoFAST16): Likewise.
54892         [C99-based-standards] (PRIuFAST16): Likewise.
54893         [C99-based-standards] (PRIxFAST16): Likewise.
54894         [C99-based-standards] (PRIXFAST16): Likewise.
54895         [C99-based-standards] (SCNdFAST16): Likewise.
54896         [C99-based-standards] (SCNiFAST16): Likewise.
54897         [C99-based-standards] (SCNoFAST16): Likewise.
54898         [C99-based-standards] (SCNuFAST16): Likewise.
54899         [C99-based-standards] (SCNxFAST16): Likewise.
54900         [C99-based-standards] (PRId32): Likewise.
54901         [C99-based-standards] (PRIi32): Likewise.
54902         [C99-based-standards] (PRIo32): Likewise.
54903         [C99-based-standards] (PRIu32): Likewise.
54904         [C99-based-standards] (PRIx32): Likewise.
54905         [C99-based-standards] (PRIX32): Likewise.
54906         [C99-based-standards] (SCNd32): Likewise.
54907         [C99-based-standards] (SCNi32): Likewise.
54908         [C99-based-standards] (SCNo32): Likewise.
54909         [C99-based-standards] (SCNu32): Likewise.
54910         [C99-based-standards] (SCNx32): Likewise.
54911         [C99-based-standards] (PRIdLEAST32): Likewise.
54912         [C99-based-standards] (PRIiLEAST32): Likewise.
54913         [C99-based-standards] (PRIoLEAST32): Likewise.
54914         [C99-based-standards] (PRIuLEAST32): Likewise.
54915         [C99-based-standards] (PRIxLEAST32): Likewise.
54916         [C99-based-standards] (PRIXLEAST32): Likewise.
54917         [C99-based-standards] (SCNdLEAST32): Likewise.
54918         [C99-based-standards] (SCNiLEAST32): Likewise.
54919         [C99-based-standards] (SCNoLEAST32): Likewise.
54920         [C99-based-standards] (SCNuLEAST32): Likewise.
54921         [C99-based-standards] (SCNxLEAST32): Likewise.
54922         [C99-based-standards] (PRIdFAST32): Likewise.
54923         [C99-based-standards] (PRIiFAST32): Likewise.
54924         [C99-based-standards] (PRIoFAST32): Likewise.
54925         [C99-based-standards] (PRIuFAST32): Likewise.
54926         [C99-based-standards] (PRIxFAST32): Likewise.
54927         [C99-based-standards] (PRIXFAST32): Likewise.
54928         [C99-based-standards] (SCNdFAST32): Likewise.
54929         [C99-based-standards] (SCNiFAST32): Likewise.
54930         [C99-based-standards] (SCNoFAST32): Likewise.
54931         [C99-based-standards] (SCNuFAST32): Likewise.
54932         [C99-based-standards] (SCNxFAST32): Likewise.
54933         [C99-based-standards] (PRId64): Likewise.
54934         [C99-based-standards] (PRIi64): Likewise.
54935         [C99-based-standards] (PRIo64): Likewise.
54936         [C99-based-standards] (PRIu64): Likewise.
54937         [C99-based-standards] (PRIx64): Likewise.
54938         [C99-based-standards] (PRIX64): Likewise.
54939         [C99-based-standards] (SCNd64): Likewise.
54940         [C99-based-standards] (SCNi64): Likewise.
54941         [C99-based-standards] (SCNo64): Likewise.
54942         [C99-based-standards] (SCNu64): Likewise.
54943         [C99-based-standards] (SCNx64): Likewise.
54944         [C99-based-standards] (PRIdLEAST64): Likewise.
54945         [C99-based-standards] (PRIiLEAST64): Likewise.
54946         [C99-based-standards] (PRIoLEAST64): Likewise.
54947         [C99-based-standards] (PRIuLEAST64): Likewise.
54948         [C99-based-standards] (PRIxLEAST64): Likewise.
54949         [C99-based-standards] (PRIXLEAST64): Likewise.
54950         [C99-based-standards] (SCNdLEAST64): Likewise.
54951         [C99-based-standards] (SCNiLEAST64): Likewise.
54952         [C99-based-standards] (SCNoLEAST64): Likewise.
54953         [C99-based-standards] (SCNuLEAST64): Likewise.
54954         [C99-based-standards] (SCNxLEAST64): Likewise.
54955         [C99-based-standards] (PRIdFAST64): Likewise.
54956         [C99-based-standards] (PRIiFAST64): Likewise.
54957         [C99-based-standards] (PRIoFAST64): Likewise.
54958         [C99-based-standards] (PRIuFAST64): Likewise.
54959         [C99-based-standards] (PRIxFAST64): Likewise.
54960         [C99-based-standards] (PRIXFAST64): Likewise.
54961         [C99-based-standards] (SCNdFAST64): Likewise.
54962         [C99-based-standards] (SCNiFAST64): Likewise.
54963         [C99-based-standards] (SCNoFAST64): Likewise.
54964         [C99-based-standards] (SCNuFAST64): Likewise.
54965         [C99-based-standards] (SCNxFAST64): Likewise.
54966         [C99-based-standards] (PRIdMAX): Likewise.
54967         [C99-based-standards] (PRIiMAX): Likewise.
54968         [C99-based-standards] (PRIoMAX): Likewise.
54969         [C99-based-standards] (PRIuMAX): Likewise.
54970         [C99-based-standards] (PRIxMAX): Likewise.
54971         [C99-based-standards] (PRIXMAX): Likewise.
54972         [C99-based-standards] (SCNdMAX): Likewise.
54973         [C99-based-standards] (SCNiMAX): Likewise.
54974         [C99-based-standards] (SCNoMAX): Likewise.
54975         [C99-based-standards] (SCNuMAX): Likewise.
54976         [C99-based-standards] (SCNxMAX): Likewise.
54977         [C99-based-standards] (PRIdPTR): Likewise.
54978         [C99-based-standards] (PRIiPTR): Likewise.
54979         [C99-based-standards] (PRIoPTR): Likewise.
54980         [C99-based-standards] (PRIuPTR): Likewise.
54981         [C99-based-standards] (PRIxPTR): Likewise.
54982         [C99-based-standards] (PRIXPTR): Likewise.
54983         [C99-based-standards] (SCNdPTR): Likewise.
54984         [C99-based-standards] (SCNiPTR): Likewise.
54985         [C99-based-standards] (SCNoPTR): Likewise.
54986         [C99-based-standards] (SCNuPTR): Likewise.
54987         [C99-based-standards] (SCNxPTR): Likewise.
54988         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
54989         allow.
54990         * conform/data/stdint.h-data: Update comments to clarify
54991         requirements.
54992         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
54993         type.
54994         [C99-based standards] (INT8_MAX): Likewise.
54995         [C99-based standards] (INT16_MIN): Likewise.
54996         [C99-based standards] (INT16_MAX): Likewise.
54997         [C99-based standards] (INT32_MIN): Likewise.
54998         [C99-based standards] (INT32_MAX): Likewise.
54999         [C99-based standards] (INT64_MIN): Likewise.
55000         [C99-based standards] (INT64_MAX): Likewise.
55001         [C99-based standards] (UINT8_MAX): Likewise.
55002         [C99-based standards] (UINT16_MAX): Likewise.
55003         [C99-based standards] (UINT32_MAX): Likewise.
55004         [C99-based standards] (UINT64_MAX): Likewise.
55005         [C99-based standards] (INT_LEAST8_MIN): Likewise.
55006         [C99-based standards] (INT_LEAST8_MAX): Likewise.
55007         [C99-based standards] (INT_LEAST16_MIN): Likewise.
55008         [C99-based standards] (INT_LEAST16_MAX): Likewise.
55009         [C99-based standards] (INT_LEAST32_MIN): Likewise.
55010         [C99-based standards] (INT_LEAST32_MAX): Likewise.
55011         [C99-based standards] (INT_LEAST64_MIN): Likewise.
55012         [C99-based standards] (INT_LEAST64_MAX): Likewise.
55013         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
55014         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
55015         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
55016         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
55017         [C99-based standards] (INT_FAST8_MIN): Likewise.
55018         [C99-based standards] (INT_FAST8_MAX): Likewise.
55019         [C99-based standards] (INT_FAST16_MIN): Likewise.
55020         [C99-based standards] (INT_FAST16_MAX): Likewise.
55021         [C99-based standards] (INT_FAST32_MIN): Likewise.
55022         [C99-based standards] (INT_FAST32_MAX): Likewise.
55023         [C99-based standards] (INT_FAST64_MIN): Likewise.
55024         [C99-based standards] (INT_FAST64_MAX): Likewise.
55025         [C99-based standards] (UINT_FAST8_MAX): Likewise.
55026         [C99-based standards] (UINT_FAST16_MAX): Likewise.
55027         [C99-based standards] (UINT_FAST32_MAX): Likewise.
55028         [C99-based standards] (UINT_FAST64_MAX): Likewise.
55029         [C99-based standards] (INTPTR_MIN): Likewise.
55030         [C99-based standards] (INTPTR_MAX): Likewise.
55031         [C99-based standards] (UINTPTR_MAX): Likewise.
55032         [C99-based standards] (INTMAX_MIN): Likewise.
55033         [C99-based standards] (INTMAX_MAX): Likewise.
55034         [C99-based standards] (UINTMAX_MAX): Likewise.
55035         [C99-based standards] (PTRDIFF_MIN): Likewise.
55036         [C99-based standards] (PTRDIFF_MAX): Likewise.
55037         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
55038         [C99-based standards] (SIZE_MAX): Likewise.
55039         [C99-based standards] (WCHAR_MAX): Likewise.
55040         [C99-based standards] (WINT_MAX): Likewise.
55041         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
55042         constraint on value.
55043         [C99-based standards] (WCHAR_MIN): Likewise.
55044         [C99-based standards] (WINT_MIN): Likewise.
55045         [C99-based standards] (*_t): Allow.
55046         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
55047         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
55048         Include math.h-data and complex.h-data.  Remove all expectations
55049         of math.h and complex.h contents.
55050         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
55051         at end of line.
55052         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
55053         (struct tm): Expect tag.
55054         [C99-based-standards] (wcstof): Expect function.
55055         [C99-based-standards] (wcstold): Likewise.
55056         [C99-based-standards] (wcstoll): Likewise.
55057         [C99-based-standards] (wcstoull): Likewise.
55058         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
55059         macro-int-constant.  Specify type.
55060         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
55061         constraint on value.
55062         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55063         Specify type.
55064         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
55065         Specify value.
55066         [ISO C standards]: Do not allow headers.
55067         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
55068         wcs[abcdefghijklmnopqrstuvwxyz]*.
55069         [ISO C standards] (*_t): Do not allow.
55070         * conform/data/wctype.h-data [C99-based standards] (iswblank):
55071         Expect function.
55072         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
55073         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55074         Specify type.
55075         [ISO C standards]: Do not allow headers.
55076         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
55077         is[abcdefghijklmnopqrstuvwxyz]*.
55078         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
55079         to[abcdefghijklmnopqrstuvwxyz]*.
55080         [ISO C standards] (*_t): Do not allow.
55081         * conform/data/stdalign.h-data: New file.
55082         * conform/data/stdbool.h-data: Likewise.
55083         * conform/data/stdnoreturn.h-data: Likewise.
55084
55085 2012-11-07  Roland McGrath  <roland@hack.frob.com>
55086
55087         [BZ #14815]
55088         * manual/filesys.texi (Directory Entries): Typo fix.
55089         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
55090
55091 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55092
55093         * elf/elf.h (EM_AARCH64): New macro.
55094         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
55095         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
55096         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
55097         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
55098         (R_AARCH64_TLSDESC): Likewise.
55099         (NT_ARM_TLS): Likewise.
55100         (NT_ARM_HW_BREAK): Likewise.
55101         (NT_ARM_HW_WATCH): Likewise.
55102
55103 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55104
55105         [BZ #14811]
55106         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
55107         (__ieee754_powl): Saturate nonzero exponents with absolute value
55108         below 0x1p-79 to +/- 0x1p-79.
55109         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
55110         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
55111         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
55112         nonzero exponents with absolute value below 0x1p-32 to +/-
55113         0x1p-32.
55114         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
55115         (__ieee754_powl): Saturate nonzero exponents with absolute value
55116         below 0x1p-79 to +/- 0x1p-79.
55117         * math/libm-test.inc (pow_test): Add more tests.
55118
55119 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55120
55121         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
55122         _dl_s390_cap_flags with kernel. Increase string length.
55123         (_dl_s390_platforms): Add z196 and zEC12.
55124
55125 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55126
55127         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
55128         Change XOPEN21K to XOPEN2K.
55129
55130 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
55131
55132         * string/memmove.c: Use memcpy when possible.
55133
55134 2012-11-06  Andreas Jaeger  <aj@suse.de>
55135
55136         * po/eo.po: Update from translation team.
55137
55138 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
55139
55140         [BZ #14793]
55141         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
55142         exponent and small x and y exponents, scale x or y up.  Increase
55143         by 2 the exponent used in scaling up.
55144         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55145         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55146         * math/libm-test.inc (fma_test): Add more tests.
55147         (fma_test_towardzero): Likewise.
55148         (fma_test_downward): Likewise.
55149         (fma_test_upward): Likewise.
55150
55151 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
55152
55153         [BZ #14805]
55154         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
55155         fenv_t *.
55156
55157         [BZ #14801]
55158         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
55159         namespace for names of struct fields.
55160         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
55161         fenv_t fields.
55162         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
55163         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
55164
55165 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
55166
55167         [BZ #3665]
55168         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
55169
55170 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55171
55172         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
55173         PTR_DEMANGLE.
55174
55175         [BZ #5246]
55176         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
55177         PTR_DEMANGLE.
55178
55179 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
55180
55181         [BZ #14797]
55182         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
55183         definitely overflow as x * y not x * y + z.
55184         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55185         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55186         * math/libm-test.inc (fma_test): Add more tests.
55187         (fma_test_towardzero): Likewise.
55188         (fma_test_downward): Likewise.
55189         (fma_test_upward): Likewise.
55190
55191 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55192
55193         [BZ #157]
55194
55195         * include/stub-tag.h: Remove file.
55196         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
55197         '#include' of it.
55198         * manual/maint.texi (Porting): Don't reference it.
55199         * Makerules ($(objpfx)stubs): Likewise.
55200         * dirent/closedir.c: Don't include <stub-tag.h>.
55201         * dirent/dirfd.c: Likewise.
55202         * dirent/fdopendir.c: Likewise.
55203         * dirent/getdents.c: Likewise.
55204         * dirent/getdents64.c: Likewise.
55205         * dirent/opendir.c: Likewise.
55206         * dirent/readdir.c: Likewise.
55207         * dirent/readdir64.c: Likewise.
55208         * dirent/readdir64_r.c: Likewise.
55209         * dirent/readdir_r.c: Likewise.
55210         * dirent/rewinddir.c: Likewise.
55211         * dirent/seekdir.c: Likewise.
55212         * dirent/telldir.c: Likewise.
55213         * gmon/profil.c: Likewise.
55214         * grp/setgroups.c: Likewise.
55215         * inet/if_index.c: Likewise.
55216         * io/access.c: Likewise.
55217         * io/chdir.c: Likewise.
55218         * io/chmod.c: Likewise.
55219         * io/chown.c: Likewise.
55220         * io/close.c: Likewise.
55221         * io/dup.c: Likewise.
55222         * io/dup2.c: Likewise.
55223         * io/dup3.c: Likewise.
55224         * io/euidaccess.c: Likewise.
55225         * io/faccessat.c: Likewise.
55226         * io/fchdir.c: Likewise.
55227         * io/fchmod.c: Likewise.
55228         * io/fchmodat.c: Likewise.
55229         * io/fchown.c: Likewise.
55230         * io/fchownat.c: Likewise.
55231         * io/fcntl.c: Likewise.
55232         * io/flock.c: Likewise.
55233         * io/fstatfs.c: Likewise.
55234         * io/fstatfs64.c: Likewise.
55235         * io/fstatvfs.c: Likewise.
55236         * io/fstatvfs64.c: Likewise.
55237         * io/futimens.c: Likewise.
55238         * io/fxstat.c: Likewise.
55239         * io/fxstat64.c: Likewise.
55240         * io/fxstatat.c: Likewise.
55241         * io/fxstatat64.c: Likewise.
55242         * io/getcwd.c: Likewise.
55243         * io/isatty.c: Likewise.
55244         * io/lchmod.c: Likewise.
55245         * io/lchown.c: Likewise.
55246         * io/link.c: Likewise.
55247         * io/linkat.c: Likewise.
55248         * io/lseek.c: Likewise.
55249         * io/lseek64.c: Likewise.
55250         * io/lxstat64.c: Likewise.
55251         * io/mkdir.c: Likewise.
55252         * io/mkdirat.c: Likewise.
55253         * io/mkfifo.c: Likewise.
55254         * io/mkfifoat.c: Likewise.
55255         * io/open.c: Likewise.
55256         * io/open64.c: Likewise.
55257         * io/openat.c: Likewise.
55258         * io/openat64.c: Likewise.
55259         * io/pipe.c: Likewise.
55260         * io/pipe2.c: Likewise.
55261         * io/poll.c: Likewise.
55262         * io/posix_fadvise.c: Likewise.
55263         * io/posix_fadvise64.c: Likewise.
55264         * io/posix_fallocate.c: Likewise.
55265         * io/posix_fallocate64.c: Likewise.
55266         * io/read.c: Likewise.
55267         * io/readlink.c: Likewise.
55268         * io/readlinkat.c: Likewise.
55269         * io/rmdir.c: Likewise.
55270         * io/sendfile.c: Likewise.
55271         * io/sendfile64.c: Likewise.
55272         * io/statfs.c: Likewise.
55273         * io/statfs64.c: Likewise.
55274         * io/statvfs.c: Likewise.
55275         * io/statvfs64.c: Likewise.
55276         * io/symlink.c: Likewise.
55277         * io/symlinkat.c: Likewise.
55278         * io/ttyname.c: Likewise.
55279         * io/ttyname_r.c: Likewise.
55280         * io/umask.c: Likewise.
55281         * io/unlink.c: Likewise.
55282         * io/unlinkat.c: Likewise.
55283         * io/utime.c: Likewise.
55284         * io/utimensat.c: Likewise.
55285         * io/write.c: Likewise.
55286         * io/xmknod.c: Likewise.
55287         * io/xmknodat.c: Likewise.
55288         * io/xstat.c: Likewise.
55289         * io/xstat64.c: Likewise.
55290         * login/getpt.c: Likewise.
55291         * login/grantpt.c: Likewise.
55292         * login/unlockpt.c: Likewise.
55293         * math/e_acoshl.c: Likewise.
55294         * math/e_acosl.c: Likewise.
55295         * math/e_asinl.c: Likewise.
55296         * math/e_atan2l.c: Likewise.
55297         * math/e_atanhl.c: Likewise.
55298         * math/e_coshl.c: Likewise.
55299         * math/e_expl.c: Likewise.
55300         * math/e_fmodl.c: Likewise.
55301         * math/e_gammal_r.c: Likewise.
55302         * math/e_hypotl.c: Likewise.
55303         * math/e_j0l.c: Likewise.
55304         * math/e_j1l.c: Likewise.
55305         * math/e_jnl.c: Likewise.
55306         * math/e_lgammal_r.c: Likewise.
55307         * math/e_log10l.c: Likewise.
55308         * math/e_log2l.c: Likewise.
55309         * math/e_logl.c: Likewise.
55310         * math/e_powl.c: Likewise.
55311         * math/e_rem_pio2l.c: Likewise.
55312         * math/e_sinhl.c: Likewise.
55313         * math/e_sqrtl.c: Likewise.
55314         * math/fclrexcpt.c: Likewise.
55315         * math/fedisblxcpt.c: Likewise.
55316         * math/feenablxcpt.c: Likewise.
55317         * math/fegetenv.c: Likewise.
55318         * math/fegetexcept.c: Likewise.
55319         * math/fegetround.c: Likewise.
55320         * math/feholdexcpt.c: Likewise.
55321         * math/fesetenv.c: Likewise.
55322         * math/fesetround.c: Likewise.
55323         * math/feupdateenv.c: Likewise.
55324         * math/fgetexcptflg.c: Likewise.
55325         * math/fraiseexcpt.c: Likewise.
55326         * math/fsetexcptflg.c: Likewise.
55327         * math/ftestexcept.c: Likewise.
55328         * math/k_cosl.c: Likewise.
55329         * math/k_rem_pio2l.c: Likewise.
55330         * math/k_sinl.c: Likewise.
55331         * math/k_tanl.c: Likewise.
55332         * math/s_asinhl.c: Likewise.
55333         * math/s_atanl.c: Likewise.
55334         * math/s_cbrtl.c: Likewise.
55335         * math/s_erfl.c: Likewise.
55336         * math/s_expm1l.c: Likewise.
55337         * math/s_log1pl.c: Likewise.
55338         * math/s_tanhl.c: Likewise.
55339         * misc/acct.c: Likewise.
55340         * misc/brk.c: Likewise.
55341         * misc/chflags.c: Likewise.
55342         * misc/chroot.c: Likewise.
55343         * misc/fchflags.c: Likewise.
55344         * misc/fgetxattr.c: Likewise.
55345         * misc/flistxattr.c: Likewise.
55346         * misc/fremovexattr.c: Likewise.
55347         * misc/fsetxattr.c: Likewise.
55348         * misc/fsync.c: Likewise.
55349         * misc/ftruncate.c: Likewise.
55350         * misc/futimes.c: Likewise.
55351         * misc/futimesat.c: Likewise.
55352         * misc/getdomain.c: Likewise.
55353         * misc/getdtsz.c: Likewise.
55354         * misc/gethostid.c: Likewise.
55355         * misc/gethostname.c: Likewise.
55356         * misc/getloadavg.c: Likewise.
55357         * misc/getpagesize.c: Likewise.
55358         * misc/getsysstats.c: Likewise.
55359         * misc/getxattr.c: Likewise.
55360         * misc/gtty.c: Likewise.
55361         * misc/ioctl.c: Likewise.
55362         * misc/lgetxattr.c: Likewise.
55363         * misc/listxattr.c: Likewise.
55364         * misc/llistxattr.c: Likewise.
55365         * misc/lremovexattr.c: Likewise.
55366         * misc/lsetxattr.c: Likewise.
55367         * misc/lutimes.c: Likewise.
55368         * misc/madvise.c: Likewise.
55369         * misc/mincore.c: Likewise.
55370         * misc/mlock.c: Likewise.
55371         * misc/mlockall.c: Likewise.
55372         * misc/mmap.c: Likewise.
55373         * misc/mprotect.c: Likewise.
55374         * misc/msync.c: Likewise.
55375         * misc/munlock.c: Likewise.
55376         * misc/munlockall.c: Likewise.
55377         * misc/munmap.c: Likewise.
55378         * misc/preadv.c: Likewise.
55379         * misc/preadv64.c: Likewise.
55380         * misc/ptrace.c: Likewise.
55381         * misc/pwritev.c: Likewise.
55382         * misc/pwritev64.c: Likewise.
55383         * misc/readv.c: Likewise.
55384         * misc/reboot.c: Likewise.
55385         * misc/remap_file_pages.c: Likewise.
55386         * misc/removexattr.c: Likewise.
55387         * misc/revoke.c: Likewise.
55388         * misc/select.c: Likewise.
55389         * misc/setdomain.c: Likewise.
55390         * misc/setegid.c: Likewise.
55391         * misc/seteuid.c: Likewise.
55392         * misc/sethostid.c: Likewise.
55393         * misc/sethostname.c: Likewise.
55394         * misc/setregid.c: Likewise.
55395         * misc/setreuid.c: Likewise.
55396         * misc/setxattr.c: Likewise.
55397         * misc/sstk.c: Likewise.
55398         * misc/stty.c: Likewise.
55399         * misc/swapoff.c: Likewise.
55400         * misc/swapon.c: Likewise.
55401         * misc/sync.c: Likewise.
55402         * misc/syncfs.c: Likewise.
55403         * misc/syscall.c: Likewise.
55404         * misc/truncate.c: Likewise.
55405         * misc/ualarm.c: Likewise.
55406         * misc/usleep.c: Likewise.
55407         * misc/ustat.c: Likewise.
55408         * misc/utimes.c: Likewise.
55409         * misc/vhangup.c: Likewise.
55410         * misc/writev.c: Likewise.
55411         * posix/_exit.c: Likewise.
55412         * posix/alarm.c: Likewise.
55413         * posix/execve.c: Likewise.
55414         * posix/fexecve.c: Likewise.
55415         * posix/fork.c: Likewise.
55416         * posix/fpathconf.c: Likewise.
55417         * posix/getaddrinfo.c: Likewise.
55418         * posix/getegid.c: Likewise.
55419         * posix/geteuid.c: Likewise.
55420         * posix/getgid.c: Likewise.
55421         * posix/getgroups.c: Likewise.
55422         * posix/getlogin.c: Likewise.
55423         * posix/getlogin_r.c: Likewise.
55424         * posix/getpgid.c: Likewise.
55425         * posix/getpid.c: Likewise.
55426         * posix/getppid.c: Likewise.
55427         * posix/getresgid.c: Likewise.
55428         * posix/getresuid.c: Likewise.
55429         * posix/getsid.c: Likewise.
55430         * posix/getuid.c: Likewise.
55431         * posix/glob64.c: Likewise.
55432         * posix/nanosleep.c: Likewise.
55433         * posix/pathconf.c: Likewise.
55434         * posix/pause.c: Likewise.
55435         * posix/posix_madvise.c: Likewise.
55436         * posix/pread.c: Likewise.
55437         * posix/pread64.c: Likewise.
55438         * posix/pwrite.c: Likewise.
55439         * posix/pwrite64.c: Likewise.
55440         * posix/sched_getaffinity.c: Likewise.
55441         * posix/sched_getp.c: Likewise.
55442         * posix/sched_gets.c: Likewise.
55443         * posix/sched_primax.c: Likewise.
55444         * posix/sched_primin.c: Likewise.
55445         * posix/sched_rr_gi.c: Likewise.
55446         * posix/sched_setaffinity.c: Likewise.
55447         * posix/sched_setp.c: Likewise.
55448         * posix/sched_sets.c: Likewise.
55449         * posix/sched_yield.c: Likewise.
55450         * posix/setgid.c: Likewise.
55451         * posix/setlogin.c: Likewise.
55452         * posix/setpgid.c: Likewise.
55453         * posix/setresgid.c: Likewise.
55454         * posix/setresuid.c: Likewise.
55455         * posix/setsid.c: Likewise.
55456         * posix/setuid.c: Likewise.
55457         * posix/sleep.c: Likewise.
55458         * posix/spawni.c: Likewise.
55459         * posix/sysconf.c: Likewise.
55460         * posix/times.c: Likewise.
55461         * posix/wait.c: Likewise.
55462         * posix/wait3.c: Likewise.
55463         * posix/wait4.c: Likewise.
55464         * posix/waitpid.c: Likewise.
55465         * resolv/gai_sigqueue.c: Likewise.
55466         * resource/getpriority.c: Likewise.
55467         * resource/getrlimit.c: Likewise.
55468         * resource/getrusage.c: Likewise.
55469         * resource/nice.c: Likewise.
55470         * resource/setpriority.c: Likewise.
55471         * resource/setrlimit.c: Likewise.
55472         * resource/ulimit.c: Likewise.
55473         * rt/aio_cancel.c: Likewise.
55474         * rt/aio_fsync.c: Likewise.
55475         * rt/aio_read.c: Likewise.
55476         * rt/aio_sigqueue.c: Likewise.
55477         * rt/aio_suspend.c: Likewise.
55478         * rt/aio_write.c: Likewise.
55479         * rt/clock_getres.c: Likewise.
55480         * rt/clock_gettime.c: Likewise.
55481         * rt/clock_nanosleep.c: Likewise.
55482         * rt/clock_settime.c: Likewise.
55483         * rt/lio_listio.c: Likewise.
55484         * rt/mq_close.c: Likewise.
55485         * rt/mq_getattr.c: Likewise.
55486         * rt/mq_notify.c: Likewise.
55487         * rt/mq_open.c: Likewise.
55488         * rt/mq_receive.c: Likewise.
55489         * rt/mq_send.c: Likewise.
55490         * rt/mq_setattr.c: Likewise.
55491         * rt/mq_timedreceive.c: Likewise.
55492         * rt/mq_timedsend.c: Likewise.
55493         * rt/mq_unlink.c: Likewise.
55494         * rt/shm_open.c: Likewise.
55495         * rt/shm_unlink.c: Likewise.
55496         * rt/timer_create.c: Likewise.
55497         * rt/timer_delete.c: Likewise.
55498         * rt/timer_getoverr.c: Likewise.
55499         * rt/timer_gettime.c: Likewise.
55500         * rt/timer_settime.c: Likewise.
55501         * setjmp/__longjmp.c: Likewise.
55502         * setjmp/setjmp.c: Likewise.
55503         * signal/kill.c: Likewise.
55504         * signal/killpg.c: Likewise.
55505         * signal/raise.c: Likewise.
55506         * signal/sigaction.c: Likewise.
55507         * signal/sigaltstack.c: Likewise.
55508         * signal/sigblock.c: Likewise.
55509         * signal/sigignore.c: Likewise.
55510         * signal/sigintr.c: Likewise.
55511         * signal/signal.c: Likewise.
55512         * signal/sigpause.c: Likewise.
55513         * signal/sigpending.c: Likewise.
55514         * signal/sigqueue.c: Likewise.
55515         * signal/sigreturn.c: Likewise.
55516         * signal/sigset.c: Likewise.
55517         * signal/sigsetmask.c: Likewise.
55518         * signal/sigstack.c: Likewise.
55519         * signal/sigsuspend.c: Likewise.
55520         * signal/sigtimedwait.c: Likewise.
55521         * signal/sigvec.c: Likewise.
55522         * signal/sigwait.c: Likewise.
55523         * signal/sigwaitinfo.c: Likewise.
55524         * signal/sysv_signal.c: Likewise.
55525         * socket/accept.c: Likewise.
55526         * socket/accept4.c: Likewise.
55527         * socket/bind.c: Likewise.
55528         * socket/connect.c: Likewise.
55529         * socket/getpeername.c: Likewise.
55530         * socket/getsockname.c: Likewise.
55531         * socket/getsockopt.c: Likewise.
55532         * socket/isfdtype.c: Likewise.
55533         * socket/listen.c: Likewise.
55534         * socket/recv.c: Likewise.
55535         * socket/recvfrom.c: Likewise.
55536         * socket/recvmsg.c: Likewise.
55537         * socket/send.c: Likewise.
55538         * socket/sendmsg.c: Likewise.
55539         * socket/sendto.c: Likewise.
55540         * socket/setsockopt.c: Likewise.
55541         * socket/shutdown.c: Likewise.
55542         * socket/sockatmark.c: Likewise.
55543         * socket/socket.c: Likewise.
55544         * socket/socketpair.c: Likewise.
55545         * stdio-common/ctermid.c: Likewise.
55546         * stdio-common/cuserid.c: Likewise.
55547         * stdio-common/remove.c: Likewise.
55548         * stdio-common/rename.c: Likewise.
55549         * stdio-common/renameat.c: Likewise.
55550         * stdio-common/tempname.c: Likewise.
55551         * stdlib/getcontext.c: Likewise.
55552         * stdlib/makecontext.c: Likewise.
55553         * stdlib/setcontext.c: Likewise.
55554         * stdlib/swapcontext.c: Likewise.
55555         * stdlib/system.c: Likewise.
55556         * streams/fattach.c: Likewise.
55557         * streams/fdetach.c: Likewise.
55558         * streams/getmsg.c: Likewise.
55559         * streams/getpmsg.c: Likewise.
55560         * streams/putmsg.c: Likewise.
55561         * streams/putpmsg.c: Likewise.
55562         * sysdeps/unix/bsd/getpt.c: Likewise.
55563         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
55564         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
55565         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
55566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
55567         Likewise.
55568         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
55569         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
55570         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
55571         * sysvipc/msgctl.c: Likewise.
55572         * sysvipc/msgget.c: Likewise.
55573         * sysvipc/msgrcv.c: Likewise.
55574         * sysvipc/msgsnd.c: Likewise.
55575         * sysvipc/semctl.c: Likewise.
55576         * sysvipc/semget.c: Likewise.
55577         * sysvipc/semop.c: Likewise.
55578         * sysvipc/semtimedop.c: Likewise.
55579         * sysvipc/shmat.c: Likewise.
55580         * sysvipc/shmctl.c: Likewise.
55581         * sysvipc/shmdt.c: Likewise.
55582         * sysvipc/shmget.c: Likewise.
55583         * termios/tcdrain.c: Likewise.
55584         * termios/tcflow.c: Likewise.
55585         * termios/tcflush.c: Likewise.
55586         * termios/tcgetattr.c: Likewise.
55587         * termios/tcgetpgrp.c: Likewise.
55588         * termios/tcsendbrk.c: Likewise.
55589         * termios/tcsetattr.c: Likewise.
55590         * termios/tcsetpgrp.c: Likewise.
55591         * time/adjtime.c: Likewise.
55592         * time/clock.c: Likewise.
55593         * time/getitimer.c: Likewise.
55594         * time/gettimeofday.c: Likewise.
55595         * time/setitimer.c: Likewise.
55596         * time/settimeofday.c: Likewise.
55597         * time/stime.c: Likewise.
55598         * time/time.c: Likewise.
55599
55600 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
55601
55602         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
55603         /usr/old/bin.
55604
55605         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
55606         instead of spaces.
55607         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
55608
55609 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
55610
55611         [BZ #14796]
55612         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
55613         FE_TONEAREST before applying Dekker multiplication and Knuth
55614         addition.  Clear inexact exceptions and check for exact zero
55615         results afterwards.
55616         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55617         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
55618         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55619         * math/libm-test.inc (fma_test): Add more tests.
55620         (fma_test_towardzero): Likewise.
55621         (fma_test_downward): Likewise.
55622         (fma_test_upward): Likewise.
55623         * sysdeps/generic/math_private.h (default_libc_fesetround): New
55624         function.
55625         (libc_fesetround): New macro.
55626         (libc_fesetroundf): Likewise.
55627         (libc_fesetroundl): Likewise.
55628         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
55629         function.
55630         (libc_fesetround_387): Likewise.
55631         (libc_fesetroundf): New macro.
55632         (libc_fesetround): Likewise.
55633         (libc_fesetroundl): Likewise.
55634         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
55635         function.
55636         (libc_fesetroundf): New macro.
55637         (libc_fesetround): Likewise.
55638         (libc_fesetroundl): Likewise.
55639         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
55640         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
55641         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
55642         libm_hidden_ver.
55643         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
55644         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
55645         libm_hidden_def.
55646         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
55647         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
55648         libm_hidden_ver.
55649         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
55650         libm_hidden_def.
55651
55652         [BZ #3439]
55653         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
55654         integer constant usable in #if and use that to give value to enum
55655         constant.
55656         (FE_DIVBYZERO): Likewise.
55657         (FE_UNDERFLOW): Likewise.
55658         (FE_OVERFLOW): Likewise.
55659         (FE_INVALID): Likewise.
55660         (FE_INVALID_SNAN): Likewise.
55661         (FE_INVALID_ISI): Likewise.
55662         (FE_INVALID_IDI): Likewise.
55663         (FE_INVALID_ZDZ): Likewise.
55664         (FE_INVALID_IMZ): Likewise.
55665         (FE_INVALID_COMPARE): Likewise.
55666         (FE_INVALID_SOFTWARE): Likewise.
55667         (FE_INVALID_SQRT): Likewise.
55668         (FE_INVALID_INTEGER_CONVERSION): Likewise.
55669         (FE_TONEAREST): Likewise.
55670         (FE_TOWARDZERO): Likewise.
55671         (FE_UPWARD): Likewise.
55672         (FE_DOWNWARD): Likewise.
55673         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
55674         (FE_DIVBYZERO): Likewise.
55675         (FE_OVERFLOW): Likewise.
55676         (FE_UNDERFLOW): Likewise.
55677         (FE_INEXACT): Likewise.
55678         (FE_TONEAREST): Likewise.
55679         (FE_DOWNWARD): Likewise.
55680         (FE_UPWARD): Likewise.
55681         (FE_TOWARDZERO): Likewise.
55682         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
55683         (FE_UNDERFLOW): Likewise.
55684         (FE_OVERFLOW): Likewise.
55685         (FE_DIVBYZERO): Likewise.
55686         (FE_INVALID): Likewise.
55687         (FE_TONEAREST): Likewise.
55688         (FE_TOWARDZERO): Likewise.
55689         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
55690         (FE_OVERFLOW): Likewise.
55691         (FE_UNDERFLOW): Likewise.
55692         (FE_DIVBYZERO): Likewise.
55693         (FE_INEXACT): Likewise.
55694         (FE_TONEAREST): Likewise.
55695         (FE_TOWARDZERO): Likewise.
55696         (FE_UPWARD): Likewise.
55697         (FE_DOWNWARD): Likewise.
55698         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
55699         (FE_DIVBYZERO): Likewise.
55700         (FE_OVERFLOW): Likewise.
55701         (FE_UNDERFLOW): Likewise.
55702         (FE_INEXACT): Likewise.
55703         (FE_TONEAREST): Likewise.
55704         (FE_DOWNWARD): Likewise.
55705         (FE_UPWARD): Likewise.
55706         (FE_TOWARDZERO): Likewise.
55707
55708 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
55709
55710         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
55711
55712 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
55713
55714         * scripts/cross-test-ssh.sh (command): Use newlines to separate
55715         commands.  Quote $PWD.
55716         (blacklist_exports): Don't use remove_newlines.  Replace "declare
55717         -x" by "export".
55718         (remove_newlines): Remove.
55719
55720 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
55721
55722         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
55723         * stdlib/stdlib.h (atof): Moved to ...
55724         * include/bits/stdlib-float.h: Here.  New file.
55725         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
55726         * stdlib/bits/stdlib-float.h: New file.
55727         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
55728         -mno-sse -mno-mmx.
55729         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
55730         <xmmintrin.h>.
55731
55732 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
55733
55734         * conform/conformtest.pl (@headers): Add fenv.h.
55735         * conform/data/fenv.h-data: New file.
55736         * include/fenv.h [_ISOMAC]: Disable all contents of file except
55737         include of <math/fenv.h>.
55738
55739         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
55740         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
55741         && !UNIX98].  Enables tests for XOPEN2K8.
55742         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
55743         POSIX2008]: Likewise.
55744
55745         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
55746         (struct rusage): Do not expect type or its members.
55747
55748         [BZ #3439]
55749         * math/math.h (FP_NAN): Define macro to integer constant usable in
55750         #if and use that to give value to enum constant.
55751         (FP_INFINITE): Likewise.
55752         (FP_ZERO): Likewise.
55753         (FP_SUBNORMAL): Likewise.
55754         (FP_NORMAL): Likewise.
55755
55756 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
55757
55758         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
55759         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
55760         arguments.
55761
55762 2012-11-02  Roland McGrath  <roland@hack.frob.com>
55763
55764         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
55765         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
55766         autoconf-time if not.
55767         * configure.in: Remove AC_PREREQ.
55768
55769 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55770
55771         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
55772         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
55773         of the internal implementation.
55774
55775 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
55776
55777         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
55778         except include of <misc/sys/syslog.h>.
55779
55780 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
55781
55782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
55783         function returns with a NULL context exit with zero.
55784
55785 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55786
55787         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
55788
55789 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
55790
55791         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
55792         (run_program_cmd): This.
55793         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
55794         (tst_langinfo): New variable.  Use it.
55795
55796 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
55797
55798         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
55799         floating point opcodes.
55800
55801 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55802
55803         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
55804         variable.
55805
55806         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
55807
55808         * sysdeps/mach/hurd/powerpc: Remove directory.
55809         * sysdeps/mach/powerpc: Likewise.
55810
55811 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
55812
55813         * scripts/check-local-headers.sh: Ignore c++ headers.
55814
55815 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55816
55817         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
55818         __libc_cleanup_region_start argument.
55819
55820 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
55821
55822         [BZ #14784]
55823         [BZ #14785]
55824         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
55825         x * y using scaling, not as x * y + z.
55826         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55827         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55828         * math/libm-test.inc (fma_test): Add more tests.
55829         (fma_test_towardzero): Likewise.
55830         (fma_test_downward): Likewise.
55831         (fma_test_upward): Likewise.
55832
55833 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55834
55835         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
55836
55837 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
55838
55839         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
55840         New variable.
55841
55842 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
55843
55844         * rt/tst-shm.c (worker): Correct checking for mmap failure.
55845
55846 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
55847
55848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
55849         Fix sort order.
55850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
55851         Likewise.
55852
55853 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55854
55855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
55856         Fix the order of the list for glibc 2.17.
55857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
55858         Likewise.
55859
55860 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
55861
55862         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55863
55864 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
55865
55866         [BZ #14610]
55867         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
55868         for low part of x being zero before using __atanl (y).
55869         * math/libm-test.inc (atan2_test): Add another test.
55870
55871         * manual/install.texi (Configuring and compiling): Document
55872         general use of test-wrapper and test-wrapper-env.
55873         * INSTALL: Regenerated.
55874
55875         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
55876         (__fma): Do not extract and scale down low bits on after-rounding
55877         systems when result rounded to normal precision would have normal
55878         exponent.
55879         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
55880         (__fmal): Do not extract and scale down low bits on after-rounding
55881         systems when result rounded to normal precision would have normal
55882         exponent.
55883         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
55884         (__fmal): Do not extract and scale down low bits on after-rounding
55885         systems when result rounded to normal precision would have normal
55886         exponent.
55887         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
55888         macro.
55889         (fma_test): Add more tests.
55890         (fma_test_towardzero): Likewise.
55891         (fma_test_downward): Likewise.
55892         (fma_test_upward): Likewise.
55893
55894 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
55895
55896         * sysdeps/i386/tininess.h: Renamed to ...
55897         * sysdeps/x86/tininess.h: This.
55898         * sysdeps/x86_64/tininess.h: Removed.
55899
55900 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
55901
55902         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
55903         input.  Use $(build-program-cmd).
55904         ($(objpfx)tst-array1-static.out): Likewise.
55905         ($(objpfx)tst-array2.out): Likewise.
55906         ($(objpfx)tst-array3.out): Likewise.
55907         ($(objpfx)tst-array4.out): Likewise.
55908         ($(objpfx)tst-array5.out): Likewise.
55909         ($(objpfx)tst-array5-static.out): Likewise.
55910
55911 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
55912
55913         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
55914         if defined.
55915
55916         * nss/nsswitch.h (nss_interface_function): Provide new
55917         macro for use with NSS functions.
55918         * grp/initgroups.c: Use new macro.
55919         * nss/getXXbyYY.c: Likewise.
55920         * nss/getXXbyYY_r.c: Likewise.
55921         * nss/getXXent.c: Likewise.
55922         * nss/getXXent_r.c: Likewise.
55923         * sysdeps/posix/getaddrinfo.c: Likewise.
55924
55925 2012-10-30  Andreas Jaeger  <aj@suse.de>
55926
55927         * po/ru.po: Update Russion translation from translation project.
55928
55929 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
55930
55931         [BZ #14152]
55932         [BZ #14783]
55933         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
55934         result and shift together with sticky bit instead of replicating
55935         round-to-nearest rounding.
55936         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55937         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55938         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
55939         missing underflow exceptions.
55940         (fma_test_towardzero): Add more tests.
55941         (fma_test_downward): Likewise.
55942         (fma_test_upward): Likewise.
55943
55944         [BZ #14047]
55945         * sysdeps/generic/tininess.h: New file.
55946         * sysdeps/i386/tininess.h: Likewise.
55947         * sysdeps/sh/tininess.h: Likewise.
55948         * sysdeps/x86_64/tininess.h: Likewise.
55949         * stdlib/tst-strtod-underflow.c: Likewise.
55950         * stdlib/tst-tininess.c: Likewise.
55951         * stdlib/strtod_l.c: Include <tininess.h>.
55952         (round_and_return): Do not set errno for exact underflow cases.
55953         Force an underflow exception when setting errno for underflow.
55954         Determine underflow based on rounding to normal precision if
55955         TININESS_AFTER_ROUNDING.
55956         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
55957         ERANGE for exact underflow cases.
55958         * stdlib/Makefile (tests): Add tst-tininess and
55959         tst-strtod-underflow.
55960         ($(objpfx)tst-tininess): Use $(link-libm).
55961         ($(objpfx)tst-strtod-underflow): Likewise.
55962
55963 2012-10-30  Andreas Jaeger  <aj@suse.de>
55964
55965         [BZ#14767]
55966         * elf/Makefile (tests): Remove conditional for have-initfini-array
55967         since this is now always required and the variable does not exist
55968         anymore.
55969         (tests-static): Likewise.
55970         (modules-names): Likewise.
55971
55972         * po/eo.po: Add Esperanto translation from translation project.
55973
55974         * elf/tst-array1.c (fini_array): Make writeable so that it can be
55975         merged with constructor/destructor.
55976         (init_array): Likewise.
55977         * elf/tst-array2dep.c (fini_array): Likewise.
55978         (init_array): Likewise.
55979
55980 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
55981
55982         * manual/message.texi: Delete @cartouche tags.
55983
55984 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
55985
55986         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
55987         EOPNOTSUPP.
55988         * sysdeps/mach/hurd/fsync.c: Likewise.
55989
55990         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
55991         [_POSIX_REALTIME_SIGNALS]: Change condition to
55992         [_POSIX_REALTIME_SIGNALS > 0].
55993
55994 2012-10-27  Andreas Jaeger  <aj@suse.de>
55995
55996         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
55997         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
55998         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
55999         [__WORDSIZE != 64]: Likewise.
56000
56001 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
56002
56003         *  iconvdata/tst-table.sh: Remove ${SHELL}.
56004         *  iconvdata/tst-tables.sh: Likewise.
56005
56006 2012-10-25  David S. Miller  <davem@davemloft.net>
56007
56008         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56009         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
56010         of strtoull.
56011
56012         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
56013         ifunc-impl-list.c
56014         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
56015         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
56016         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
56017         file.
56018
56019 2012-10-25  Roland McGrath  <roland@hack.frob.com>
56020
56021         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56022         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
56023         __getdirentries.
56024
56025 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56026             Jim Blandy  <jimb@codesourcery.com>
56027
56028         * scripts/cross-test-ssh.sh: New file.
56029         * manual/install.texi (Configuring and compiling): Document use of
56030         cross-test-ssh.sh.
56031         * INSTALL: Regenerated.
56032
56033 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
56034
56035         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
56036         EOPNOTSUPP.
56037
56038 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56039
56040         * Makeconfig (run-program-prefix): Fix comment.
56041
56042 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56043             Jim Blandy  <jimb@codesourcery.com>
56044
56045         * Makeconfig (test-wrapper): New variable,
56046         (test-wrapper-env): Likewise.
56047         [$(cross-compiling) = yes && $(test-wrapper) != ""]
56048         (run-built-tests): Define to yes.
56049         (run-program-prefix): Use $(test-wrapper).
56050         (built-program-cmd): Likewise.
56051         * Rules (make-test-out): Use $(test-wrapper-env) and
56052         $(host-built-program-cmd).
56053         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
56054         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
56055         tst-pathopt.sh.
56056         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
56057         $(test-wrapper-env) to tst-rtld-load-self.sh.
56058         ($(objpfx)order2.out): Use $(test-wrapper).
56059         ($(objpfx)tst-initorder.out): Likewise.
56060         ($(objpfx)tst-initorder2.out): Likewise.
56061         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
56062         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
56063         (test_wrapper_env): New variable.  Use it to run ld.so.
56064         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
56065         Use it to run ld.so.
56066         (test_wrapper_env): Likewise.
56067         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
56068         $(test-wrapper) to run-iconv-test.sh.
56069         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
56070         (ICONV): Use $test_wrapper.
56071         * posix/Makefile ($(objpfx)globtest.out): Pass
56072         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
56073         globtest.sh, not $(run-program-prefix).
56074         * posix/globtest.sh (run_via_rtld_prefix): New variable.
56075         (test_wrapper): Likewise.
56076         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
56077         set together with run_via_rtld_prefix.
56078         (run_program_prefix): Define in terms of test_wrapper and
56079         run_via_rtld_prefix.
56080
56081 2012-10-24  Roland McGrath  <roland@hack.frob.com>
56082
56083         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
56084         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
56085         Targets removed.
56086
56087         [BZ #14743]
56088         * include/time.h: Remove librt_hidden_proto (clock_gettime).
56089         Declare __clock_getres, __clock_gettime, __clock_settime,
56090         __clock_nanosleep, and __clock_getcpuclockid.
56091         * rt/clock_gettime.c: Define __clock_gettime as an alias.
56092         Remove librt_hidden_def (clock_gettime).
56093         * sysdeps/unix/clock_gettime.c: Likewise.
56094         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
56095         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
56096         * rt/clock_getres.c: Define __clock_getres as an alias.
56097         * sysdeps/posix/clock_getres.c: Likewise.
56098         * rt/clock_settime.c: Define __clock_settime as an alias.
56099         * sysdeps/unix/clock_settime.c: Likewise.
56100         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
56101         * sysdeps/unix/clock_nanosleep.c: Likewise.
56102         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
56103         * rt/clock-compat.c: New file.
56104         * rt/Makefile (librt-routines): Add clock-compat and move
56105         $(clock-routines) to ...
56106         (routines): ... here, new variable.
56107         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
56108         Don't add get_clockfreq here.
56109         * rt/Versions (libc: GLIBC_2.17): New version set.
56110         Add clock_* symbols here.
56111         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
56112         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
56113         (GLIBC_2.17): Add clock_* symbols.
56114         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
56115         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
56116         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
56117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56118         Likewise.
56119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56120         Likewise.
56121         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
56122         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
56123         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
56124         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
56125         * NEWS: Mention the move.
56126
56127         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
56128         Use __open, __read, __close rather than their public counterparts.
56129         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56130         (__get_clockfreq_via_cpuinfo): Likewise.
56131         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
56132         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
56133
56134         * config.h.in (HAVE_IFUNC): New #undef.
56135         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
56136         was successful.
56137         * configure: Regenerated.
56138
56139 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56140
56141         * configure.in: Move READELF check to start of file.
56142         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
56143         libc_cv_asm_gnu_indirect_function in the process.
56144         * configure: Regenerated.
56145
56146 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56147
56148         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
56149         send the output to /dev/null.
56150         (libc_cv_cc_with_libunwind): Likewise.
56151         (libc_cv_as_noexecstack): Likewise.
56152         * configure: Regenerate.
56153
56154 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56155
56156         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
56157
56158         * posix/globtest.sh (TMPDIR): Do not set.
56159         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
56160         (testout): Likewise.
56161
56162 2012-10-24  Andreas Jaeger  <aj@suse.de>
56163
56164         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
56165         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
56166         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
56167         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
56168         posix_fadvise64, posix_fallocate64.
56169
56170         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
56171         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
56172         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
56173         Likewise.
56174         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
56175         Likewise.
56176         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
56177
56178         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
56179         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
56180         <bits/fcntl-linux.h>.
56181         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
56182
56183         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
56184         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
56185         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
56186         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
56187         [__WORDSIZE != 64]: Likewise.
56188
56189 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56190
56191         * Makeconfig (run-built-tests): New variable.
56192         * Rules [$(cross-compiling) = yes]: Change condition to
56193         [$(run-built-tests) = no].
56194         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
56195         to [$(run-built-tests) = yes].
56196         * elf/Makefile [$(cross-compiling) = no]: Likewise.
56197         * grp/Makefile [$(cross-compiling) = no]: Likewise.
56198         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
56199         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
56200         * intl/Makefile [$(cross-compiling) = no]: Likewise.
56201         * io/Makefile [$(cross-compiling) = no]: Likewise.
56202         * libio/Makefile [$(cross-compiling) = no]: Likewise.
56203         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
56204         * misc/Makefile [$(cross-compiling) = no]: Likewise.
56205         * posix/Makefile [$(cross-compiling) = no]: Likewise.
56206         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
56207         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
56208         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
56209         * string/Makefile [$(cross-compiling) = no]: Likewise.
56210
56211         * posix/Makefile ($(objpfx)globtest.out): Pass
56212         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
56213         $(rtld-installed-name).
56214         * posix/globtest.sh (elf_objpfx): Remove variable.
56215         (rtld_installed_name): Likewise.
56216         (library_path): Likewise.
56217         (run_program_prefix): New variable.  Use for running globtest
56218         binary.
56219
56220 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
56221             Joseph Myers  <joseph@codesourcery.com>
56222
56223         * Makeconfig (host-built-program-cmd): New variable.
56224         * elf/Makefile (tst-stackguard1-ARGS): Use
56225         $(host-built-program-cmd).
56226         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
56227         (tst-spawn-ARGS): Likewise.
56228         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
56229
56230 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56231             Jim Blandy  <jimb@codesourcery.com>
56232
56233         * Makeconfig (run-via-rtld-prefix): New variable.
56234         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
56235         (built-program-cmd): Likewise.
56236
56237 2012-10-22  Andreas Jaeger  <aj@suse.de>
56238
56239         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
56240         __O_RSYNC if it exists, otherwise to O_SYNC.
56241
56242 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
56243             Joseph Myers  <joseph@codesourcery.com>
56244
56245         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
56246         /dev/null.
56247         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
56248         from /dev/null
56249         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
56250         /dev/null.
56251
56252 2012-10-22  Andreas Jaeger  <aj@suse.de>
56253
56254         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
56255         Define always.
56256         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
56257
56258         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56259         bits/fcntl-linux.h.
56260
56261         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
56262         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
56263
56264         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
56265         to __O_LARGEFILE.
56266         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
56267         to __O_LARGEFILE.
56268
56269 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
56270             Joseph Myers  <joseph@codesourcery.com>
56271
56272         * config.make.in (NM): New variable.
56273
56274 2012-10-21  Andreas Jaeger  <aj@suse.de>
56275
56276         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
56277         definitions and declarations that are provided by
56278         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
56279
56280 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56281
56282         [BZ #14683]
56283         * elf/Makefile (tests-static): Add tst-leaks1-static.
56284         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
56285         ($(objpfx)tst-leaks1-static): New rule.
56286         ($(objpfx)tst-leaks1-static-mem): Likewise.
56287         (tst-leaks1-static-ENV): New macro.
56288         * elf/dl-open.c (dl_open_worker): Check the main application
56289         only if SHARED is defined.
56290         * elf/tst-leaks1-static.c: New file.
56291
56292 2012-10-20  Andreas Jaeger  <aj@suse.de>
56293
56294         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
56295         generic values for Linux.
56296         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
56297         and declarations that are provided by <bits/fcntl-linux.h> and
56298         include <bits/fcntl-linux.h>.
56299         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
56300         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
56301
56302 2012-10-20  Roland McGrath  <roland@hack.frob.com>
56303
56304         * io/fcntl.h: Move include of <bits/types.h> to the top and
56305         include it unconditionally.
56306
56307 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56308
56309         * wcsmbs/Makefile (tests-ifunc): New variable.
56310         (tests): Add $(tests-ifunc).
56311         * wcsmbs/test-wcschr-ifunc.c: New file.
56312         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
56313         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
56314         * wcsmbs/test-wcslen-ifunc.c: Likewise.
56315         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
56316         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
56317
56318         * string/Makefile (tests-ifunc): New variable.
56319         (tests): Add $(tests-ifunc).
56320         * string/test-memccpy.c (TEST_NAME): New macro.
56321         * string/test-memchr.c (TEST_NAME): Likewise.
56322         * string/test-memcmp.c (TEST_NAME): Likewise.
56323         * string/test-memcpy.c (TEST_NAME): Likewise.
56324         * string/test-memmem.c (TEST_NAME): Likewise.
56325         * string/test-memmove.c (TEST_NAME): Likewise.
56326         * string/test-memset.c (TEST_NAME): Likewise.
56327         * string/test-rawmemchr.c (TEST_NAME): Likewise.
56328         * string/test-stpcpy.c (TEST_NAME): Likewise.
56329         * string/test-stpncpy.c (TEST_NAME): Likewise.
56330         * string/test-strcasecmp.c (TEST_NAME): Likewise.
56331         * string/test-strcasestr.c (TEST_NAME): Likewise.
56332         * string/test-strcat.c (TEST_NAME): Likewise.
56333         * string/test-strchr.c (TEST_NAME): Likewise.
56334         * string/test-strcmp.c(TEST_NAME): Likewise.
56335         * string/test-strcpy.c (TEST_NAME): Likewise.
56336         * string/test-strcspn.c (TEST_NAME): Likewise.
56337         * string/test-strlen.c (TEST_NAME): Likewise.
56338         * string/test-strncasecmp.c (TEST_NAME): Likewise.
56339         * string/test-strncmp.c (TEST_NAME): Likewise.
56340         * string/test-strncpy.c (TEST_NAME): Likewise.
56341         * string/test-strnlen.c (TEST_NAME): Likewise.
56342         * string/test-strpbrk.c (TEST_NAME): Likewise.
56343         * string/test-strrchr.c (TEST_NAME): Likewise.
56344         * string/test-strspn.c (TEST_NAME): Likewise.
56345         * string/test-strstr.c (TEST_NAME): Likewise.
56346         * string/test-bcopy-ifunc.c: New file.
56347         * string/test-bzero-ifunc.c: Likewise.
56348         * string/test-memccpy-ifunc.c: Likewise.
56349         * string/test-memchr-ifunc.c: Likewise.
56350         * string/test-memcmp-ifunc.c: Likewise.
56351         * string/test-memcpy-ifunc.c: Likewise.
56352         * string/test-memmem-ifunc.c: Likewise.
56353         * string/test-memmove-ifunc.c: Likewise.
56354         * string/test-mempcpy-ifunc.c: Likewise.
56355         * string/test-memset-ifunc.c: Likewise.
56356         * string/test-rawmemchr-ifunc.c: Likewise.
56357         * string/test-stpcpy-ifunc.c: Likewise.
56358         * string/test-stpncpy-ifunc.c: Likewise.
56359         * string/test-strcasecmp-ifunc.c: Likewise.
56360         * string/test-strcasestr-ifunc.c: Likewise.
56361         * string/test-strcat-ifunc.c: Likewise.
56362         * string/test-strchr-ifunc.c: Likewise.
56363         * string/test-strchrnul-ifunc.c: Likewise.
56364         * string/test-strcmp-ifunc.c: Likewise.
56365         * string/test-strcpy-ifunc.c: Likewise.
56366         * string/test-strcspn-ifunc.c: Likewise.
56367         * string/test-strlen-ifunc.c: Likewise.
56368         * string/test-strncasecmp-ifunc.c: Likewise.
56369         * string/test-strncat-ifunc.c: Likewise.
56370         * string/test-strncmp-ifunc.c: Likewise.
56371         * string/test-strncpy-ifunc.c: Likewise.
56372         * string/test-strnlen-ifunc.c: Likewise.
56373         * string/test-strpbrk-ifunc.c: Likewise.
56374         * string/test-strrchr-ifunc.c: Likewise.
56375         * string/test-strspn-ifunc.c: Likewise.
56376         * string/test-strstr-ifunc.c: Likewise.
56377
56378         * debug/Makefile (tests-ifunc): New variable.
56379         (tests): Add $(tests-ifunc).
56380         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
56381         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
56382         * debug/test-stpcpy_chk-ifunc.c: New file.
56383         * debug/test-strcpy_chk-ifunc.c: Likewise.
56384
56385 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
56386
56387         [BZ #13601]
56388         * elf/dl-load.c (open_verify): Retry read if the entire ELF
56389         header is not read in.
56390
56391 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
56392
56393         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
56394         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
56395         directly.  Pass built executable to script as
56396         $(built-program-cmd).
56397         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
56398         $testprogram without using LD_LIBRARY_PATH and $ldso.
56399
56400         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
56401         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
56402         $(rtld-installed-name).
56403         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
56404         (rtld_installed_name): Likewise.
56405         (library_path): Likewise.
56406         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
56407         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
56408         $(run-program-prefix) to tst-tables.sh.
56409         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
56410         it to run tst-table-from and tst-table-to.
56411         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
56412         Pass it to tst-table.sh.
56413         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
56414         $(run-program-prefix) to tst-gettext.sh.
56415         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
56416         tst-translit.sh.
56417         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
56418         tst-gettext2.sh.
56419         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
56420         to run tst-gettext.
56421         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
56422         to run tst-gettext2.
56423         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
56424         to run tst-translit.
56425         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
56426         $(run-program-prefix) to tst-mtrace.sh.
56427         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
56428         to run tst-mtrace.
56429         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
56430         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
56431         $(rtld-installed-name).
56432         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
56433         (rtld_installed_name): Likewise.
56434         (run_program_prefix): New variable.  Use it to run wordexp-test.
56435
56436         * Makeconfig (ARCH): Remove all definitions.
56437         (machine): Likewise.
56438         [ARCH]: Remove conditional code.
56439         [!objdir]: Give error.
56440         [!objdir] (objpfx): Remove.
56441         [!objdir] (common-objpfx): Likewise.
56442         [!objdir] (common-objdir): Likewise.
56443         * configure.in (config_makefile): Remove.  Hardcode Makefile in
56444         AC_CONFIG_FILES call.
56445         * configure: Regenerated.
56446
56447         [BZ #13888]
56448         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
56449         or TMPDIR.
56450         (testout): Likewise.
56451
56452         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
56453         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
56454         $(rtld-installed-name).
56455         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
56456         (rtld_installed_name): Likwise.
56457         (runit): Remove function.
56458         (run_getconf): New variable,  Use it for running getconf binary.
56459
56460 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
56461
56462         [BZ #14716]
56463         * string/test-memmem.c (check_result): New function.
56464         (do_one_test): Use it.
56465         (check1): New function.
56466         (test_main): Use it.
56467
56468 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
56469
56470         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
56471
56472 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
56473
56474         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
56475         (_G_LSEEK64): Likewise.
56476         (_G_MMAP64): Likewise.
56477         (_G_FSTAT64): Likewise.
56478         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
56479         (_G_LSEEK64): Likewise.
56480         (_G_MMAP64): Likewise.
56481         (_G_FSTAT64): Likewise.
56482         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
56483         unconditional.  Call __mmap64 directly.
56484         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
56485         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
56486         __lseek64 directly.
56487         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
56488         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
56489         __mmap64 directly.
56490         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
56491         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56492         __lseek64 directly.
56493         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
56494         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56495         __lseek64 directly.
56496         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
56497         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
56498         __lseek64 directly.
56499         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
56500         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
56501         __fxstat64 directly.
56502         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
56503         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
56504         unconditional.
56505         (freopen64) [!_G_OPEN64]: Remove conditional code.
56506         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
56507         unconditional.
56508         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
56509         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
56510         unconditional.
56511         (ftello64) [!_G_LSEEK64]: Remove conditional code.
56512         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
56513         unconditional.
56514         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56515         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
56516         unconditional.
56517         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
56518         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
56519         unconditional.
56520         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56521         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
56522         unconditional.
56523         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56524         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
56525         unconditional.
56526         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56527
56528 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
56529
56530         [BZ #12140]
56531         * manual/memory.texi (Malloc Tunable Parameters): Add note
56532         about free list pointers overwriting some perturb bytes.
56533         Wording suggested by Roland McGrath.
56534
56535 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
56536
56537         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
56538         (lgamma_test): Likewise.
56539         (tgamma_test): Likewise.
56540
56541 2012-10-16  Florian Weimer  <fweimer@redhat.com>
56542
56543         [BZ #14700]
56544         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
56545         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
56546
56547 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
56548
56549         * NEWS: Mention BZ #14716.
56550         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
56551         when removing AVAILABLE1_USES_J macro.
56552
56553 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
56554
56555         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
56556         (__bswap_64): __uint64_t for unsigned 64-bit int.
56557
56558 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
56559
56560         * include/string.h (memmem): Declare libc hidden alias.
56561         * string/memmem.c (memmem): Define libc hidden alias.
56562         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
56563         __read, __close instead of open, read, close.
56564
56565 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
56566
56567         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
56568         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
56569         global and hidden.
56570         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
56571         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
56572         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
56573         Likewise.
56574         (__rawmemchr_sse2): Likewise.
56575         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
56576         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
56577         (__strchr_sse2): Likewise.
56578         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
56579         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
56580         (__strcasecmp_sse2): Likewise.
56581         (__strncasecmp_sse2): Likewise.
56582         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
56583         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
56584         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
56585         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
56586         (__strrchr_sse2): Likewise.
56587         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
56588         ifunc-impl-list.c.
56589         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
56590         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
56591         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
56592         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
56593         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
56594         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
56595         * sysdeps/x86_64/multiarch/memset.S: Likewise.
56596         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
56597         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
56598         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
56599         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
56600         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
56601         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
56602         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
56603         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
56604         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
56605         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
56606         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
56607         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
56608         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
56609         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
56610         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
56611         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
56612         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
56613         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
56614         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
56615         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
56616         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
56617         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
56618         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
56619
56620         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
56621         global and hidden.
56622         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
56623         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
56624         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
56625         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
56626         Likewise.
56627         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
56628         Likewise.
56629         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
56630         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
56631         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
56632         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
56633         ifunc-impl-list.c.
56634         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
56635         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
56636         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
56637         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
56638         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
56639         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
56640         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
56641         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
56642         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
56643         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
56644         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
56645         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
56646         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
56647         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
56648         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
56649         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
56650         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
56651         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
56652         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
56653         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
56654         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
56655         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
56656         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
56657         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
56658         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
56659         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
56660         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
56661         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
56662         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
56663         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
56664         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
56665         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
56666         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
56667         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
56668         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
56669         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
56670         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
56671         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
56672         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
56673         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
56674         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
56675
56676         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
56677         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
56678         * include/ifunc-impl-list.h: New file.
56679         * misc/ifunc-impl-list.c: Likewise.
56680         * misc/Makefile (routines): Add ifunc-impl-list.
56681         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
56682         * string/test-string.h: Include <ifunc-impl-list.h>.
56683         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
56684         TEST_NAME]: New variables.
56685         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
56686         are defined.
56687         (test_init): Call __libc_ifunc_impl_list to initialize
56688         func_list if TEST_IFUNC and TEST_NAME are defined.
56689
56690         * string/Makefile (strop-tests): Add bcopy and bzero.
56691         * string/test-bcopy.c: New file.
56692         * string/test-bzero.c: Likewise.
56693         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
56694         defined.
56695         * string/test-memset.c: Support bzero test if TEST_BZERO is
56696         defined.
56697         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
56698         __libc_memmove.
56699         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
56700         __libc_memset.
56701         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
56702         of memset.
56703
56704 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
56705
56706         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
56707         * configure: Regenerated.
56708
56709         * Makeconfig (+link-static-before-libc): Don't include
56710         $(link-static-libc).
56711
56712         * libio/libio.h (_IO_pos_t): Remove.
56713
56714 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56715
56716         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
56717         McGrath.
56718
56719 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56720
56721         * crypt/crypt-entry.c: Include fips-private.h.
56722         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
56723         * crypt/md5c-test.c (main): Tolerate disabled MD5.
56724         * sysdeps/unix/sysv/linux/fips-private.h: New file.
56725         * sysdeps/generic/fips-private.h: New file, dummy fallback.
56726
56727 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56728
56729         * crypt/crypt-private.h: Include stdbool.h.
56730         (_ufc_setup_salt_r): Return bool.
56731         * crypt/crypt-entry.c: Include errno.h.
56732         (__crypt_r): Return NULL with EINVAL for bad salt.
56733         * crypt/crypt_util.c (bad_for_salt): New.
56734         (_ufc_setup_salt_r): Check that salt is long enough and within
56735         the specified alphabet.
56736         * crypt/badsalttest.c: New file.
56737         * crypt/Makefile (tests): Add it.
56738         ($(objpfx)badsalttest): New.
56739
56740 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
56741
56742         * NEWS: Add entry for BZ #14602.
56743
56744 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
56745
56746         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
56747         type-generic.
56748         * math/libm-test.inc: Update comment listing what functions and
56749         macros are tested.
56750         (isgreater_test): New function.
56751         (isgreaterequal_test): Likewise.
56752         (isless_test): Likewise.
56753         (islessequal_test): Likewise.
56754         (islessgreater_test): Likewise.
56755         (isunordered_test): Likewise.
56756         (main): Call the new functions.
56757
56758 2012-10-09  Roland McGrath  <roland@hack.frob.com>
56759
56760         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
56761         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
56762         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
56763         * sysdeps/i386/configure: Regenerated.
56764         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
56765         * sysdeps/mach/configure: Regenerated.
56766         * sysdeps/mach/hurd/configure: Regenerated.
56767         * sysdeps/powerpc/configure: Regenerated.
56768         * sysdeps/powerpc/powerpc32/configure: Regenerated.
56769         * sysdeps/powerpc/powerpc64/configure: Regenerated.
56770         * sysdeps/s390/s390-32/configure: Regenerated.
56771         * sysdeps/s390/s390-64/configure: Regenerated.
56772         * sysdeps/sh/configure: Regenerated.
56773         * sysdeps/sparc/configure: Regenerated.
56774         * sysdeps/unix/sysv/linux/configure: Regenerated.
56775         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
56776         * sysdeps/x86_64/configure: Regenerated.
56777
56778         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
56779         defined.  Don't check if MAP is NULL.
56780
56781 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
56782
56783         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
56784         (_G_stat64): Likewise.
56785         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
56786         (_G_stat64): Likewise.
56787         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
56788         instead of struct _G_stat64.
56789         * libio/fileops.c (mmap_remap_check): Likewise.
56790         (decide_maybe_mmap): Likewise.
56791         (_IO_new_file_seekoff): Likewise.
56792         (_IO_file_stat): Likewise.
56793         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
56794         _G_off64_t.
56795         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
56796         instead of struct _G_stat64.
56797         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
56798
56799 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
56800
56801         [BZ #14602]
56802         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56803         Replace with ...
56804         (CHECK_EOL): New macro.
56805         (two_way_short_needle): Check beginning of haystack for EOL.  Use
56806         CHECK_EOL.
56807         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56808         Replace with CHECK_EOL.
56809         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56810         Replace with CHECK_EOL.
56811
56812 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
56813
56814         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
56815         type-generic.
56816         * math/libm-test.inc: Update comment listing what functions and
56817         macros are tested.
56818         (finite_test): New function.
56819         (isinf_test): Likewise.
56820         (isnan_test): Likewise.
56821         (fpclassify_test): Test subnormal input.
56822         (isfinite_test): Likewise.
56823         (isnormal_test): Likewise.
56824         (main): Call the new functions.
56825
56826 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
56827
56828         [BZ #14660]
56829         * Makerules (%.dynsym): Force C locale when running
56830         $(OBJDUMP) --dynamic-syms.
56831
56832 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
56833
56834         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
56835         <stdint.h>.
56836
56837 2012-10-06  David S. Miller  <davem@davemloft.net>
56838
56839         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
56840         upper 32-bits of the length value in %o2 since we use branch-on-register
56841         tests which consider the entire 64-bit register.
56842
56843 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
56844
56845         * string/test-strstr.c (check2): Add a test for page boundary.
56846
56847 2012-10-05  David S. Miller  <davem@davemloft.net>
56848
56849         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
56850         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
56851         file.
56852         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
56853         sysdep_routines.
56854         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
56855         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
56856         and bzero when HWCAP_SPARC_CRYPTO is present.
56857
56858 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
56859
56860         [BZ #14602]
56861         * string/test-strstr.c (check2): New function.
56862         (test_main): Call check2.
56863
56864         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
56865         and bug-strchr1.
56866         * string/bug-strcasestr1.c (do_test): Moved to ...
56867         * string/test-strcasestr.c (check1): Here.  New function.
56868         (do_one_test): Break out result checking code into ...
56869         (check_result): This.  New function.
56870         (do_one_test): Call check_result.
56871         (test_main): Call check1.
56872         * string/bug-strchr1.c (do_test): Moved to ...
56873         * string/test-strchr.c (check1): Here.  New function.
56874         (do_one_test): Break out result checking code into ...
56875         (check_result): This.  New function.
56876         (do_one_test): Call check_result.
56877         (test_main): Call check1.
56878         * string/bug-strstr1.c (main): Moved to ...
56879         * string/test-strstr.c (check1): Here.  New function.
56880         (do_one_test): Break out result checking code into ...
56881         (check_result): This.  New function.
56882         (do_one_test): Call check_result.
56883         (test_main): Call check1.
56884         * string/bug-strcasestr1.c: Removed.
56885         * string/bug-strchr1.c: Likewise.
56886         * string/bug-strstr1.c: Likewise.
56887
56888         * elf/Makefile (dl-routines): Add hwcaps.
56889         * elf/dl-support.c (_dl_important_hwcaps): Removed.
56890         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
56891         (_dl_important_hwcaps): Moved to ...
56892         * elf/dl-hwcaps.c: Here.  New file.
56893         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
56894
56895         [BZ #14557]
56896         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
56897         if IS_IN_rtld isn't defined.
56898
56899         * elf/dl-support.c (_dl_sysinfo_map): New.
56900         Include "get-dynamic-info.h" and "setup-vdso.h".
56901         (_dl_non_dynamic_init): Call setup_vdso.
56902         * elf/dynamic-link.h: Don't include <assert.h>.
56903         (elf_get_dynamic_info): Moved to ...
56904         * elf/get-dynamic-info.h: Here.  New file.
56905         * elf/dynamic-link.h: Include "get-dynamic-info.h".
56906         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
56907         * elf/setup-vdso.h: Here.  New file.
56908         * elf/rtld.c: Include "setup-vdso.h".
56909         (dl_main): Call setup_vdso.
56910
56911 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
56912
56913         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
56914         creal in comment listing functions tested.  List finite, isinf,
56915         isnan, isless, islessequal, isgreater, isgreaterequal,
56916         islessgreater, isunordered, lgamma_r and pow10 as functions and
56917         macros not tested.  Mention which functions not tested are aliases
56918         for other functions.  Fix typo.  Note that signs of NaNs are not
56919         tested.
56920
56921         * scripts/config.guess: Update from config.git.
56922         * scripts/config.sub: Likewise.
56923
56924 2012-10-04  Roland McGrath  <roland@hack.frob.com>
56925
56926         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
56927         * misc/madvise.c (madvise): Renamed to __madvise.
56928         Make madvise a weak alias.
56929         * include/sys/mman.h: Declare __madvise.
56930         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
56931         * sysdeps/unix/syscalls.list
56932         (madvise): Make __madvise the strong name, and madvise a weak alias.
56933         * sysdeps/unix/sysv/linux/syscalls.list
56934         (madvise, mmap): Remove redundant entries.
56935         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
56936         * malloc/malloc.c (mtrim): Likewise.
56937         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
56938
56939 2012-10-03  Roland McGrath  <roland@hack.frob.com>
56940
56941         * sysdeps/mach/hurd/dl-cache.c: File removed.
56942         * config.h.in (USE_LDCONFIG): New #undef.
56943         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
56944         * configure: Regenerated.
56945         * elf/Makefile (dl-routines): Add dl-cache only under
56946         [$(use-ldconfig) = yes].
56947         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
56948         cache on [USE_LDCONFIG].
56949         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
56950         [USE_LDCONFIG].
56951         * elf/rtld.c (dl_main): Likewise.
56952
56953 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
56954
56955         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
56956         _SC_LEVEL4_CACHE_LINESIZE.
56957
56958 2012-10-03  Roland McGrath  <roland@hack.frob.com>
56959
56960         * sysdeps/unix/bsd/confstr.h: File removed.
56961
56962 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
56963
56964         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
56965         sys/sdt-config.h.
56966
56967 2012-10-02  Roland McGrath  <roland@hack.frob.com>
56968
56969         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
56970         Make 'mapoff' field ElfW(Off) rather than off_t.
56971
56972 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
56973
56974         * nscd/Makefile: Remove nscd-cflags and all its users.
56975         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
56976         (CFLAGS-nonlib): Add compiler flags for nscd modules.
56977
56978         [BZ #10631]
56979         * malloc.c (malloc_printerr): Clarify error message.
56980
56981 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
56982
56983         [BZ #14648]
56984         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
56985         Set bit_FMA_Usable if FMA is supported.
56986         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
56987         macro.
56988         (bit_FMA4_Usable): Updated.
56989         (index_FMA_Usable): New macro.
56990         (CPUID_FMA): Likewise.
56991         (HAS_FMA): Defined with bit_FMA_Usable.
56992
56993 2012-10-01  Roland McGrath  <roland@hack.frob.com>
56994
56995         * bits/types.h (__swblk_t): Type removed.
56996         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
56997         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
56998         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
56999         (__SWBLK_T_TYPE): Likewise.
57000         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
57001         (__SWBLK_T_TYPE): Likewise.
57002         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
57003         (__SWBLK_T_TYPE): Likewise.
57004         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
57005         (__SWBLK_T_TYPE): Likewise.
57006
57007 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
57008             Honza Horak <hhorak@redhat.com>
57009
57010         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
57011         (xdr_mapname): Use YPMAXMAP as maxsize.
57012         (xdr_peername): Use YPMAXPEER as maxsize.
57013         (xdr_keydat): Use YPAXRECORD as maxsize.
57014         (xdr_valdat): Use YPMAXRECORD as maxsize.
57015
57016 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57017
57018         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
57019
57020         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
57021         * csu/init-first.c: ... here.
57022         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
57023         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
57024         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
57025         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
57026         * sysdeps/i386/init-first.c: File removed.
57027         * sysdeps/sh/init-first.c: File removed.
57028
57029 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
57030
57031         [BZ #14645]
57032         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
57033         if x * y might underflow to zero and z is zero.
57034         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
57035         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57036         * math/libm-test.inc (min_subnorm_value): New variable.
57037         (fma_test): Add more tests.
57038         (fma_test_towardzero): Likewise.
57039         (fma_test_downward): Likewise.
57040         (fma_test_upward): Likewise.
57041         (initialize): Set min_subnorm_value.
57042
57043 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
57044
57045         [BZ #14638]
57046         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
57047         0 + 0.
57048         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
57049         mode for addition resulting in exact zero.
57050         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
57051         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
57052         exact 0 + 0.
57053         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
57054         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57055         * math/libm-test.inc (fma_test): Add more tests.
57056         (fma_test_towardzero): New function.
57057         (fma_test_downward): Likewise.
57058         (fma_test_upward): Likewise.
57059         (main): Call the new functions.
57060
57061 2012-09-28  David S. Miller  <davem@davemloft.net>
57062
57063         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
57064
57065 2012-09-28  Roland McGrath  <roland@hack.frob.com>
57066
57067         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
57068         instead of SIGALRM.
57069
57070         * sysdeps/gnu/_G_config.h: Moved to ...
57071         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
57072         * sysdeps/mach/hurd/_G_config.h: Moved to ...
57073         * sysdeps/generic/_G_config.h: ... here.
57074
57075         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
57076
57077         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
57078
57079         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
57080         Conditionalize target on [libnss_test1.so-version].
57081
57082         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
57083
57084         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
57085         (elfobjdir): Move out of conditionals.
57086
57087         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
57088         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
57089         (__nss_lookup_function): Conditionalize label remove_from_tree on
57090         [!DO_STATIC_NSS || SHARED], matching its only use.
57091
57092 2012-09-28  David S. Miller  <davem@davemloft.net>
57093
57094         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
57095         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
57096         file.
57097         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57098         sysdep_routines.
57099         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57100         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
57101         when HWCAP_SPARC_CRYPTO is present.
57102
57103 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57104
57105         * io/tst-mknodat.c: Create a FIFO instead of a socket.
57106
57107 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
57108
57109         [BZ #6530]
57110         * stdio-common/vfprintf.c (process_string_arg): Revert
57111         2000-07-22 change.
57112
57113 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
57114
57115         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
57116         for testcase.
57117         * stdio-common/tst-sprintf.c: Include <locale.h>
57118         (main): Test sprintf's handling of incomplete multibyte
57119         characters.
57120
57121 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
57122
57123         * elf/dl-runtime.c (VERSYMIDX): Removed.
57124         * elf/dl-version.c (VERSYMIDX): Likewise.
57125         * elf/do-rel.h (VERSYMIDX): Likewise.
57126         (VALIDX): Likewise.
57127         * elf/dynamic-link.h (VERSYMIDX): Likewise.
57128         * elf/rtld.c (VALIDX): Likewise.
57129         (ADDRIDX): Likewise.
57130         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
57131         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
57132         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
57133         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
57134         (VALIDX): Likewise.
57135         (ADDRIDX): Likewise.
57136
57137 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57138
57139         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
57140
57141 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
57142
57143         [BZ #11438]
57144         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
57145         to global scope.
57146         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
57147         addresses are in the same scope as 192.0.2/24.
57148         * posix/gai.conf: Document new scope table defaults.
57149
57150 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57151
57152         [BZ #5298]
57153         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
57154         for ftell.  Compute offsets from write pointers instead.
57155         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57156
57157 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57158
57159         [BZ #14543]
57160         * libio/Makefile (tests): New test case tst-fseek.
57161         * libio/tst-fseek.c: New test case to verify that fseek/ftell
57162         combination works in wide mode.
57163         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
57164         state when the external buffer state changes.
57165
57166 2012-09-27  David S. Miller  <davem@davemloft.net>
57167
57168         [BZ #14376]
57169         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
57170         pass reloc->r_addend in as the 'high' argument to
57171         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
57172
57173         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57174
57175 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57176
57177         * rt/tst-aio2.c: Include <pthread.h>.
57178         * rt/tst-aio3.c: Likewise.
57179
57180 2012-09-27  Steve Ellcey  <sellcey@mips.com>
57181
57182         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
57183
57184 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
57185
57186         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
57187         contents on [SHARED].
57188
57189 2012-09-26  Marek Polacek  <polacek@redhat.com>
57190
57191         [BZ #14530]
57192         [BZ #13741]
57193         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
57194         for C++ and GCC <4.3 as well as for non GCC compilers.
57195
57196 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
57197
57198         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57199
57200 2012-09-25  Roland McGrath  <roland@hack.frob.com>
57201
57202         * Makefile.in (all, install): Declare with .PHONY.
57203         Reported by Michael Hope <michael.hope@linaro.org>.
57204
57205 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
57206
57207         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
57208         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
57209         system header.
57210         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
57211         Likewise.
57212         (sydep_routines): Add the new and the internal functions.
57213         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
57214         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
57215         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
57216         (GLIBC_2.17): Add the new function.
57217         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
57218         (GLIBC_2.17): Likewise.
57219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
57220         (GLIBC_2.17): Likewise.
57221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
57222         (GLIBC_2.17): Likewise.
57223         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
57224
57225 2012-09-25  Alan Modra  <amodra@gmail.com>
57226
57227         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
57228         Add release barrier before setting once_control to say
57229         initialisation is done.  Add hints on lwarx.  Use macro in
57230         place of isync.
57231         (clear_once_control): Add release barrier.
57232
57233 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57234
57235         [BZ #13629]
57236         * math/s_clog.c (__clog): Handle more values close to |z| = 1
57237         specially.
57238         * math/s_clog10.c (__clog10): Likewise.
57239         * math/s_clog10f.c (__clog10f): Likewise.
57240         * math/s_clog10l.c (__clog10l): Likewise.
57241         * math/s_clogf.c (__clogf): Likewise.
57242         * math/s_clogl.c (__clogl): Likewise.
57243         * math/Makefile (libm-calls): Add x2y2m1.
57244         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
57245         (__x2y2m1): Likewise.
57246         (__x2y2m1l): Likewise.
57247         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
57248         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
57249         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
57250         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57251         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
57252         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
57253         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
57254         * sysdeps/i386/fpu/libm-test-ulps: Update.
57255         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57256
57257         [BZ #14621]
57258         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
57259         int as type of variable DEPTH.
57260         (glob): Use size_t instead of int as type of variables NEWCOUNT
57261         and OLD_PATHC.
57262
57263 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57264
57265         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57266         Add s_sincosf-sse2.
57267         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
57268         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
57269         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
57270         macros for using routine as __sincosf_ia32.
57271         Use macro for function declaration and weak_alias.
57272         * sysdeps/i386/fpu/libm-test-ulps: Update.
57273
57274         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
57275         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57276
57277         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
57278         subnormal argument.
57279         * math/s_cexpf.c (__cexpf): Likewise.
57280         * math/s_csinf.c (__csinf): Likewise.
57281         * math/s_csinhf.c (__csinhf): Likewise.
57282         * math/s_ctanf.c (__ctanf): Likewise.
57283         * math/s_ctanhf.c (__ctanhf): Likewise.
57284         * math/s_ccosh.c (__ccoshf): Likewise.
57285         * math/s_cexp.c (__cexpl): Likewise.
57286         * math/s_csin.c (__csin): Likewise.
57287         * math/s_csinh.c (__csinh): Likewise.
57288         * math/s_ctan.c (__ctan): Likewise.
57289         * math/s_ctanh.c (ctanh): Likewise.
57290         * math/s_ccoshl.c (__ccoshl): Likewise.
57291         * math/s_cexpl.c (__cexpl): Likewise.
57292         * math/s_csinl.c (__csinl): Likewise.
57293         * math/s_csinhl.c (__csinhl): Likewise.
57294         * math/s_ctanl.c (__ctanl): Likewise.
57295         * math/s_ctanhl.c (__ctanhl): Likewise.
57296
57297 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57298
57299         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
57300         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
57301         (_IO_off_t): Define to __off_t, not _G_off_t.
57302         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
57303         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
57304         (_IO_wint_t): Define to wint_t, not _G_wint_t.
57305         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
57306         type of __dummy and __dummy2 fields.
57307         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
57308         (_G_ssize_t): Likewise.
57309         (_G_off_t): Likewise.
57310         (_G_pid_t): Likewise.
57311         (_G_uid_t): Likewise.
57312         (_G_wchar_t): Likewise.
57313         (_G_wint_t): Likewise.
57314         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
57315         (_G_ssize_t): Likewise.
57316         (_G_off_t): Likewise.
57317         (_G_pid_t): Likewise.
57318         (_G_uid_t): Likewise.
57319         (_G_wchar_t): Likewise.
57320         (_G_wint_t): Likewise.
57321         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
57322         (_G_ssize_t): Likewise.
57323         (_G_off_t): Likewise.
57324         (_G_pid_t): Likewise.
57325         (_G_uid_t): Likewise.
57326         (_G_wchar_t): Likewise.
57327         (_G_wint_t): Likewise.
57328
57329 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57330
57331         * malloc/arena.c: Include malloc-sysdep.h.
57332         (shrink_heap): Use check_may_shrink_heap to decide if madvise
57333         is sufficient to shrink the heap or an unmap is needed.
57334         * sysdeps/generic/malloc-sysdep.h: New file.  Define
57335         new function check_may_shrink_heap.
57336         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
57337         new function check_may_shrink_heap.
57338
57339 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57340
57341         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
57342         comments.
57343
57344 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
57345
57346         * catgets/test-gencat.sh: Add "set -e".
57347         * elf/tst-pathopt.sh: Likewise.
57348         * grp/tst_fgetgrent.sh: Likewise.
57349         * iconvdata/run-iconv-test.sh: Likewise.
57350         * intl/tst-gettext.sh: Likewise.
57351         * intl/tst-gettext2.sh: Likewise.
57352         * intl/tst-gettext4.sh: Likewise.
57353         * intl/tst-gettext6.sh: Likewise.
57354         * intl/tst-translit.sh: Likewise.
57355         * io/ftwtest-sh: Likewise.
57356         * libio/test-freopen.sh: Likewise.
57357         * malloc/tst-mtrace.sh: Likewise.
57358         * posix/globtest.sh: Likewise.
57359         * posix/tst-getconf.sh: Likewise.
57360         * posix/wordexp-tst.sh: Likewise.
57361         * stdio-common/tst-printf.sh: Likewise.
57362         * stdio-common/tst-unbputc.sh: Likewise.
57363         * stdlib/tst-fmtmsg.sh: Likewise.
57364         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57365         * catgets/Makefile: Do not specify -e option when running
57366         testsuite shell scripts.
57367         * elf/Makefile: Likewise.
57368         * grp/Makefile: Likewise.
57369         * iconvdata/Makefile: Likewise.
57370         * intl/Makefile: Likewise.
57371         * io/Makefile: Likewise.
57372         * libio/Makefile: Likewise.
57373         * malloc/Makefile: Likewise.
57374         * posix/Makefile: Likewise.
57375         * stdio-common/Makefile: Likewise.
57376         * stdlib/Makefile: Likewise.
57377         * sysdeps/x86_64/Makefile: Likewise.
57378
57379         * io/ftwtest-sh: Add copyright header.
57380         * posix/globtest.sh: Likewise.
57381         * posix/tst-getconf.sh: Likewise.
57382         * posix/wordexp-tst.sh: Likewise.
57383         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57384
57385 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
57386
57387         [BZ #13679]
57388         * Makeconfig (+link): Defined as $(+link-static) if
57389         $(build-shared) isn't yes.
57390         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
57391         isn't yes.
57392         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
57393
57394         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
57395
57396         [BZ #14562]
57397         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
57398         new chunk size with MALLOC_ALIGN_MASK.
57399
57400 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
57401
57402         [BZ #5044]
57403         * stdio-common/printf_fphex.c: Include <stdbool.h> and
57404         <rounding-mode.h>.
57405         (__printf_fphex): Determine rounding using get_rounding_mode and
57406         round_away.
57407         * stdio-common/tst-printf-round.c (struct hex_test): New
57408         structure.
57409         (hex_tests): New variable.
57410         (test_hex_in_one_mode): New function.
57411         (do_test): Also run tests for hex float output.
57412
57413 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
57414
57415         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57416         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57417         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
57418         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57419         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57420         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
57421         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57422         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57423
57424 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
57425
57426         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
57427         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
57428         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
57429         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
57430
57431 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
57432
57433         [BZ #14579]
57434         * elf/rtld.c (dl_main): Limit the check for self loading to normal
57435         mode only.
57436         * elf/tst-rtld-load-self.sh: New test.
57437         * elf/Makefile: Run it.
57438
57439 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
57440
57441         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
57442         (tst-writev-ENV): Remove.
57443         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
57444
57445 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
57446
57447         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
57448
57449 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
57450
57451         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
57452         unconditional.
57453         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
57454         Likewise.
57455         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
57456         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
57457         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
57458         Likewise.
57459
57460 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
57461
57462         [BZ #14587]
57463         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
57464         * config.make.in (have-cpp-asm-debuginfo): Removed.
57465         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
57466         * configure: Regenerated.
57467
57468 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
57469
57470         [BZ #5044]
57471         * stdio-common/printf_fp.c: Include <stdbool.h> and
57472         <rounding-mode.h>.
57473         (___printf_fp): Determine rounding using get_rounding_mode and
57474         round_away.
57475         * stdio-common/tst-printf-round.c: New file.
57476         * stdio-common/Makefile (tests): Add tst-printf-round.
57477         (link-libm): New variable.
57478         ($(objpfx)tst-printf-round): Depend in $(link-libm).
57479
57480 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
57481
57482         [BZ #14576]
57483         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
57484         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
57485         Likewise.
57486         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
57487         Likewise.
57488
57489 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
57490
57491         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
57492         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57493         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57494         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57495
57496 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
57497
57498         [BZ #14518]
57499         * include/rounding-mode.h: New file.
57500         * sysdeps/generic/get-rounding-mode.h: Likewise.
57501         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
57502         * stdlib/strtod_l.c: Include <rounding-mode.h>.
57503         (MAX_VALUE): New macro.
57504         (MIN_VALUE): Likewise.
57505         (overflow_value): New function.
57506         (underflow_value): Likewise.
57507         (round_and_return): Use overflow_value and underflow_value to
57508         determine return values in overflow and underflow cases.  Use
57509         round_away to determine rounding depending on rounding mode.
57510         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
57511         determine return values in overflow and underflow cases.
57512         * stdlib/tst-strtod-round.c: Include <fenv.h>.
57513         (struct test_results): New structure.
57514         (struct test): Use struct test_results to store expected results
57515         for all rounding modes.
57516         (TEST): Include expected results for all rounding modes.
57517         (test_in_one_mode): New function.
57518         (do_test): Use test_in_one_mode to compute and check results.
57519         Check results for all rounding modes.
57520         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
57521         $(link-libm).
57522
57523 2012-12-09  Allan McRae  <allan@archlinux.org>
57524
57525         * sysdeps/i386/fpu/libm-test-ulps: Update
57526
57527 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
57528
57529         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
57530         (_G_int32_t): Likewise.
57531         (_G_uint16_t): Likewise.
57532         (_G_uint32_t): Likewise.
57533         (_G_HAVE_BOOL): Likewise.
57534         (_G_HAVE_ATEXIT): Likewise.
57535         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57536         (_G_HAVE_IO_FILE_OPEN): Likewise.
57537         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
57538         (_G_int32_t): Likewise.
57539         (_G_uint16_t): Likewise.
57540         (_G_uint32_t): Likewise.
57541         (_G_HAVE_BOOL): Likewise.
57542         (_G_HAVE_ATEXIT): Likewise.
57543         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57544         (_G_HAVE_IO_FILE_OPEN): Likewise.
57545         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
57546         (_G_int32_t): Likewise.
57547         (_G_uint16_t): Likewise.
57548         (_G_uint32_t): Likewise.
57549         (_G_HAVE_BOOL): Likewise.
57550         (_G_HAVE_ATEXIT): Likewise.
57551         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57552         (_G_HAVE_IO_FILE_OPEN): Likewise.
57553
57554 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
57555
57556         * csu/libc-tls.c: Update copyright years.
57557
57558 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
57559
57560         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
57561         [!_G_USING_THUNKS]: Remove conditional code.
57562         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
57563         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
57564
57565         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
57566         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
57567         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57568         (_G_VTABLE_LABEL_PREFIX): Likewise.
57569         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57570         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57571         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57572         (_G_VTABLE_LABEL_PREFIX): Likewise.
57573         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57574         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57575         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57576         (_G_VTABLE_LABEL_PREFIX): Likewise.
57577         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57578
57579 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
57580
57581         * libio/Makefile: Include ../Makeconfig before tests.
57582         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
57583         only if $(build-shared) is yes.
57584
57585         * iconv/gconv_db.c: Update copyright years.
57586
57587 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57588
57589         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
57590         unwind info if defined PIC. Fix special cases description.
57591         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
57592
57593         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
57594         DP_HI_MASK entry.
57595         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
57596
57597 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
57598
57599         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
57600
57601         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
57602         is NULL.
57603
57604         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
57605         (LDLIBS-tst-chk4): This.
57606         (LDFLAGS-tst-chk5): Renamed to ...
57607         (LDLIBS-tst-chk5): This.
57608         (LDFLAGS-tst-chk6): Renamed to ...
57609         (LDLIBS-tst-chk6): This.
57610         (LDFLAGS-tst-lfschk4): Renamed to ...
57611         (LDLIBS-tst-lfschk4): This.
57612         (LDFLAGS-tst-lfschk5): Renamed to ...
57613         (LDLIBS-tst-lfschk5): This.
57614         (LDFLAGS-tst-lfschk6): Renamed to ...
57615         (LDLIBS-tst-lfschk6): This.
57616
57617         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
57618         on $(common-objpfx)soversions.mk.
57619
57620 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
57621
57622         [BZ #10014]
57623         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
57624         example host name.
57625
57626 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
57627
57628         * malloc/arena.c (arena_get_retry): New function that gets
57629         another arena for the caller to try its request on.
57630         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
57631         current arena cannot fulfill the request.
57632         (__libc_memalign): Likewise.
57633         (__libc_memalign): Likewise.
57634         (__libc_pvalloc): Likewise.
57635         (__libc_calloc): Likewise.
57636
57637 2012-09-05  John Tobey  <john.tobey@gmail.com>
57638
57639         [BZ #13542]
57640         * manual/arith.texi (Operations on Complex): Fix description
57641         of carg branch cut.
57642
57643 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57644
57645         [BZ #10014]
57646         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
57647         host name.
57648
57649         [BZ #10038]
57650         * manual/memory.texi (Memory): Make order of menu items match
57651         order of sections.
57652
57653 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57654
57655         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
57656         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
57657         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
57658
57659 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57660
57661         * csu/libc-tls.c (static_dtv): Renamed to ...
57662         (_dl_static_dtv): This.  Make it global.
57663         (_dl_initial_dtv): Removed.
57664         (__libc_setup_tls): Updated.
57665         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
57666         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
57667         DL_INITIAL_DTV.
57668
57669 2012-09-06  Petr Machata  <pmachata@redhat.com>
57670
57671         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
57672         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
57673         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
57674         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
57675
57676 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57677
57678         [BZ #14545]
57679         * csu/libc-tls.c (_dl_initial_dtv): New variable.
57680         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
57681         freeing dtv[-1].
57682
57683 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57684
57685         [BZ #14544]
57686         * Makeconfig (link-static-before-libc): Replace $(+prector)
57687         with $(+prectorT).
57688         (link-static-after-libc): Replace $(+postctor) with
57689         $(+postctorT).
57690         (link-bounded): Replace $(+prector)/$(+postctor) with
57691         $(+prectorT)/$(+postctorT).
57692         (+prectorT): New macro.
57693         (+postctorT): Likewise.
57694
57695 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57696
57697         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
57698         (round_str): Handle values above the maximum for IBM long double
57699         as inexact.
57700         * stdlib/tst-strtod-round.c (tests): Regenerated.
57701
57702 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57703
57704         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
57705         assembler flag.
57706         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
57707         zarch_nohighgprs around the zarch optimized routines.
57708         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
57709         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
57710         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
57711         for zarch.
57712
57713 2012-09-05  David S. Miller  <davem@davemloft.net>
57714
57715         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57716
57717         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
57718         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
57719         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
57720         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
57721         entries.
57722
57723 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57724
57725         * malloc/arena.c: Fold copyright years.
57726         * malloc/mcheck.c, malloc/memusage.c: Likewise.
57727
57728 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57729
57730         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
57731
57732 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57733
57734         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
57735
57736 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57737
57738         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
57739         change internal state upon failure.
57740
57741 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57742
57743         * malloc/mcheck.c (mcheck_check_all): Fix typo.
57744         * malloc/memusage.c (mmap): Likewise.
57745         (mmap64, mremap): Likewise.  Adjust name in comment.
57746
57747 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57748
57749         * libio/fileops.c: Fix typos in comments.
57750         * libio/oldfileops.c: Likewise.
57751         * libio/wfileops.c: Likewise.
57752
57753 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57754
57755         [BZ #1349]
57756         * malloc/Makefile (tests): Add tst-malloc-usable test case.
57757         (tst-malloc-usable-ENV): Set environment for test case.
57758         * malloc/hooks.c (malloc_check_get_size): New function to get
57759         requested size.
57760         * malloc/malloc.c (musable): Use malloc_check_get_size.
57761         * malloc/tst-malloc-usable.c: New test case.
57762
57763 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
57764
57765         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
57766
57767 2012-09-05  Allan McRae  <allan@archlinux.org>
57768
57769         [BZ #13966]
57770         * configure.in (CXX_SYSINCLUDES): Use compiler output to
57771         determine header location.
57772         * configure: Regenerated.
57773
57774 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
57775
57776         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
57777         float format.
57778         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
57779         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
57780         format.
57781         (test): Regenerate.
57782
57783 2012-09-04  David S. Miller  <davem@davemloft.net>
57784
57785         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
57786         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
57787         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
57788
57789 2012-09-04  Florian Weimer  <fweimer@redhat.com>
57790
57791         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
57792         failures.
57793
57794         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
57795
57796 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
57797
57798         [BZ #9914]
57799         * libio/iogetdelim.c: Include <limits.h>.
57800         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
57801         + len + 1 would overflow.
57802
57803 2012-09-03  Andreas Jaeger  <aj@suse.de>
57804
57805         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57806         * sysdeps/i386/fpu/libm-test-ulps: Update.
57807
57808 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57809
57810         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57811         Add s_sinf-sse2, s_conf-sse2.
57812
57813         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
57814         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
57815         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
57816         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
57817
57818         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
57819         for using routine as __sinf_ia32.
57820         Use macro for function declaration and weak_alias.
57821         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
57822         for using routine as __cosf_ia32.
57823         Use macro for function declaration and weak_alias.
57824
57825         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
57826         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
57827
57828         * sysdeps/x86_64/fpu/s_sinf.S: New file.
57829         * sysdeps/x86_64/fpu/s_cosf.S: New file.
57830         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57831
57832         * math/libm-test.inc (cos_test): Add more test cases.
57833         (sin_test): Likewise.
57834         (sincos_test): Likewise.
57835
57836 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57837
57838         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
57839         (IFUNC_RESOLVE): Make pointers to the specialized implementations
57840         hidden.
57841         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
57842
57843 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
57844
57845         [BZ #14538]
57846         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
57847         first element of the GOT.
57848         (elf_machine_load_address): Return the difference between
57849         the runtime address of _DYNAMIC and elf_machine_dynamic ().
57850
57851 2012-09-01  Allan McRae  <allan@archlinux.org>
57852
57853         [BZ #13412]
57854         * configure.in (AWK): Require gawk version 3.0 or later.
57855         * configure: Regenerated.
57856
57857 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
57858
57859         * sysdeps/unix/sysv/linux/kernel-features.h
57860         (__ASSUME_POSIX_CPU_TIMERS): Remove.
57861         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
57862         [__NR_clock_getres]: Make code unconditional.
57863         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
57864         (clock_getcpuclockid): Remove code left unreachable by removal of
57865         conditionals.
57866         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
57867         code unconditional.
57868         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
57869         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
57870         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
57871         Make code unconditional.
57872         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
57873         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
57874         * sysdeps/unix/sysv/linux/clock_settime.c
57875         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
57876         conditional code.
57877         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
57878         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
57879
57880 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
57881
57882         [BZ #14476]
57883         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
57884         scripts/test-installation.pl.
57885
57886         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
57887         and $ld_so_version if it is set.
57888
57889 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
57890
57891         [BZ #14516]
57892         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
57893         failure if reading from procfs failed.
57894         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
57895
57896 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
57897
57898         * sysdeps/unix/sysv/linux/kernel-features.h
57899         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
57900         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
57901         Remove conditional code.
57902         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57903         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
57904         Remove conditional code.
57905         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57906         * sysdeps/unix/sysv/linux/i386/fxstat.c
57907         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
57908         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57909         * sysdeps/unix/sysv/linux/i386/fxstatat.c
57910         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
57911         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57912         * sysdeps/unix/sysv/linux/i386/lxstat.c
57913         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
57914         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57915         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
57916         Remove conditional code.
57917         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57918         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
57919         Remove conditional code.
57920         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57921         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
57922         <kernel-features.h>.
57923         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
57924         Remove.
57925         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
57926         Remove conditional code.
57927         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57928         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
57929         Remove conditional.
57930
57931 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
57932
57933         [BZ #5400]
57934         * NEWS: Add fixed bug number.
57935
57936 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
57937
57938         [BZ #14519]
57939         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
57940         underflowing exponent in case of negative sign.
57941         * stdlib/tst-strtod-round-data: Add more tests.
57942         * stdlib/tst-strtod-round.c (tests): Regenerated.
57943
57944         [BZ #3479]
57945         * stdlib/strtod_l.c (NDIG): Remove.
57946         (HEXNDIG): Likewise.
57947         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
57948         smallest representable value.
57949         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
57950         lie within an exact representation of 1/2 ulp of the result.
57951         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
57952         unconditionally.
57953         (TENS_P9_IDX): Define unconditionally.
57954         (TENS_P9_SIZE): Likewise.
57955         (TENS_P10_IDX): Likewise.
57956         (TENS_P10_SIZE): Likewise.
57957         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
57958         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
57959         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
57960         entries for 10^2^13 and 10^2^14.
57961         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
57962         (TENS_P13_IDX): Define.
57963         (TENS_P13_SIZE): Likewise.
57964         (TENS_P14_IDX): Likewise.
57965         (TENS_P14_SIZE): Likewise.
57966         (_fpioconst_pow10): Change array size to
57967         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
57968         unconditional.
57969         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
57970         1024]: Add entries for 10^2^13 and 10^2^14.
57971         [LAST_POW10 > _LAST_POW10]: Remove #error.
57972         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
57973         (_fpioconst_pow10): Change array size to
57974         FPIOCONST_POW10_ARRAY_SIZE.
57975         * stdlib/gen-fpioconst.c: New file.
57976         * stdlib/gen-tst-strtod-round.c: Likewise.
57977         * stdlib/tst-strtod-round-data: Likewise.
57978         * stdlib/tst-strtod-round.c: Likewise.
57979         * stdlib/Makefile (tests): Add tst-strtod-round.
57980
57981         [BZ #14459]
57982         * stdlib/strtod_l.c: Include <stdint.h>.
57983         (NDEBUG): Do not define.
57984         (round_and_return): Change EXPONENT parameter to type intmax_t.
57985         Rearrange calculations to avoid internal overflow possibilities.
57986         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
57987         Rearrange calculations to avoid internal overflow possibilities.
57988         Assert that number fits inside MPNSIZE limbs.
57989         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
57990         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
57991         calculations and add assertions to avoid internal overflow
57992         possibilities.  Add casts to avoid signed/unsigned operations.
57993         * stdlib/tst-strtod-overflow.c: New file.
57994         * stdlib/Makefile (tests): Add tst-strtod-overflow.
57995
57996 2012-08-25  Marek Polacek  <polacek@redhat.com>
57997
57998         * time/time.h: Fix some typos in comments.
57999
58000 2012-08-23  Roland McGrath  <roland@hack.frob.com>
58001
58002         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
58003         * posix/tst-rfc3484-2.c: Likewise.
58004         * posix/tst-rfc3484-3.c: Likewise.
58005
58006 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
58007
58008         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
58009         (EF_ARM_ABI_FLOAT_HARD): Likewise.
58010
58011 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
58012
58013         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
58014         #include of fxstatat64.c.
58015
58016 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58017
58018         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
58019         * shadow/getspent_r.c: Likewise.
58020         * shadow/getspnam.c: Likewise.
58021         * shadow/getspnam_r.c: Likewise.
58022         * gshadow/getsgent.c: Likewise.
58023         * gshadow/getsgent_r.c: Likewise.
58024         * gshadow/getsgnam.c: Likewise.
58025         * gshadow/getsgnam_r.c: Likewise.
58026         * inet/getnetbyad.c: Likewise.
58027         * inet/getnetbyad_r.c: Likewise.
58028         * inet/getnetbynm.c: Likewise.
58029         * inet/getnetbynm_r.c: Likewise.
58030         * inet/getnetent.c: Likewise.
58031         * inet/getnetent_r.c: Likewise.
58032         * inet/getproto.c: Likewise.
58033         * inet/getproto_r.c: Likewise.
58034         * inet/getprtent.c: Likewise.
58035         * inet/getprtent_r.c: Likewise.
58036         * inet/getprtname.c: Likewise.
58037         * inet/getprtname_r.c: Likewise.
58038         * inet/getrpcbyname.c: Likewise.
58039         * inet/getrpcbyname_r.c: Likewise.
58040         * inet/getrpcbynumber.c: Likewise.
58041         * inet/getrpcbynumber_r.c: Likewise.
58042         * inet/getrpcent.c: Likewise.
58043         * inet/getrpcent_r.c: Likewise.
58044         * inet/getaliasent.c: Likewise.
58045         * inet/getaliasent_r.c: Likewise.
58046         * inet/getaliasname.c: Likewise.
58047         * inet/getaliasname_r.c: Likewise.
58048         * nscd/getgrgid_r.c: Likewise.
58049         * nscd/getgrnam_r.c: Likewise.
58050         * nscd/gethstbyad_r.c: Likewise.
58051         * nscd/gethstbynm3_r.c: Likewise.
58052         * nscd/getpwnam_r.c: Likewise.
58053         * nscd/getpwuid_r.c: Likewise.
58054         * nscd/getsrvbynm_r.c: Likewise.
58055         * nscd/getsrvbypt_r.c: Likewise.
58056         * nscd/gai.c: Likewise.
58057
58058         * configure.in (build_nscd): New substituted variable, set
58059         by --disable-build-nscd and defaults to $use_nscd.
58060         * configure: Regenerated.
58061         * config.make.in (build-nscd): New substituted variable.
58062         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
58063         Change conditional to require [$(build-nscd) = yes] as well.
58064         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
58065
58066         [BZ# 13696]
58067         * configure.in (use_nscd): New substituted variable, set by
58068         --disable-nscd.  If enabled, define USE_NSCD.
58069         * configure: Regenerated.
58070         * config.h.in: Add USE_NSCD.
58071         * config.make.in (use-nscd): New substituted variable.
58072         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
58073         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
58074         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
58075         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
58076         (CFLAGS-getgrnam_r.c): Likewise.
58077         (CFLAGS-initgroups.c): Likewise.
58078         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
58079         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
58080         Variables removed.
58081         * inet/getnetgrent_r.c
58082         (nscd_setnetgrent): New function, broken out of ...
58083         (setnetgrent): ... here.  Call it.
58084         (innetgr): Conditionalize nscd bits on [USE_NSCD].
58085         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
58086         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
58087         * nscd/Makefile (routines, aux): Move definitions after include of
58088         Makeconfig.  Conditionalize on [$(use-nscd) != no].
58089         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
58090         Conditionalize on [USE_NSCD].
58091         (is_nscd, nscd_init_cb): Likewise.
58092         (nss_load_library): Conditionalize init callback on [USE_NSCD].
58093         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
58094         * nss/nss_db/db-init.c: Likewise.
58095         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
58096         [USE_NSCD].
58097         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
58098         (make_request): Use it.
58099         (cache_valid_p): New function.
58100         (__check_pf): Use it.
58101         * NEWS: Add item for --disable-nscd.
58102
58103 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
58104
58105         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
58106         to support sed >= 4.2.1-20-ga9bf076.
58107         * configure: Regenerated.
58108
58109 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58110
58111         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
58112         Conditionalize whole body on [IREL].
58113
58114 2012-08-22  Jeff Law <law@redhat.com>
58115
58116         [BZ #14505]
58117         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
58118         if the family is PF_UNSPEC.
58119
58120 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
58121
58122         * Makerules (lib-version): Rename from V.
58123         (install-lib-nosubdir): Change V to lib-version.
58124
58125 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
58126
58127         [BZ #14252]
58128         * powerpc32/power6/wcschr.c: New file.
58129         * powerpc32/power6/wcscpy.c: New file.
58130         * powerpc32/power6/wcsrchr.c: New file.
58131         * powerpc64/power6/wcschr.c: New file.
58132         * powerpc64/power6/wcscpy.c: New file.
58133         * powerpc64/power6/wcsrchr.c: New file.
58134
58135 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58136
58137         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
58138         (two_way_short_needle): Use it.
58139         * string/strstr.c (AVAILABLE1_USES_J): Define.
58140         * string/strcasestr.c: Likewise.
58141
58142         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
58143         array references.
58144         * string/strcasestr.c (TOLOWER): Make side-effect safe.
58145
58146         [BZ #11607]
58147         * NEWS: Add an entry.
58148         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
58149         define their defaults.
58150         (two_way_short_needle): Detect end-of-string on-the-fly.
58151         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
58152         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
58153         * string/bug-strcasestr1.c: New test.
58154         * string/Makefile: Run it.
58155
58156 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58157
58158         [BZ #11607]
58159         * string/str-two-way.h (two_way_short_needle): Optimize matching of
58160         the first character.
58161
58162 2012-08-21  Roland McGrath  <roland@hack.frob.com>
58163
58164         * csu/elf-init.c (__libc_csu_irel): Function removed.
58165         * csu/libc-start.c (apply_irel): New function.
58166         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
58167
58168 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
58169
58170         * sysdeps/unix/sysv/linux/kernel-features.h
58171         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
58172         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
58173         <kernel-features.h>.
58174         [__NR_fadvise64_64]: Make code unconditional.
58175         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
58176         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58177         !__NR_fadvise64_64)]: Likewise.
58178         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58179         !__NR_fadvise64_64))]: Likewise.
58180         [__NR_fadvise64]: Make code unconditional.
58181         [!__NR_fadvise64]: Remove conditional code.
58182         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
58183         <kernel-features.h>.
58184         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58185         unconditional.
58186         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58187         conditional code.
58188         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
58189         not include <kernel-features.h>.
58190         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58191         unconditional.
58192         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58193         conditional code.
58194         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
58195         include <kernel-features.h>.
58196         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58197         unconditional.
58198         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58199         conditional code.
58200
58201 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
58202
58203         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
58204         slight instruction rearrangements per scrollpipe analysis.
58205         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
58206
58207 2012-08-20  Roland McGrath  <roland@hack.frob.com>
58208
58209         * manual/syslog.texi (syslog; vsyslog, closelog):
58210         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
58211         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
58212
58213         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
58214         DSOCAPS to match condition on defining it.
58215
58216 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
58217
58218         * sysdeps/unix/sysv/linux/kernel-features.h
58219         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
58220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
58221         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58222         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
58224         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58225         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
58227         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58228         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58229
58230         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
58231         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
58232
58233         * sysdeps/unix/sysv/linux/kernel-features.h
58234         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
58235         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
58236         unconditional.
58237         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58238         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
58239         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58240         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58241         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
58242         Make code unconditional.
58243         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58244         (__mmap64) [!__NR_mmap2]: Likewise.
58245         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
58246         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58247         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58248         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
58249         [__NR_mmap2]: Make code unconditional.
58250         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58251         (__mmap64) [!__NR_mmap2]: Likewise.
58252
58253 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58254
58255         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
58256
58257 2012-08-18  Andreas Jaeger  <aj@suse.de>
58258
58259         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
58260
58261 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58262
58263         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
58264         * include/unistd.h (__have_sock_cloexec): Likewise.
58265         (__have_pipe2): Likewise.
58266         (__have_dup3): Likewise.
58267
58268 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58269
58270         [BZ #9685]
58271         * include/unistd.h (__have_pipe2): Change define into an extern int.
58272         (__have_dup3): Likewise.
58273         * socket/have_sock_cloexec.c: Include fcntl.h.
58274         (__have_pipe2): New variable.
58275         (__have_dup3): Likewise.
58276
58277 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
58278
58279         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
58280
58281 2012-08-17  Marek Polacek  <polacek@redhat.com>
58282
58283         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
58284         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
58285
58286 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58287
58288         * configure.in: Add AC_SUBST for sysheaders.
58289         * configure: Regenerated.
58290         * config.make.in (sysheaders): New substituted variable.
58291
58292         * sysdeps/unix/mkfifo.c: Moved ...
58293         * sysdeps/posix/mkfifo.c: ... here.
58294         * sysdeps/unix/mkfifoat.c: Moved ...
58295         * sysdeps/posix/mkfifoat.c: ... here.
58296
58297         * sysdeps/unix/utime.c: Moved ...
58298         * sysdeps/posix/utime.c: ... here.
58299
58300         * sysdeps/unix/time.c: Moved ...
58301         * sysdeps/posix/time.c: ... here.
58302         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
58303         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
58304
58305         * sysdeps/unix/nice.c: Moved ...
58306         * sysdeps/posix/nice.c: ... here.
58307
58308         * sysdeps/unix/alarm.c: Moved ...
58309         * sysdeps/posix/alarm.c: ... here.
58310
58311         * intl/Makefile ($(codeset_mo)): Depend on the input file.
58312
58313 2012-08-17  Jeff Law <law@redhat.com>
58314
58315         * intl/Makefile (codeset_mo): New variable.
58316         ($(codeset_mo)): New target.
58317         (tst-codeset.out): Depend on that.  Remove explicit rule.
58318         (tst-gettext3.out, tst-gettext5.out): Likewise.
58319         (LOCPATH-ENV, tst-codeset-ENV): New variables.
58320         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
58321         * intl/tst-codeset.sh: Remove.
58322         * intl/tst-gettext3.sh: Likewise.
58323         * intl/tst-gettext5.sh: Likewise.
58324
58325 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58326
58327         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
58328         * sysdeps/unix/syscalls.list: ... here.
58329
58330         * sysdeps/posix/getaddrinfo.c
58331         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
58332         (gaiconf_init, gaiconf_reload): Use them.
58333         [!_STATBUF_ST_NSEC]
58334         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
58335         Define using time_t rather than struct timespec.
58336
58337         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
58338         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
58339         Macros removed.
58340         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
58341         [!NO_THREADS].
58342         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
58343         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
58344         Likewise.
58345
58346         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
58347         __libc_cleanup_push argument.
58348
58349         * bits/param.h: New file.
58350         * misc/sys/param.h: New file.
58351         * include/sys/param.h: New file.
58352         * misc/Makefile (headers): Add bits/param.h.
58353         * sysdeps/generic/sys/param.h: File removed.
58354         * sysdeps/unix/sysv/linux/bits/param.h: New file.
58355         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
58356         * sysdeps/mach/hurd/bits/param.h: New file.
58357         * sysdeps/mach/hurd/sys/param.h: File removed.
58358
58359         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
58360         last change.
58361
58362         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
58363         [_IO_MTSAFE_IO].
58364         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
58365         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
58366         New macros.
58367
58368         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
58369         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
58370         rather than -D_IO_MTSAFE_IO conditionally.
58371         * stdio-common/Makefile (CPPFLAGS): Likewise.
58372         * wcsmbs/Makefile (CPPFLAGS): Likewise.
58373         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
58374         Use $(libio-mtsafe).
58375         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
58376         of -D_IO_MTSAFE_IO.
58377         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
58378         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
58379         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
58380         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
58381         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
58382         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
58383         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
58384         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
58385         (CFLAGS-fread_u_chk.c): Likewise.
58386         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
58387         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
58388         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
58389         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
58390         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
58391         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
58392         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
58393         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
58394         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
58395
58396         * libio/Makefile: Test [$(libc-reentrant) = yes]
58397         instead of [$(filter %REENTRANT, $(defines)) nonempty].
58398
58399         * Makeconfig
58400         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
58401         * sysdeps/pthread/configure: File removed.
58402         * sysdeps/pthread/Makeconfig: New file.
58403         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
58404         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
58405
58406 2012-08-16  Gary Benson  <gbenson@redhat.com>
58407
58408         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
58409         unmapping the first object in a namespace.
58410
58411 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58412
58413         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
58414         (__internal_setnetgrent): ... this.  Add internal_function to
58415         definition.  Add libc_hidden_def.
58416         (setnetgrent): Update caller.
58417         (internal_endnetgrent): Renamed to ...
58418         (__internal_endnetgrent): ... this.  Add internal_function to
58419         definition.  Add libc_hidden_def.
58420         (endnetgrent): Update caller.
58421         (internal_getnetgrent_r): Renamed to ...
58422         (__internal_getnetgrent_r): ... this.  Add internal_function to
58423         definition.  Add libc_hidden_def.
58424         (__getnetgrent_r): Update caller.
58425         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
58426
58427 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58428
58429         * stdlib/longlong.h: Update from GCC.
58430
58431 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58432
58433         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
58434         on _QL, which is set by umul_ppmm but never used.
58435         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
58436         variables, which are set by GMP macros but never used.
58437         * stdio-common/_itowa.c (_itowa): Likewise.
58438         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
58439         * stdlib/mod_1.c (mpn_mod_1): Likewise.
58440
58441 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
58442
58443         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
58444         struct La_sh_regs is not constant.
58445         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
58446         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
58447         and struct La_sparc64_regs are not constant.
58448
58449 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58450
58451         * sysdeps/unix/sysv/linux/kernel-features.h
58452         (__ASSUME_POSIX_TIMERS): Remove.
58453         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58454         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58455         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
58456         Make code unconditional.
58457         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58458         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
58459         Make code unconditional.
58460         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58461         * sysdeps/unix/sysv/linux/clock_nanosleep.c
58462         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
58463         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58464         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
58465         Make code unconditional.
58466         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58467         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
58468         (__libc_missing_posix_timers): Remove.
58469
58470 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58471
58472         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
58473         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
58474
58475         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
58476
58477         * elf/dl-sym.c: Include <stdlib.h>.
58478
58479         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
58480         constants, which avoids warnings in 32-bit builds.
58481
58482         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
58483         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
58484
58485         * misc/lseek.c: File moved to ...
58486         * io/lseek.c: ... here.
58487
58488         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
58489
58490         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
58491         shifting LEN more than 31 bits at once.
58492
58493 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58494
58495         [BZ #14195]
58496         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
58497         segmentation fault for a case of two empty input strings.
58498         * string/test-strncasecmp.c (check1): Renamed to...
58499         (bz12205): ...this.
58500         (bz14195): Add new testcase for two empty input strings and N > 0.
58501         (test_main): Call new testcase, adapt for renamed function.
58502
58503 2012-08-15  Andreas Jaeger  <aj@suse.de>
58504
58505         [BZ #14090]
58506         * crypt/md5test2.c: New test, based on test supplied by Serge
58507         Belyshev <belyshev@depni.sinp.msu.ru>.
58508         * crypt/Makefile (xtests): Add md5test-giant..
58509         * crypt/Makefile ($(objpfx)md5test-giant): Add.
58510
58511 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58512
58513         [BZ #14090]
58514         * crypt/md5.c (md5_process_block): Don't assume the buffer
58515         length is less than 2**32.
58516         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
58517         length is less than 2**64.
58518
58519 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58520
58521         * string/str-two-way.h: Include <sys/param.h>.
58522         (MAX): Macro removed.
58523
58524         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
58525         Move #define and #undef of memmove to just before and after
58526         including <string.h>.
58527
58528         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
58529         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
58530         and after including <string.h>.  Move declarations of
58531         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
58532         to before #include "string/memmove.c".
58533
58534         * include/dirent.h: Declare __getdirentries.
58535
58536         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
58537         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
58538
58539 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
58540
58541         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
58542         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
58543         * sysdeps/i386/configure: Regenerated.
58544         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
58545         STABS_CURRENT_FILE, and STABS_FUN.
58546         (END): Remove call to STABS_FUN_END.
58547         (STABS_CURRENT_FILE1): Delete.
58548         (STABS_CURRENT_FILE): Likewise.
58549         (STABS_FUN): Likewise.
58550         (STABS_FUN_END): Likewise.
58551         (STABS_FUN2): Likewise.
58552         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
58553         * sysdeps/x86_64/configure: Regenerated.
58554
58555 2012-08-14  Roland McGrath  <roland@hack.frob.com>
58556
58557         * elf/dl-open.c: Include <atomic.h>.
58558         * elf/dl-lookup.c: Likewise.
58559
58560 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
58561
58562         * sysdeps/unix/sysv/linux/kernel-features.h
58563         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
58564         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
58565         unconditionally.
58566         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
58567         unconditionally.
58568         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
58569         condition on __ASSUME_CLONE_THREAD_FLAGS.
58570
58571 2012-08-14  Andreas Jaeger  <aj@suse.de>
58572
58573         * sysdeps/i386/fpu/libm-test-ulps: Update.
58574
58575 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
58576
58577         * include/atomic.h (atomic_exchange_and_add): Split into ...
58578         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
58579         New atomic macros.
58580
58581 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
58582
58583         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58584
58585 2012-08-13  Jeff Law <law@redhat.com>
58586
58587         * manual/stdio.texi (snprintf): Clarify handling of the trailing
58588         null byte in the output string.
58589
58590 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
58591
58592         * sysdeps/unix/sysv/linux/kernel-features.h
58593         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
58594         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
58595         (__ASSUME_ARG_MAX_STACK_BASED): Define.
58596         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
58597         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
58598         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
58599         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
58600
58601 2012-08-09  Jeff Law <law@redhat.com>
58602
58603         [BZ #13939]
58604         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
58605         When avoid_arena is set, don't retry in the that arena.  Pick the
58606         next one, whatever it might be.
58607         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
58608         (arena_lock): Pass in new parameter to arena_get2.
58609         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
58610         arena_get2.
58611         (__libc_malloc): Unify retrying after main arena failure with
58612         __libc_memalign version.
58613         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
58614
58615 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
58616
58617         [BZ #14166]
58618         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
58619         to __redirect_strstr.
58620         (__strstr_sse42): Use typeof __redirect_strstr.
58621         (__strstr_ia32): Likewise.
58622         (__libc_strstr): New prototype.
58623         (strstr): Renamed to ...
58624         (__libc_strstr): This.
58625         (strstr): New strong alias of __libc_strstr.
58626         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
58627         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
58628         __redirect_time.
58629         Include <time.h>.
58630         (__libc_time): New prototype.
58631         (time_ifunc): Replace time with __libc_time.
58632         (time): New strong alias and hidden definition of __libc_time.
58633         (__GI_time): Remove strong alias.
58634         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
58635         Include <stddef.h>.
58636         (memmove): Redefined to __redirect_memmove.
58637         (__memmove_sse2): Use typeof __redirect_memmove.
58638         (__memmove_ssse3): Likewise.
58639         (__memmove_ssse3_back): Likewise.
58640         (__libc_memmove): New prototype.
58641         (memmove): Renamed to ...
58642         (__libc_memmove): This.
58643         (memmove): New strong alias of __libc_memmove.
58644
58645 2012-08-08  Mark Salter  <msalter@redhat.com>
58646
58647         * elf/elf.h
58648         (R_MN10300_TLS_GD): Define.
58649         (R_MN10300_TLS_LD): Likewise.
58650         (R_MN10300_TLS_LDO): Likewise.
58651         (R_MN10300_TLS_GOTIE): Likewise.
58652         (R_MN10300_TLS_IE): Likewise.
58653         (R_MN10300_TLS_LE): Likewise.
58654         (R_MN10300_TLS_DTPMOD): Likewise.
58655         (R_MN10300_TLS_DTPOFF): Likewise.
58656         (R_MN10300_TLS_TPOFF): Likewise.
58657         (R_MN10300_SYM_DIFF): Likewise.
58658         (R_MN10300_ALIGN): Likewise.
58659         (R_MN10300_NUM): Update.
58660
58661 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
58662
58663         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
58664         Remove.
58665
58666 2012-08-08  Roland McGrath  <roland@hack.frob.com>
58667
58668         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
58669
58670         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
58671         sysdeps/unix -> sysdeps/posix move.
58672         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
58673
58674 2012-08-07      Allan McRae     <allan@archlinux.org>
58675
58676         [BZ #14303]
58677         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
58678         (SUNOS_CPP): Likewise.
58679         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
58680         not found.
58681         (open_input): Call CPP using execvp.
58682
58683 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58684
58685         * sysdeps/unix/sysv/linux/kernel-features.h
58686         (__ASSUME_PROT_GROWSUPDOWN): Remove.
58687         (__ASSUME_NO_CLONE_DETACHED): Likewise.
58688         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
58689         (__ASSUME_WAITID_SYSCALL): Likewise.
58690         * sysdeps/unix/sysv/linux/dl-execstack.c
58691         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
58692         code unconditional.
58693         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
58694         conditional code.
58695         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
58696         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
58697         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
58698         code.
58699         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
58700         unconditional.
58701         [__ASSUME_WAITID_SYSCALL]: Likewise.
58702         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
58703
58704 2012-08-07  Roland McGrath  <roland@hack.frob.com>
58705
58706         * sysdeps/unix/closedir.c: Renamed to ...
58707         * sysdeps/posix/closedir.c: ... here.
58708         * sysdeps/unix/dirfd.c: Renamed to ...
58709         * sysdeps/posix/dirfd.c: ... here.
58710         * sysdeps/unix/dirstream.h: Renamed to ...
58711         * sysdeps/posix/dirstream.h: ... here.
58712         * sysdeps/unix/fdopendir.c: Renamed to ...
58713         * sysdeps/posix/fdopendir.c: ... here.
58714         * sysdeps/unix/opendir.c: Renamed to ...
58715         * sysdeps/posix/opendir.c: ... here.
58716         * sysdeps/unix/readdir.c: Renamed to ...
58717         * sysdeps/posix/readdir.c: ... here.
58718         * sysdeps/unix/readdir_r.c: Renamed to ...
58719         * sysdeps/posix/readdir_r.c: ... here.
58720         * sysdeps/unix/rewinddir.c: Renamed to ...
58721         * sysdeps/posix/rewinddir.c: ... here.
58722         * sysdeps/unix/seekdir.c: Renamed to ...
58723         * sysdeps/posix/seekdir.c: ... here.
58724         * sysdeps/unix/telldir.c: Renamed to ...
58725         * sysdeps/posix/telldir.c: ... here.
58726         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
58727         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
58728         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
58729         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
58730
58731         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
58732         * bits/fcntl.h: ... here.
58733
58734         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
58735         not 0.
58736         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
58737         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
58738         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
58739         (struct flock): Move l_start, l_len to the beginning.
58740         Use __pid_t for l_pid.
58741         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
58742         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
58743         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
58744         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
58745         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
58746         [__USE_LARGEFILE64] (struct flock64): New type.
58747         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
58748
58749         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
58750         * bits/dirent.h: ... here.
58751
58752         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
58753         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
58754
58755 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58756
58757         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
58758         Change from 2.6.0 to 2.6.16.
58759         * sysdeps/unix/sysv/linux/configure: Regenerated.
58760         * sysdeps/unix/sysv/linux/kernel-features.h
58761         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
58762         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
58763         version.
58764         (__ASSUME_UTIMES): Likewise.
58765         (__ASSUME_CLONE_STOPPED): Remove.
58766         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
58767         architectures, not kernel version.
58768         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
58769         (__ASSUME_NO_CLONE_DETACHED): Likewise.
58770         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
58771         (__ASSUME_WAITID_SYSCALL): Likewise.
58772         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
58773         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
58774         * README: State 2.6.16 as minimum Linux kernel version.  Do not
58775         refer to older versions.
58776
58777 2012-08-06  Roland McGrath  <roland@hack.frob.com>
58778
58779         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
58780         Define alphasort64 as an alias.
58781         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
58782         Define versionsort64 as an alias.
58783         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
58784         Define scandir64 as an alias.
58785         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
58786         Define scandirat64 as an alias.
58787         * dirent/alphasort64.c (alphasort64):
58788         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
58789         * dirent/versionsort64.c: Likewise.
58790         * dirent/scandir64.c: Likewise.
58791         * dirent/scandirat64.c: Likewise.
58792         * sysdeps/wordsize-64/alphasort.c: File removed.
58793         * sysdeps/wordsize-64/alphasort64.c: File removed.
58794         * sysdeps/wordsize-64/scandir.c: File removed.
58795         * sysdeps/wordsize-64/scandir64.c: File removed.
58796         * sysdeps/wordsize-64/scandirat.c: File removed.
58797         * sysdeps/wordsize-64/scandirat64.c: File removed.
58798         * sysdeps/wordsize-64/versionsort.c: File removed.
58799         * sysdeps/wordsize-64/versionsort64.c: File removed.
58800         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
58801         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
58802         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
58803         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
58804         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
58805         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
58806         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
58807         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
58808
58809         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
58810         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
58811         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
58812         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
58813         [defined __arch64__ || defined __sparcv9]
58814         (__INO_T_MATCHES_INO64_T): New macro.
58815         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
58816         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
58817         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
58818         * sysdeps/unix/sysv/linux/bits/dirent.h
58819         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
58820         (_DIRENT_MATCHES_DIRENT64): New macro.
58821
58822         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
58823         Define lockf64 as an alias.
58824         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
58825         Define fseeko64 as an alias.
58826         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
58827         Define ftello64 as an alias.
58828         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
58829         Define _IO_fgetpos64 and fgetpos64 as aliases.
58830         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
58831         Define _IO_fsetpos64 and fsetpos64 as aliases.
58832         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
58833         Conditionalize body on this.
58834         * libio/fseeko64.c: Likewise.
58835         * libio/ftello64.c: Likewise.
58836         * libio/iofgetpos64.c: Likewise.
58837         * libio/iofsetpos64.c: Likewise.
58838         * sysdeps/wordsize-64/lockf.c: File removed.
58839         * sysdeps/wordsize-64/lockf64.c: File removed.
58840         * sysdeps/wordsize-64/fseeko.c: File removed.
58841         * sysdeps/wordsize-64/fseeko64.c: File removed.
58842         * sysdeps/wordsize-64/ftello.c: File removed.
58843         * sysdeps/wordsize-64/ftello64.c: File removed.
58844         * sysdeps/wordsize-64/iofgetpos.c: File removed.
58845         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
58846         * sysdeps/wordsize-64/iofsetpos.c: File removed.
58847         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
58848         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
58849         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
58850         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
58851         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
58852         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
58853         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
58854         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
58855         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
58856         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
58857         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
58858
58859         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
58860         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
58861         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
58862         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
58863         [defined __arch64__ || defined __sparcv9]
58864         (__OFF_T_MATCHES_OFF64_T): New macro.
58865         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
58866         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
58867         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
58868         (__OFF_T_MATCHES_OFF64_T): New macro.
58869
58870 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
58871
58872         * stdlib/secure-getenv.c (__secure_getenv): Replace
58873         GLIBC_2_16 with GLIBC_2_17.
58874
58875 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
58876
58877         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
58878         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
58879
58880 2012-08-03  David S. Miller  <davem@davemloft.net>
58881
58882         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58883
58884 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
58885
58886         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
58887         Remove.
58888         (__ASSUME_CORRECT_SI_PID): Likewise.
58889         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
58890         (__ASSUME_TMPFS_NAME): Likewise.
58891         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
58892         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
58893         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
58894         (HAVE_AUX_SECURE): Make definition unconditional.
58895         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
58896         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
58897
58898 2012-08-03  Roland McGrath  <roland@hack.frob.com>
58899
58900         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
58901         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
58902         * sysdeps/mach/hurd/eloop-threshold.h: New file.
58903         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
58904         __eloop_threshold instead of SYMLOOP_MAX.
58905
58906         * sysdeps/generic/eloop-threshold.h: New file.
58907         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
58908         of MAXSYMLINKS.
58909         * elf/chroot_canon.c (chroot_canon): Likewise.
58910
58911 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
58912
58913         [BZ #13717]
58914         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
58915         Change to 2.6.0 everywhere.
58916         * sysdeps/unix/sysv/linux/configure: Regenerated.
58917         * sysdeps/unix/sysv/linux/kernel-features.h
58918         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
58919         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
58920         kernel versions.
58921         (__ASSUME_POSIX_TIMERS): Define unconditionally.
58922         (__ASSUME_FUTEX_REQUEUE): Remove.
58923         (__ASSUME_STATFS64): Define unconditionally.
58924         (__ASSUME_AT_SECURE): Likewise.
58925         (__ASSUME_CORRECT_SI_PID): Likewise.
58926         (__ASSUME_TGKILL): Define without depending on kernel version for
58927         i386.
58928         (__ASSUME_UTIMES): Likewise.
58929         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
58930         kernel version.
58931         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
58932         (__ASSUME_TMPFS_NAME): Likewise.
58933         * README: Update reference to Linux kernel versions.
58934
58935 2012-08-02  Marek Polacek  <polacek@redhat.com>
58936
58937         [BZ# 14150]
58938         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
58939         libc_cv_asm_type_prefix with %.
58940         * configure: Regenerated.
58941         * include/libc-symbols.h: Remove comment about
58942         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
58943         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
58944         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
58945         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
58946         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
58947         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
58948         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
58949         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
58950         * elf/tst-unique2mod1.c: Likewise.
58951         * elf/tst-unique1mod2.c: Likewise.
58952         * elf/tst-unique1mod1.c: Likewise.
58953         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
58954         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
58955         Replace ASM_TYPE_DIRECTIVE with .type.
58956         * sysdeps/s390/s390-64/sysdep.h: Likewise.
58957         * sysdeps/i386/sysdep.h: Likewise.
58958         * sysdeps/x86_64/sysdep.h: Likewise.
58959         * sysdeps/sh/sysdep.h: Likewise.
58960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
58961         Do not define ASM_TYPE_DIRECTIVE.
58962         * sysdeps/powerpc/sysdep.h: Likewise.
58963         * sysdeps/powerpc/powerpc32/sysdep.h:
58964         Replace ASM_TYPE_DIRECTIVE with .type.
58965         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
58966         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
58967         * sysdeps/i386/fpu/e_powf.S: Likewise.
58968         * sysdeps/i386/fpu/e_expl.S: Likewise.
58969         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
58970         * sysdeps/i386/fpu/e_acosh.S: Likewise.
58971         * sysdeps/i386/fpu/e_pow.S: Likewise.
58972         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
58973         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
58974         * sysdeps/i386/fpu/s_expm1.S: Likewise.
58975         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
58976         * sysdeps/i386/fpu/e_log2.S: Likewise.
58977         * sysdeps/i386/fpu/e_log2l.S: Likewise.
58978         * sysdeps/i386/fpu/e_scalb.S: Likewise.
58979         * sysdeps/i386/fpu/e_powl.S: Likewise.
58980         * sysdeps/i386/fpu/e_log10f.S: Likewise.
58981         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
58982         * sysdeps/i386/fpu/e_logl.S: Likewise.
58983         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
58984         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
58985         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
58986         * sysdeps/i386/fpu/e_log2f.S: Likewise.
58987         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
58988         * sysdeps/i386/fpu/e_log.S: Likewise.
58989         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
58990         * sysdeps/i386/fpu/e_logf.S: Likewise.
58991         * sysdeps/i386/fpu/e_log10l.S: Likewise.
58992         * sysdeps/i386/fpu/e_atanh.S: Likewise.
58993         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
58994         * sysdeps/i386/fpu/e_log10.S: Likewise.
58995         * sysdeps/i386/fpu/s_frexp.S: Likewise.
58996         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
58997         * sysdeps/i386/fpu/s_asinh.S: Likewise.
58998         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
58999         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
59000         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
59001         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
59002         * sysdeps/i386/i686/strtok.S: Likewise.
59003         * sysdeps/i386/i386-mcount.S: Likewise.
59004         * sysdeps/i386/strtok.S: Likewise.
59005         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
59006         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
59007         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
59008         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
59009         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
59010         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
59011         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
59012         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
59013         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
59014         * sysdeps/x86_64/_mcount.S: Likewise.
59015         * sysdeps/x86_64/strtok.S: Likewise.
59016         * sysdeps/sh/_mcount.S: Likewise.
59017
59018 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59019
59020         * libio/iofopen.c: Include <fcntl.h>.
59021         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
59022         (_IO_fopen64, fopen64): Define as aliases.
59023         * libio/iofopen64.c: Include <fcntl.h>.
59024         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
59025         Conditionalize body on this.
59026         * sysdeps/wordsize-64/iofopen.c: File removed.
59027         * sysdeps/wordsize-64/iofopen64.c: File removed.
59028
59029 2012-08-01  Marek Polacek  <polacek@redhat.com>
59030
59031         * libc/Makeconfig: Use elf in place of binfmt-subdir.
59032         Use dlfcn directly instead of a variable.
59033         (binfmt-subdir): Do not define.
59034         (dlfcn): Likewise.
59035
59036 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
59037
59038         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
59039         Remove all definitions.
59040         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
59041         <kernel-features.h>.
59042         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59043         (miss_F_GETOWN_EX): Remove all definitions.
59044         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
59045         macro definition.
59046         [!__ASSUME_FCNTL64]: Remove conditional code.
59047         [__ASSUME_FCNTL64]: Make code unconditional.
59048         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
59049         <kernel-features.h>.
59050         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59051         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
59052         (lockf64) [__NR_fcntl64]: Make code unconditional.
59053         (lockf64) [__ASSUME_FCNTL64]: Likewise.
59054
59055         * sysdeps/unix/sysv/linux/kernel-features.h
59056         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
59057         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
59058         Make code unconditional.
59059         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59060         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59061         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
59062         [__NR_vfork]: Make code unconditional.
59063         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59064         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
59066         [__NR_vfork]: Make code unconditional.
59067         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59068         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59069
59070 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59071
59072         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
59073         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
59074
59075         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59076         Define mkstemp64 as an alias.
59077         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59078         Define mkstemps64 as an alias.
59079         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59080         Define mkostemp64 as an alias.
59081         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59082         Define mkostemps64 as an alias.
59083         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
59084         Conditionalize body on this.
59085         * misc/mkostemp64.c: Likewise.
59086         * misc/mkostemps64.c: Likewise.
59087         * misc/mkstemps64.c: Likewise.
59088         * sysdeps/wordsize-64/mkstemp64.c: File removed.
59089         * sysdeps/wordsize-64/mkostemp64.c: File removed.
59090         * sysdeps/wordsize-64/mkostemp.c: File removed.
59091         * sysdeps/wordsize-64/mkstemp.c: File removed.
59092         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
59093         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
59094         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
59095         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
59096
59097         [BZ #14138]
59098         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
59099         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
59100         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
59101         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
59102
59103         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
59104         compat_symbol macros from <shlib-compat.h> rather than the underlying
59105         default_symbol_version and symbol_version macros, so that DEFAULT
59106         lines in shlib-versions are respected.
59107         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
59108
59109 2012-08-01  Florian Weimer  <fweimer@redhat.com>
59110
59111         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
59112         Declare with warn_unused_result.
59113         (setgid, setregid, setegid, setresgid): Likewise.
59114         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
59115         Likewise.
59116         * WUR-REPORT: Remove set*id functions.
59117
59118 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
59119
59120         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
59121
59122 2012-07-31  Roland McGrath  <roland@hack.frob.com>
59123
59124         [BZ #10191]
59125         * include/sys/socket.h (__libc_accept, __libc_accept4):
59126         Add attribute_hidden.
59127         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
59128
59129         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
59130         use of PTR_MANGLE.
59131         * inet/getnetgrent_r.c (setup): Likewise.
59132
59133         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
59134
59135 2012-07-31  David S. Miller  <davem@davemloft.net>
59136
59137         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59138
59139 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
59140
59141         [BZ #13629]
59142         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
59143         value between 1.0 and 2.0 and smaller part has absolute value less
59144         than 1.0.
59145         * math/s_clog10.c (__clog10): Likewise.
59146         * math/s_clog10f.c (__clog10f): Likewise.
59147         * math/s_clog10l.c (__clog10l): Likewise.
59148         * math/s_clogf.c (__clogf): Likewise.
59149         * math/s_clogl.c (__clogl): Likewise.
59150         * math/libm-test.inc (clog_test): Add more tests.
59151         (clog10_test): Likewise.
59152         * sysdeps/i386/fpu/libm-test-ulps: Update.
59153         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59154
59155 2012-07-31  Florian Weimer  <fweimer@redhat.com>
59156
59157         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
59158         Exit with zero in case no suitable GID is found, and write a
59159         message to standard error.
59160
59161 2012-07-30  Roland McGrath  <roland@hack.frob.com>
59162
59163         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
59164         rather than to 1.
59165         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
59166         (MAXPATHLEN): Removed.
59167         (NOGROUP, NODEV): New macros.
59168         (setbit, clrbit, isset, isclr): New macros.
59169         (howmany, roundup, powerof2): New macros.
59170         (DEV_BSIZE): New macro.
59171
59172         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
59173         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
59174
59175         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
59176         definition on [!__NO_LONG_DOUBLE_MATH].
59177
59178         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
59179         PTR_MANGLE and PTR_DEMANGLE.
59180
59181         * socket/accept4.c (accept4): Rename to __libc_accept4.
59182         Define accept4 as a weak alias.
59183
59184         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
59185         on [_DIRENT_HAVE_D_TYPE].
59186         * io/ftw.c (ftw_dir): Likewise.
59187
59188         * io/xmknod.c (__xmknod): Don't check PATH for being null.
59189
59190         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
59191
59192         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
59193         Use the BSD numbers rather than the arbitrary ones we had.
59194         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
59195         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
59196         (SIGXCPU, SIGXFSZ): New macros.
59197         (_NSIG): Now 32.
59198
59199         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
59200         initializer on [_LIBC_REENTRANT].
59201
59202         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
59203         definitions inside [_POSIX_MAPPED_FILES].
59204
59205         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
59206
59207         * dirent/opendir.c: Include <fcntl.h>.
59208
59209         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
59210         (__libc_getspecific): Likewise.
59211         (__libc_key_create): Likewise.
59212
59213         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
59214         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
59215         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
59216         (tmpfile64): Define as alias.
59217         * sysdeps/wordsize-64/tmpfile.c: File removed.
59218         * sysdeps/wordsize-64/tmpfile64.c: File removed.
59219         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
59220         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
59221
59222         * stdio-common/vfscanf.c: Include <stdbool.h>.
59223         * nss/makedb.c: Likewise.
59224         * stdio-common/_i18n_number.h: Likewise.
59225         * argp/argp-help.c: Likewise.
59226         * posix/wordexp.c: Likewise.
59227         * sysdeps/posix/spawni.c: Likewise.
59228         * nss/nss_files/files-initgroups.c: Likewise.
59229         * stdio-common/reg-modifier.c: Include <stdlib.h>.
59230         * nss/nss_files/files-initgroups.c: Likewise.
59231         * nss/nss_db/db-netgrp.c: Likewise.
59232         * nss/nss_db/db-initgroups.c: Likewise.
59233         * io/fchmodat.c: Include <sys/stat.h>.
59234
59235         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
59236         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
59237
59238         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
59239         [HAVE_MMAP].
59240
59241         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
59242         Add multiple inclusion protection.
59243
59244 2012-07-27  David S. Miller  <davem@davemloft.net>
59245
59246         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59247
59248 2012-07-27  Gary Benson  <gbenson@redhat.com>
59249
59250         [BZ #14298]
59251         * elf/rtld.c: Include <stap-probe.h>.
59252         (dl_main): Added static probes "init_start" and "init_complete".
59253         * elf/dl-load.c: Include <stap-probe.h>.
59254         (lose): Take new parameter "nsid".
59255         Added static probe "map_failed".
59256         (_dl_map_object_from_fd): Pass namespace id to lose.
59257         Added static probe "map_start".
59258         (open_verify): Pass namespace id to lose.
59259         * elf/dl-open.c: Include <stap-probe.h>.
59260         (dl_open_worker) Added static probes "map_complete", "reloc_start"
59261         and "reloc_complete".
59262         * elf/dl-close.c: Include <stap-probe.h>.
59263         (_dl_close_worker): Added static probes "unmap_start" and
59264         "unmap_complete".
59265         * elf/rtld-debugger-interface.txt: New file documenting the above.
59266
59267 2012-07-26  Roland McGrath  <roland@hack.frob.com>
59268
59269         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
59270         rather than a string variable.
59271         * sunrpc/rpc_main.c (h_output): Likewise.
59272         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
59273
59274 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
59275
59276         * inet/check_native.c: New file.
59277
59278 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
59279
59280         [BZ #13629]
59281         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
59282         if larger part has absolute value 1.0.
59283         * math/s_clog10.c (__clog10): Likewise.
59284         * math/s_clog10f.c (__clog10f): Likewise.
59285         * math/s_clog10l.c (__clog10l): Likewise.
59286         * math/s_clogf.c (__clogf): Likewise.
59287         * math/s_clogl.c (__clogl): Likewise.
59288         * math/libm-test.inc (clog_test): Add more tests.
59289         (clog10_test): Likewise.
59290         * sysdeps/i386/fpu/libm-test-ulps: Update.
59291         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59292
59293         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
59294         (pltexit): Likewise.
59295         (La_regs): Likewise.
59296         (La_retval): Likewise.
59297         (int_retval): Likewise.
59298         Update #error for removed macros to refer only to definitions in
59299         tst-audit.h.
59300         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
59301         macro.
59302         (pltexit): Likewise.
59303         (La_regs): Likewise.
59304         (La_retval): Likewise.
59305         (int_retval): Likewise.
59306         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
59307         macro.
59308         (pltexit): Likewise.
59309         (La_regs): Likewise.
59310         (La_retval): Likewise.
59311         (int_retval): Likewise.
59312         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
59313         macro.
59314         (pltexit): Likewise.
59315         (La_regs): Likewise.
59316         (La_retval): Likewise.
59317         (int_retval): Likewise.
59318         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
59319         macro.
59320         (pltexit): Likewise.
59321         (La_regs): Likewise.
59322         (La_retval): Likewise.
59323         (int_retval): Likewise.
59324         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
59325         macro.
59326         (pltexit): Likewise.
59327         (La_regs): Likewise.
59328         (La_retval): Likewise.
59329         (int_retval): Likewise.
59330         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
59331         macro.
59332         (pltexit): Likewise.
59333         (La_regs): Likewise.
59334         (La_retval): Likewise.
59335         (int_retval): Likewise.
59336         * sysdeps/generic/tst-audit.h: Update comment to refer only to
59337         macro definitions in tst-audit.h.
59338         * sysdeps/i386/tst-audit.h: New file.
59339         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
59340         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
59341         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
59342         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
59343         * sysdeps/sh/tst-audit.h: Likewise.
59344         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
59345         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
59346         * sysdeps/x86_64/tst-audit.h: Likewise.
59347
59348 2012-07-26  Andreas Jaeger  <aj@suse.de>
59349
59350         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
59351         ptrace.
59352
59353         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
59354         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
59355         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
59356         PTRACE_O_MASK.
59357         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
59358         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
59359         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
59360
59361         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
59362         value.
59363
59364         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
59365         _sigsys.
59366         (si_call_addr, si_syscall, si_arch): Define new macro.
59367         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
59368         _sigsys.
59369         (si_call_addr, si_syscall, si_arch): Define new marcro.
59370         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
59371         _sigsys.
59372         (si_call_addr, si_syscall, si_arch): Define new macro.
59373         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
59374         _sigsys.
59375         (si_call_addr, si_syscall, si_arch): Define new macro.
59376
59377 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59378
59379         [BZ #13717]
59380         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59381         Change to 2.4.21 where previously 2.4.1.
59382         * sysdeps/unix/sysv/linux/configure: Regenerated.
59383         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
59384         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
59385         Linux kernel version.
59386         (__ASSUME_STD_AUXV): Remove.
59387         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
59388         kernel version.
59389         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
59390         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
59391         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
59392         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
59393         (__ASSUME_NETLINK_SUPPORT): Likewise.
59394         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
59395         (__no_netlink_support): Remove conditional definition.
59396         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
59397         Remove.
59398         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59399         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
59400         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
59401         (if_nameindex_ioctl): Remove.
59402         (if_nameindex_netlink): Do not handle __no_netlink_support.
59403         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59404         code.
59405         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
59406         Remove conditional code.
59407         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59408         code.
59409         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
59410         unconditional.
59411         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59412         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
59413         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
59414         Remove.
59415         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
59416         [!__ASSUME_STD_AUXV]: Remove conditional code.
59417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
59418         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
59419         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
59420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
59421         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
59422         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59423         code.
59424         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
59426         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
59427         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59428         conditional code.
59429         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
59431         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59432         code.
59433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
59434         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59435         conditional code.
59436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
59437         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59438         code unconditional.
59439         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59440         conditional code.
59441         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59442         unconditional.
59443         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59444         conditional code.
59445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
59446         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59447         unconditional.
59448         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59449         conditional code.
59450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
59451         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59452         code unconditional.
59453         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59454         conditional code.
59455         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59456         unconditional.
59457         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59458         conditional code.
59459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
59460         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59461         code unconditional.
59462         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59463         conditional code.
59464         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59465         unconditional.
59466         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59467         conditional code.
59468
59469 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
59470
59471         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
59472         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
59473         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
59474         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
59475         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
59476         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
59477         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
59478         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
59479         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
59480         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
59481         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
59482         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
59483         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
59484         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
59485         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
59486         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
59487         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
59488         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
59489         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
59490         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
59491         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
59492         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
59493         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
59494
59495 2012-07-25  Florian Weimer  <fweimer@redhat.com>
59496
59497         * Versions.def: Add GLIBC_2.17.
59498         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
59499         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
59500         Introduce __libc_secure_getenv.
59501         * stdlib/Versions (2.17): Add secure_getenv
59502         (GLIBC_PRIVATE): Add __libc_secure_getenv.
59503         * stdlib/secure-getenv.c: Rename __secure_getenv to
59504         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
59505         symbol __secure_getenv for GLIBC_2.0.
59506         * stdlib/tst-secure-getenv.c: New.
59507         * stdlib/Makefile (tests): Add testcase.
59508         * manual/startup.texi (Environment Access): Document
59509         secure_getenv.
59510         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
59511         __libc_secure_getenv.
59512         * inet/ruserpass.c (ruserpass): Likewise.
59513         * malloc/mtrace.c (mtrace): Likewise.
59514         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
59515         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
59516         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
59517         * sysdeps/posix/tempname.c: Likewise.  Evaluate
59518         HAVE_SECURE_GETENV.
59519         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
59520         __secure_getenv to __libc_secure_getenv.
59521         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
59522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
59523         Likewise.
59524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
59525         Likewise.
59526         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
59527         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
59528         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
59529         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
59530         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
59531         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
59532         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
59533
59534 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59535
59536         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
59537         (struct La_i86_retval): Likewise.
59538         (struct La_x86_64_regs): Likewise.
59539         (struct La_x86_64_retval): Likewise.
59540         (struct La_x32_regs): Likewise.
59541         (struct La_x32_retval): Likewise.
59542         (struct La_ppc32_regs): Likewise.
59543         (struct La_ppc32_retval): Likewise.
59544         (struct La_ppc64_regs): Likewise.
59545         (struct La_ppc64_retval): Likewise.
59546         (struct La_sh_regs): Likewise.
59547         (struct La_sh_retval): Likewise.
59548         (struct La_s390_32_regs): Likewise.
59549         (struct La_s390_32_retval): Likewise.
59550         (struct La_s390_64_regs): Likewise.
59551         (struct La_s390_64_retval): Likewise.
59552         (struct La_sparc32_regs): Likewise.
59553         (struct La_sparc32_retval): Likewise.
59554         (struct La_sparc64_regs): Likewise.
59555         (struct La_sparc64_retval): Likewise.
59556         (struct audit_ifaces): Remove architecture-specific pltenter and
59557         pltexit members.
59558         * sysdeps/i386/ldsodefs.h: New file.
59559         * sysdeps/powerpc/ldsodefs.h: Likewise.
59560         * sysdeps/s390/ldsodefs.h: Likewise.
59561         * sysdeps/sh/ldsodefs.h: Likewise.
59562         * sysdeps/sparc/ldsodefs.h: Likewise.
59563         * sysdeps/x86_64/ldsodefs.h: Likewise.
59564
59565 2012-07-25  Marek Polacek  <polacek@redhat.com>
59566
59567         [BZ #6808]
59568         * math/libm-test.inc (yn_test): Add another test.
59569         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
59570         to ERANGE when the result is +-Inf.
59571         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
59572         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
59573         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
59574         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
59575
59576 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
59577
59578         * conform/data/time.h-data (NULL): Use macro-constant.  Require
59579         equal to 0.
59580         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
59581         clock_t.
59582         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
59583
59584 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
59585
59586         * configure.in <sysdeps resolving>: Correct printing
59587         Implies_before.
59588         * configure: Regenerate.
59589
59590 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
59591
59592         * math/w_ilogb.c: Include <limits.h>.
59593         * math/w_ilogbl.c: Likewise.
59594
59595 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59596
59597         * manual/lang.texi (__va_copy): Document primarily as ISO C99
59598         va_copy.  Document allowing for unavailable va_copy only as
59599         pre-C99 compatibility.
59600         * manual/string.texi (Copying and Concatenation): Use va_copy
59601         instead of __va_copy in concat example.
59602
59603 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
59604
59605         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
59606         (__sendto): Use create_address_port.  Initialize APORT and deallocate
59607         it if not null.
59608
59609         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
59610         with O_NOLINK passed to __file_name_lookup.
59611
59612         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
59613         with O_NOLINK passed to __file_name_lookup.
59614
59615         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
59616         negative N or less than NGIDS.
59617
59618         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
59619         type to string_t.  Set ERANGE as errno and return it if NAME is not big
59620         enough.  Use memcpy instead of strncpy.
59621
59622 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59623
59624         * elf/Makefile (check-data): Remove.
59625         (localplt.data): New vpath directive.
59626         ($(objpfx)check-localplt.out): Use localplt.data from vpath
59627         instead of $(check-data).
59628         * scripts/data/localplt-generic.data: Move to ...
59629         * sysdeps/generic/localplt.data: ... here.
59630         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
59631         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
59632         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
59633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
59634         ... here.
59635         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
59636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
59637         ... here.
59638         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
59639         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
59640         ... here.
59641         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
59642         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
59643         ... here.
59644         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
59645         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
59646         ... here.
59647         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
59648         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
59649         ... here.
59650
59651 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59652
59653         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
59654         PPC32 and PPC64 files.
59655         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
59656         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
59657
59658 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59659
59660         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
59661         __makecontext_ret to ...
59662         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
59663         ... here and call exit if uc_link is NULL.  New file.
59664         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
59665         __makecontext_ret.S.
59666         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
59667         __makecontext_ret to ...
59668         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
59669         ... here and call exit if uc_link is NULL.  New file.
59670         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
59671         __makecontext_ret.S.
59672
59673 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59674
59675         * elf/elf.h (R_390_IRELATIVE): New definition.
59676         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
59677         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
59678         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
59679         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
59680         (elf_machine_lazy_rel): Likewise.
59681         * sysdeps/s390/dl-irel.h: New file.
59682         * sysdeps/s390/s390-64/memcpy.S: New asm code.
59683         * sysdeps/s390/s390-64/memset.S: New asm code.
59684         * sysdeps/s390/s390-64/memcmp.S: New asm code.
59685         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
59686         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
59687         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
59688         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
59689         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
59690         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
59691         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
59692         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
59693         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
59694         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
59695         * sysdeps/s390/s390-32/memcpy.S: New asm code.
59696         * sysdeps/s390/s390-32/memset.S: New asm code.
59697         * sysdeps/s390/s390-32/memcmp.S: New asm code.
59698
59699 2012-07-17  Marek Polacek  <polacek@redhat.com>
59700
59701         [BZ #14349]
59702         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
59703         * sysdeps/s390/s390-64/configure.in: Likewise.
59704         * sysdeps/sparc/configure.in: Likewise.
59705         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
59706         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
59707         * sysdeps/i386/configure.in: Likewise.
59708         * sysdeps/x86_64/configure.in: Likewise.
59709         * sysdeps/sh/configure.in: Likewise.
59710         * sysdeps/s390/s390-32/configure: Regenerated.
59711         * sysdeps/s390/s390-64/configure: Likewise.
59712         * sysdeps/x86_64/configure: Likewise.
59713         * sysdeps/sh/configure: Likewise.
59714         * sysdeps/powerpc/powerpc64/configure: Likewise.
59715         * sysdeps/powerpc/powerpc32/configure: Likewise.
59716         * sysdeps/sparc/configure: Likwise.
59717         * sysdeps/i386/configure: Likewise.
59718
59719         * elf/dl-open.c: Comment fixes.
59720
59721 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
59722
59723         * Makefile [CXX] (check-data): Remove.
59724         [CXX] (c++-types.data): New vpath directive.
59725         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
59726         vpath.  Do not allow for C++ type data being missing.
59727         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
59728         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
59729         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
59730         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
59731         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
59732         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
59733         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
59734         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
59735         ... here.
59736         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
59737         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
59738         ... here.
59739         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
59740         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
59741         ... here.
59742         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
59743         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
59744         ... here.
59745         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
59746         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
59747         ... here.
59748         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
59749         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
59750         ... here.
59751         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
59752         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
59753         ... here.
59754         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
59755         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
59756
59757         * elf/tls-macros.h (TLS_LE): Move architecture-specific
59758         definitions to architecture-specific files.
59759         (TLS_IE): Likewise.
59760         (TLS_LD): Likewise.
59761         (TLS_GD): Likewise.
59762         * sysdeps/i386/tls-macros.h: New file.
59763         * sysdeps/powerpc/tls-macros.h: Likewise.
59764         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
59765         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
59766         * sysdeps/sh/tls-macros.h: Likewise.
59767         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
59768         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
59769         * sysdeps/x86_64/tls-macros.h: Likewise.
59770
59771 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
59772
59773         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
59774         zero value for regular exit case.
59775
59776         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
59777         (__start_context): Preserve zero value for regular exit case.
59778
59779 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
59780             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59781
59782         * manual/setjmp.texi (setcontext): Clarify normal process
59783         termination when uc_link is the null pointer.
59784         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
59785         exit call.
59786
59787 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
59788
59789         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
59790         preprocessor.  Test for each exception mask separately.
59791
59792 2012-07-16  Andreas Jaeger  <aj@suse.de>
59793
59794         * po/ru.po: Update from translation team.
59795
59796 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
59797
59798         * conform/data/string.h-data (NULL): Use macro-constant.  Require
59799         equal to 0.
59800         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
59801         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
59802         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
59803         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
59804         [ISO || ISO99 || ISO11] (*_t): Do not allow.
59805
59806 2012-07-13  Andreas Jaeger  <aj@suse.de>
59807
59808         * po/fr.po: Update from translation team.
59809
59810 2012-07-12  Marek Polacek  <polacek@redhat.com>
59811
59812         [BZ #14173]
59813         * math/libm-test.inc (yn_test): Add test for BZ #14173.
59814         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
59815         loop condition.
59816
59817 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
59818
59819         [BZ #13717]
59820         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59821         Change to 2.4.1 where previously 2.4.0.
59822         * sysdeps/unix/sysv/linux/configure: Regenerated.
59823         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
59824         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
59825         version.
59826         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
59827         (__ASSUME_AT_CLKTCK): Remove.
59828         (__ASSUME_AT_PAGESIZE): Likewise.
59829         (__ASSUME_AT_XID): Likewise.
59830         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
59831         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
59832         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
59833         unconditionally.
59834         (HAVE_AUX_PAGESIZE): Likewise.
59835         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
59836         [__ASSUME_AT_CLKTCK]: Make code unconditional.
59837         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
59838
59839 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
59840
59841         [BZ #14307]
59842         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
59843         the temporary buffer used to invoke __gethostbyname2_r,
59844         __gethostbyaddr_r and gethostbyname4_r to make room for struct
59845         host_data / struct gaih_addrtuple.
59846         * resolv/nss_dns/dns-host.c (global scope): Move definition of
59847         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
59848         header file nss/nsswitch.h.
59849         * nss/nsswitch.h (global scope): Add definition of implementation
59850         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
59851         resolv/nss_dns/dns-host.c).
59852
59853 2012-07-11  Andreas Jaeger  <aj@suse.de>
59854
59855         * po/fr.po: Update from translation team.
59856
59857         * po/sv.po: Update from translation team
59858         * po/fr.po: Another update from translation team.
59859
59860 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59861
59862         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
59863         for subnormals or multiply small sinh result by itself.
59864         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
59865         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59866
59867 2012-07-11  David S. Miller  <davem@davemloft.net>
59868
59869         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59870
59871 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
59872
59873         [BZ #14347]
59874         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
59875         (INTERNAL_MARK): Shift it here.
59876
59877 2012-07-10  Marek Polacek  <polacek@redhat.com>
59878
59879         [BZ #14151]
59880         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
59881         libc_cv_asm_global_directive with .globl.
59882         * configure: Regenerated.
59883         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
59884         with .globl.
59885         * sysdeps/i386/configure: Regenerated.
59886         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
59887         with .globl.
59888         * sysdeps/x86_64/configure: Regenerated.
59889         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
59890         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
59891         * elf/tst-unique2mod2.c: Likewise.
59892         * elf/tst-unique2mod1.c: Likewise.
59893         * elf/tst-unique1mod2.c: Likewise.
59894         * elf/tst-unique1mod1.c: Likewise.
59895         * sysdeps/s390/s390-32/sysdep.h: Likewise.
59896         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
59897         * sysdeps/s390/s390-64/sysdep.h: Likewise.
59898         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59899         * sysdeps/mach/sysdep.h: Likewise.
59900         * sysdeps/i386/sysdep.h: Likewise.
59901         * sysdeps/i386/i386-mcount.S: Likewise.
59902         * sysdeps/x86_64/_mcount.S: Likewise.
59903         * sysdeps/x86_64/sysdep.h: Likewise.
59904         * sysdeps/sh/_mcount.S: Likewise.
59905         * sysdeps/sh/sysdep.h: Likewise.
59906         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
59907         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
59908         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
59909         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
59910         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
59911         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
59912         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
59913         * locale/localeinfo.h: Likewise.
59914         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
59915         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
59916
59917 2012-07-09  Roland McGrath  <roland@hack.frob.com>
59918
59919         [BZ #14336]
59920         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
59921         system".
59922         * manual/message.texi (The Uniforum approach): Likewise.
59923         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
59924         (glibc iconv Implementation): Likewise.
59925
59926 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
59927
59928         [BZ #14337]
59929         * math/s_clog.c (__clog): Avoid scaling a value down where that
59930         could result in underflow.
59931         * math/s_clog10.c (__clog10): Likewise.
59932         * math/s_clog10f.c (__clog10f): Likewise.
59933         * math/s_clog10l.c (__clog10l): Likewise.
59934         * math/s_clogf.c (__clogf): Likewise.
59935         * math/s_clogl.c (__clogl): Likewise.
59936         * math/libm-test.inc (clog_test): Add more tests.
59937         (clog10_test): Likewise.
59938         * sysdeps/i386/fpu/libm-test-ulps: Update.
59939         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59940
59941 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
59942
59943         [BZ #14283]
59944         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
59945         by 7 not 8 to examine high bit of fractional part.
59946
59947         [BZ #14042]
59948         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
59949         for call to __mcount_internal.
59950         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
59951         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
59952         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
59953
59954 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
59955
59956         [BZ #14154]
59957         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
59958         approximation for values within 0x1p-13f of an odd multiple of
59959         pi/4.
59960         * math/libm-test.inc (tan_test): Do not allow spurious underflow
59961         exception.  Add more tests.
59962         * sysdeps/i386/fpu/libm-test-ulps: Update.
59963
59964         [BZ #6778]
59965         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
59966         inputs and return -1 for them.  Do not check for +Inf in case not
59967         reachable for +Inf.
59968         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
59969         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
59970         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
59971         and return -1 for them.  Do not check for +Inf in case not
59972         reachable for +Inf.
59973         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
59974         define.
59975         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
59976         and return -1 for them.  Do not check for +Inf in case not
59977         reachable for +Inf.
59978         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
59979         spurious underflow.
59980         * sysdeps/i386/fpu/libm-test-ulps: Update.
59981         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59982
59983 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
59984
59985         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
59986
59987 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
59988
59989         [BZ #14157]
59990         [BZ #14331]
59991         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
59992         could result in spurious underflow.  Scale down values above
59993         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
59994         * math/s_csqrtf.c (__csqrtf): Likewise.
59995         * math/s_csqrtl.c (__csqrtl): Likewise.
59996         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
59997         spurious underflow.
59998         * sysdeps/i386/fpu/libm-test-ulps: Update.
59999         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60000
60001 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
60002
60003         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
60004         xopen-msg.sed.
60005         * catgets/xopen-msg.awk: New file.
60006         * catgets/xopen-msg.sed: Removed.
60007
60008         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
60009         po2text.sed.
60010         * intl/po2test.awk: New file.
60011         * intl/po2test.sed: Removed.
60012
60013 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
60014
60015         [BZ #14328]
60016         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
60017         or multiply small sinh result by itself.
60018         * math/s_ctanf.c (__ctanf): Likewise.
60019         * math/s_ctanh.c (__ctanh): Likewise.
60020         * math/s_ctanhf.c (__ctanhf): Likewise.
60021         * math/s_ctanhl.c (__ctanhl): Likewise.
60022         * math/s_ctanl.c (__ctanl): Likewise.
60023         * math/libm-test.inc (ctan_test_tonearest): New function.
60024         (ctan_test_towardzero): Likewise.
60025         (ctan_test_downward): Likewise.
60026         (ctan_test_upward): Likewise.
60027         (ctanh_test_tonearest): Likewise.
60028         (ctanh_test_towardzero): Likewise.
60029         (ctanh_test_downward): Likewise.
60030         (ctanh_test_upward): Likewise.
60031         (main): Call these new functions.
60032         * sysdeps/i386/fpu/libm-test-ulps: Update.
60033         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60034
60035 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
60036
60037         * .gitignore: Delete /ports entry.
60038
60039 2012-07-03  Andreas Jaeger  <aj@suse.de>
60040
60041         * po/bg.po: Update from translation team.
60042         * po/cs.po: Likewise.
60043         * po/de.po: Likewise.
60044         * po/hr.po: Likewise.
60045         * po/nl.pl: Likewise.
60046         * po/pl.po: Likewise.
60047         * po/vi.po: Likewise.
60048
60049 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
60050
60051         * Makeconfig [!+link] (+link-before-libc): New variable.
60052         [!+link] (+link-after-libc): Likewise.
60053         [!+link] (+link-tests): Likewise.
60054         [!+link] (+link): Define in terms of $(+link-before-libc) and
60055         $(+link-after-libc).
60056         [!+link-static] (+link-static-before-libc): New variable.
60057         [!+link-static] (+link-static-after-libc): Likewise.
60058         [!+link-static] (+link-static-tests): Likewise.
60059         [!+link-static] (+link-static): Define in terms of
60060         $(+link-static-before-libc) and $(+link-static-after-libc).
60061         [build-shared] (link-libc-before-gnulib): New variable.
60062         [build-shared] (link-libc-tests): Likewise.
60063         [build-shared] (link-libc): Define in terms of
60064         $(link-libc-before-gnulib).
60065         [!build-shared] (link-libc-tests): New variable.
60066         (link-libc-static-tests): New variable.
60067         [!gnulib] (gnulib-arch): New variable.
60068         [!gnulib] (gnulib-tests): Likewise.
60069         [!gnulib] (static-gnulib-arch): Likewise.
60070         [!gnulib] (static-gnulib-tests): Likewise.
60071         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
60072         Define with "=" instead of ":=".
60073         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
60074         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
60075         * Rules (binaries-all-notests): New variable.
60076         (binaries-all-tests): Likewise.
60077         (binaries-static-notests): Likewise.
60078         (binaries-static-tests): Likewise.
60079         (binaries-all): Define using $(binaries-all-notests) and
60080         $(binaries-all-tests).
60081         (binaries-static): Define using $(binaries-static-notests) and
60082         $(binaries-static-tests).
60083         (binaries-shared-tests): New variable.
60084         (binaries-shared-notests): Likewise.
60085         (binaries-shared): Remove variable.
60086         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
60087         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
60088         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
60089         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
60090         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
60091         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
60092         * elf/Makefile (sln-modules): New variable.
60093         (extra-objs): Add $(sln-modules:=.o).
60094         (ldconfig-modules): Add static-stubs.
60095         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
60096         * elf/static-stubs.c: New file.
60097
60098         [BZ #14283]
60099         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
60100         by 7 not 8 to examine high bit of fractional part.  Use volatile
60101         variables when splitting into final array of floats if
60102         __FLT_EVAL_METHOD__ != 0.
60103         * math/libm-test.inc (cos_test): Add another test.
60104         (sin_test): Likewise.
60105         * sysdeps/i386/fpu/libm-test-ulps: Update.
60106
60107         [BZ #14273]
60108         * math/libm-test.inc (cosh_test): Add more tests.
60109
60110         * version.h (RELEASE): Set to "development".
60111         (VERSION): Set to "2.16.90".
60112
60113 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
60114
60115         * NEWS: Update copyright. Remove last-updated date.
60116         Mention math library bug fixes and timezone data changes.
60117         * README: Mention GNU/Hurd, x32, and HPPA support status.
60118
60119 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
60120
60121         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
60122
60123 2012-06-27  Andreas Jaeger  <aj@suse.de>
60124
60125         * manual/contrib.texi (Contributors): Add Samuel Thibault.
60126
60127 2012-06-25  Andreas Jaeger  <aj@suse.de>
60128
60129         * sysdeps/s390/fpu/libm-test-ulps: Update.
60130
60131 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
60132             Thomas Schwinge  <thomas@codesourcery.com>
60133
60134         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
60135         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
60136         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
60137         fanotify_mark.
60138
60139 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
60140
60141         * sysdeps/mach/start.c: Remove file.
60142         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
60143         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
60144         * sysdeps/sh/init-first.c: Likewise.
60145
60146         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
60147         registers for frame unwinding purposes, add CFI directives.
60148         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60149         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
60150         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
60151         Likewise.
60152
60153         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
60154         __fortify_fail returning.
60155         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60156
60157         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
60158         sysdeps/sh/____longjmp_chk.S.
60159         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
60160         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
60161         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
60162         (gen-as-const-headers): Append sigaltstack-offsets.sym.
60163
60164         * sysdeps/sh/abort-instr.h: New file.
60165         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
60166         process in case exit returns.
60167
60168         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
60169         initialize the GOT register before use.
60170
60171         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
60172         calculation of ARGC > 4.
60173
60174         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
60175         meaningful names to some local labels.
60176
60177 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
60178             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60179
60180         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
60181         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
60182         (__arch_compare_and_exchange_val_16_acq): Likewise.
60183         (__arch_compare_and_exchange_val_32_acq): Likewise.
60184         (atomic_exchange_and_add): Fix gUSA sequence.
60185         (atomic_add): Likewise.
60186         (atomic_add_negative): Likewise.
60187         (atomic_add_zero): Likewise.
60188         (atomic_bit_test_set): Likewise.
60189
60190 2012-06-22  Andreas Schwab  <schwab@redhat.com>
60191
60192         [BZ #13579]
60193         * include/link.h (struct link_map): Add l_free_initfini.
60194         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
60195         l_initfini.
60196         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
60197         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
60198         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
60199         set.
60200
60201 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
60202
60203         * configure.in: Use AC_LANG_SOURCE.
60204         * configure: Regenerate.
60205
60206 2012-06-22  Roland McGrath  <roland@hack.frob.com>
60207
60208         * configure.in (libc_cv_localstatedir): New substituted variable.
60209         * configure: Regenerated.
60210         * config.make.in (localstatedir): New variable, substituted from
60211         libc_cv_localstatedir.
60212         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
60213         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
60214         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
60215         * sysdeps/gnu/configure: Regenerated.
60216
60217 2012-06-21  Jeff Law  <law@redhat.com>
60218
60219         [BZ #14277]
60220         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
60221         free.  Simplify list management for _LIBC case.
60222
60223 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
60224
60225         [BZ #14273]
60226         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
60227         Clear sign bit of 64-bit integer value before comparing against
60228         overflow value.
60229
60230         * sysdeps/mach/configure: Regenerated.
60231
60232 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
60233
60234         [BZ #14278]
60235         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
60236
60237 2012-06-21  Jeff Law  <law@redhat.com>
60238
60239         [BZ #13882]
60240         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
60241         uint16_t for elements in the "seen" array to avoid char overflows.
60242         * elf/dl-fini.c (_dl_sort_fini): Likewise.
60243         * elf/dl-open.c (dl_open_worker): Likewise.
60244
60245 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
60246
60247         * scripts/list-sources.sh: Scan PORTS for translations.
60248         * po/libc.pot: Regenerated.
60249
60250 2012-06-21  Andreas Jaeger  <aj@suse.de>
60251
60252         [BZ #12194]
60253         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
60254         warning.
60255         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
60256         * bits/byteswap-16.h (__bswap_16): Likewise.
60257         * bits/byteswap.h (__bswap_constant_16): Likewise.
60258
60259 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
60260
60261         [BZ #14117]
60262         * sysdeps/i386/fpu_control.h: Removed.
60263         * sysdeps/x86_64/fpu_control.h: Moved to ...
60264         * sysdeps/x86/fpu_control.h: Here.
60265
60266         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
60267         (_FPU_SETCW): Likewise.
60268
60269 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
60270
60271         [BZ #14117]
60272         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
60273         * sysdeps/x86/fpu/bits/mathinline.h: This.
60274         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
60275
60276         [BZ #14050]
60277         [BZ #14117]
60278         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
60279         functions if __x86_64__ is defined.
60280
60281 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
60282
60283         * string/endian.h: Add !__ASSEMBLER__ condition for including
60284         conversion interfaces.
60285
60286 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
60287
60288         [BZ #14241]
60289         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
60290         of ABS(x) in calculating zero to negative powers other than odd
60291         integers.
60292         * math/libm-test.inc (pow_test): Add more tests.
60293
60294 2012-06-15  Andreas Jaeger  <aj@suse.de>
60295
60296         * manual/contrib.texi (Contributors): Update entry of Liubov
60297         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
60298         Machado Filho.
60299
60300 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
60301
60302         * string/string.h: Add __wur to GNU version of strerror_r.
60303
60304 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
60305
60306         [BZ #14229]
60307         * string/Makefile (tests): Add tst-strtok_r.
60308         * string/tst-strtok_r.c: New file.
60309         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
60310         RAX_LP/RDX_LP on SAVE_PTR.
60311
60312 2012-06-14  Roland McGrath  <roland@hack.frob.com>
60313
60314         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
60315
60316 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
60317
60318         * libm_test.inc (csqrt_test): Allow more spurious underflow
60319         exceptions.
60320         (j0_test): Likewise.
60321         (j1_test): Likewise.
60322         (y0_test): Likewise.
60323         (y1_test): Likewise.
60324
60325 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
60326
60327         * po/Makefile (libc.pot): Use UTF-8 charset.
60328
60329 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
60330
60331         [BZ #14210]
60332         Suppress sign-conversion warning from FD_SET.
60333         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
60334         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
60335         not unsigned long int.
60336         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
60337
60338 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
60339
60340         [BZ #14050]
60341         [BZ #14117]
60342         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
60343         __extern_always_inline instead of __extern_inline.
60344         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
60345         (__signbit): Likewise.
60346         (__signbitl): Support C++ namespace.
60347         (lrintf): New inline function.
60348         (lrint): Likewise.
60349         (llrintf): Likewise.
60350         (llrint): Likewise.
60351         (fmaxf): Likewise.
60352         (fmax): Likewise.
60353         (fminf): Likewise.
60354         (fmin): Likewise.
60355         (rint): Likewise.
60356         (rintf): Likewise.
60357         (ceil): Likewise.
60358         (ceilf): Likewise.
60359         (floor): Likewise.
60360         (floorf): Likewise.
60361         (nearbyint): Likewise.
60362         (nearbyintf): Likewise.
60363
60364 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
60365
60366         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
60367         non-default versions.
60368
60369 2012-06-11  Roland McGrath  <roland@hack.frob.com>
60370
60371         [BZ #14218]
60372         * manual/argp.texi (Argp): Reword argp_parse description slightly.
60373
60374 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
60375
60376         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
60377         (FE_UPWARD, FE_DOWNWARD): Don't define.
60378         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
60379         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60380
60381         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
60382         reading it.
60383         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60384         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60385
60386 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60387
60388         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
60389         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
60390         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
60391         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
60392
60393 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
60394
60395         [BZ #14117]
60396         * sysdeps/i386/fpu/bits/fenv.h: Removed.
60397         * sysdeps/i386/fpu/Implies: New file.
60398         * sysdeps/x86_64/fpu/Implies: Likewise.
60399         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
60400         * sysdeps/x86/fpu/bits/fenv.h: This.
60401
60402         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
60403         __SSE_MATH__.
60404
60405 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
60406
60407         [BZ #14134]
60408         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
60409         character 0xffff that matches the last element of the
60410         conversion table.
60411
60412 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60413
60414         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
60415         fmodl commit.
60416
60417 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60418
60419         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
60420         values higher than 25.6283.
60421
60422 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60423
60424         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
60425         subnormal exponent extraction and add some __builtin_expect.
60426         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
60427         Fix for subnormal mantissa calculation.
60428
60429 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
60430
60431         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
60432         cpu2 is -1 and errno is not ENOSYS.
60433
60434 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
60435
60436         [BZ #14117]
60437         * sysdeps/i386/i486/bits/string.h: Renamed to ...
60438         * sysdeps/x86/bits/string.h: This.
60439         * sysdeps/x86_64/bits/string.h: Removed.
60440
60441         * sysdeps/i386/i486/bits/string.h: Define inline functions only
60442         if not compiling for x86-64, but compiling for >= i486.
60443
60444         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
60445         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
60446
60447         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
60448         New macro from Linux kernel 3.4.0.
60449         (FP_XSTATE_MAGIC2): Likewise.
60450         (FP_XSTATE_MAGIC2_SIZE): Likewise.
60451         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
60452         (struct _fpx_sw_bytes): New struct.
60453         (struct _xsave_hdr): Likewise.
60454         (struct _ymmh_state): Likewise.
60455         (struct _xstate): Likewise.
60456
60457         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
60458         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
60459         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
60460         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
60461         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
60462         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
60463
60464         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
60465         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
60466         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
60467         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
60468         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
60469         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
60470
60471 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
60472
60473         [BZ #13743]
60474         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
60475         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
60476         (sysdep_headers): Include sys/platform/ppc.h.
60477         * sysdeps/powerpc/test-gettimebase.c: Test for
60478         __ppc_get_timebase() to catch future ISA opcode/insn changes.
60479         * manual/Makefile (appendices): Include platform.texi.
60480         * manual/contrib.texi (Contributors): Update @node pointers.
60481         * manual/maint.texi (Maintenance): Likewise.
60482         (Platform): New node.
60483         * manual/platform.texi: New file.  Document the new features.
60484
60485 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
60486             Jakub Jelinek  <jakub@redhat.com>
60487
60488         [BZ #14188]
60489         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
60490         where __builtin_expect is unavailable.
60491
60492 2012-06-03  David S. Miller  <davem@davemloft.net>
60493
60494         * stdlib/longlong.h: Updated from GCC.
60495
60496 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
60497
60498         [BZ #14042]
60499         * sysdeps/powerpc/powerpc32/mcount.c: New file.
60500         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
60501         __mcount_internal.
60502         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
60503         (GLIBC_2.16): Likewise.
60504
60505 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60506
60507         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
60508
60509 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60510
60511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
60512         (default-abi): New variable.
60513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
60514         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
60515         variable.
60516         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
60517         Likewise.
60518         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
60519         Likewise.
60520         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
60521         Likewise.
60522
60523         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
60524         definition.  Document in comment.
60525
60526 2012-06-01  David S. Miller  <davem@davemloft.net>
60527
60528         * stdlib/longlong.h: Updated from GCC.
60529
60530 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60531
60532         [BZ #14117]
60533         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
60534         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
60535         sys/debugreg.h sys/io.h here.
60536         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
60537         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
60538         sys/io.h.
60539         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
60540         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
60541         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
60542         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
60543         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
60544         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
60545
60546         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
60547         Define only if __x86_64__ is defined.
60548
60549 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60550
60551         [BZ #14048]
60552         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
60553         Use int64_t for variable i.
60554         * math/libm-test.inc (fmod_test): Add more tests.
60555
60556         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
60557         z computation is not scheduled after fetestexcept.
60558         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
60559         Use math_force_eval instead of asm to ensure calculation scheduled
60560         before exception test.
60561         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
60562         Ensure a1 + u.d computation is not scheduled after fetestexcept.
60563
60564 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
60565
60566         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
60567         computation is not scheduled after fetestexcept.
60568
60569 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60570
60571         [BZ #14117]
60572         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
60573         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
60574
60575 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60576
60577         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
60578         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
60579
60580 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60581
60582         [BZ #14117]
60583         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
60584         <bits/wordsize.h>.
60585         (__WCHAR_MIN): Support __WORDSIZE == 64.
60586         (__WCHAR_MAX): Likewise.
60587
60588         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
60589         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
60590
60591         [BZ #14183]
60592         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
60593         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
60594
60595         [BZ #14117]
60596         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
60597         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
60598
60599         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
60600         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
60601
60602         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
60603         Defined to 1 if __x86_64__ isn't defined.
60604         (_STAT_VER_LINUX_OLD): New.
60605         (st_atime): Remove duplicate.
60606         (st_mtime): Likewise.
60607         (st_ctime): Likewise.
60608
60609 2012-05-31  David S. Miller  <davem@davemloft.net>
60610
60611         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
60612         entries.
60613
60614 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
60615
60616         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
60617         gen-libm-test.pl.
60618
60619         [BZ #14132]
60620         * elf/dl-reloc.c: Include <_itoa.h>.
60621         (_dl_reloc_bad_type): Remove use of INTUSE.
60622         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
60623         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
60624         * stdio-common/psiginfo.c (psiginfo): Likewise.
60625         * stdio-common/psignal.c (psignal): Likewise.
60626         * string/strsignal.c (strsignal): Likewise.
60627         * include/signal.h (_sys_siglist): Declare hidden proto.
60628         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
60629         INTVARDEF with libc_hidden_data_def.
60630         * stdio-common/itoa-udigits.c: Likewise.
60631         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
60632         (_itoa_lower_digits_internal): Remove declaration.
60633         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
60634         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
60635         (_sys_sigabbrev_internal): Remove aliases.
60636         (_sys_siglist): Define hidden alias.
60637
60638 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
60639
60640         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
60641         bits/sysctl.h.
60642
60643 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60644
60645         [BZ #14117]
60646         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
60647         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
60648
60649         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
60650         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
60651         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
60652         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
60653         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
60654         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
60655
60656         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
60657         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
60658         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
60659
60660         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
60661         with __addr.
60662         (insw): Likewise.
60663         (insl): Likewise.
60664         (outsb): Likewise.
60665         (outsw): Likewise.
60666         (outsl): Likewise.
60667
60668         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
60669         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
60670         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
60671
60672         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
60673         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
60674         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
60675         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
60676         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
60677         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
60678
60679         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
60680         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
60681
60682         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
60683         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
60684
60685         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
60686         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
60687         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
60688
60689         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
60690         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
60691         to ...
60692         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
60693
60694         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
60695         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
60696         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
60697
60698         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
60699         for x86-64.
60700         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
60701
60702 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
60703
60704         * math/math.h (M_El): Use two more decimal places.
60705         (M_LOG2El): Likewise.
60706         (M_LOG10El): Likewise.
60707         (M_LN2l): Likewise.
60708         (M_LN10l): Likewise.
60709         (M_PIl): Likewise.
60710         (M_PI_2l): Likewise.
60711         (M_PI_4l): Likewise.
60712         (M_1_PIl): Likewise.
60713         (M_2_PIl): Likewise.
60714         (M_2_SQRTPIl): Likewise.
60715         (M_SQRT2l): Likewise.
60716         (M_SQRT1_2l): Likewise.
60717
60718 2012-05-31  David S. Miller  <davem@davemloft.net>
60719
60720         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
60721         values between float registers.
60722         * sysdeps/sparc/sparc64/memset.S: Likewise.
60723         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
60724
60725 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
60726
60727         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
60728         -D_FORTIFY_SOURCE=1.
60729         (CPPFLAGS-tst-longjmp_chk.c): Define.
60730         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
60731         (CPPFLAGS-tst-longjmp_chk2.c): Define.
60732         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
60733         CFLAGS-tst-wchar-h.c.
60734
60735 2012-05-31  Marek Polacek  <polacek@redhat.com>
60736
60737         [BZ #14132]
60738         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
60739         __endmntent_internal): Remove declaration.
60740         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
60741         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
60742         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
60743
60744 2012-05-30  David S. Miller  <davem@davemloft.net>
60745
60746         * sysdeps/sparc/sparc32/soft-fp/q_util.c
60747         (___Q_simulate_exceptions): Use real FP ops rather than writing
60748         into the %fsr.
60749         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
60750         Likewise.
60751
60752 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60753
60754         [BZ #14117]
60755         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
60756         * sysdeps/x86/bits/xtitypes.h: This.
60757
60758         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
60759         * sysdeps/x86/bits/wordsize.h: This.
60760
60761         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
60762         * sysdeps/x86/bits/huge_vall.h: This.
60763
60764         * sysdeps/i386/bits/select.h: Removed.
60765         * sysdeps/x86_64/bits/select.h: Renamed to ...
60766         * sysdeps/x86/bits/select.h: This.
60767
60768         * sysdeps/i386/bits/setjmp.h: Removed.
60769         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
60770         * sysdeps/x86/bits/setjmp.h: This.
60771
60772         * sysdeps/i386/bits/mathdef.h: Removed.
60773         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
60774         * sysdeps/x86/bits/mathdef.h: This.
60775
60776 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
60777
60778         [BZ #14132]
60779         * include/sys/socket.h (__connect_internal)
60780         (__libc_sa_len_internal): Remove declaration.
60781         (__connect, __libc_sa_len): Declare hidden_proto.
60782         (SA_LEN): Remove use of INTUSE.
60783         * socket/connect.c: Add libc_hidden_def.
60784         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
60785         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
60786         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
60787         alias.
60788         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
60789         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
60790         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
60791         of adding _internal alias.
60792
60793 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60794
60795         [BZ #14117]
60796         * sysdeps/i386/bits/link.h: Removed.
60797         * sysdeps/i386/bits/linkmap.h: Likewise.
60798         * sysdeps/x86_64/bits/link.h: Renamed to ...
60799         * sysdeps/x86/bits/link.h: This.
60800         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
60801         * sysdeps/x86/bits/linkmap.h: This.
60802
60803         * sysdeps/i386/bits/endian.h: Removed.
60804         * sysdeps/x86_64/bits/endian.h: Renamed to ...
60805         * sysdeps/x86/bits/endian.h: This.
60806
60807         * sysdeps/i386/bits/byteswap.h: Removed.
60808         * sysdeps/i386/bits/byteswap-16.h: Likewise.
60809         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
60810         * sysdeps/x86/bits/byteswap.h: This.
60811         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
60812         * sysdeps/x86/bits/byteswap-16.h: This.
60813         * sysdeps/i386/Implies: Add x86.
60814         * sysdeps/x86_64/Implies: Likewise.
60815
60816 2012-05-30  David S. Miller  <davem@davemloft.net>
60817
60818         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
60819         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
60820         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
60821         (FP_TRAPPING_EXCEPTIONS): Define.
60822         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
60823         (FP_TRAPPING_EXCEPTIONS): Define.
60824         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
60825         subnormals only when inexact has been signalled or underflow
60826         exceptions are enabled.
60827         (_FP_PACK_CANONICAL): Likewise.
60828
60829 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60830
60831         [BZ #14183]
60832         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
60833         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
60834
60835 2012-05-30  Richard Henderson  <rth@twiddle.net>
60836
60837         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
60838         with #ifndef NOT_IN_libc.
60839
60840         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
60841         marked to avoid plt entry.
60842
60843 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60844
60845         [BZ #14112]
60846         * Makeconfig (default-abi): New macro.
60847         (abi-includes): Likewise.
60848         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
60849         $(abi-$(default-abi)-lib-soname) for soname if defined.
60850         ($(common-objpfx)gnu/lib-names.stmp): Generate from
60851         abi-variants.
60852         * Makefile (installed-stubs): Likewise.
60853         * include/stubs-biarch.h: Removed.
60854         * scripts/lib-names.awk: Only handle one library at a time.
60855         * scripts/soversions.awk: Remove WORDSIZE support.
60856         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
60857         entries.
60858         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
60859         Removed.
60860         (syscall-list-default-condition): Likewise.
60861         (syscall-list-default-condition): Likewise.
60862         (syscall-list-includes): Likewise.
60863         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
60864         syscall-list-* with abi-*.  Handle undefined abi-variants.
60865         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
60866         * sysdeps/unix/sysv/linux/i386/Implies: New file.
60867         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
60868         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
60869         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
60870         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
60871         Removed.
60872         (syscall-list-32-options): Likewise.
60873         (syscall-list-32-condition): Likewise.
60874         (syscall-list-64-options): Likewise.
60875         (syscall-list-64-condition): Likewise.
60876         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
60877         macro.
60878         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
60879         Renamed to ...
60880         (abi-*): This.
60881         (abi-64-ld-soname): New macro.
60882         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
60883         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
60884         Renamed to ...
60885         (abi-*): This.
60886         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
60887         * sysdeps/x86_64/x32/shlib-versions: Likewise.
60888
60889 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
60890
60891         * sysdeps/unix/sysv/linux/kernel-features.h
60892         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
60893         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
60894         include <kernel-features.h>.
60895         [!__NR_ftruncate64]: Remove conditional code.
60896         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60897         [__NR_ftruncate64]: Make code unconditional.
60898         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60899         * sysdeps/unix/sysv/linux/truncate64.c: Do not
60900         include <kernel-features.h>.
60901         [!__NR_ftruncate64]: Remove conditional code.
60902         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60903         [__NR_ftruncate64]: Make code unconditional.
60904         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60905         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
60906         include <kernel-features.h>.
60907         [!__NR_ftruncate64]: Remove conditional code.
60908         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60909         [__NR_ftruncate64]: Make code unconditional.
60910         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
60912         include <kernel-features.h>.
60913         [!__NR_ftruncate64]: Remove conditional code.
60914         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60915         [__NR_ftruncate64]: Make code unconditional.
60916         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60917
60918         * configure.in (libc_cv_fpie): Weaken to a compile test using
60919         LIBC_TRY_CC_OPTION.
60920         * configure: Regenerated.
60921
60922 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60923
60924         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
60925         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
60926         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
60927         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
60928         Refreshed.
60929         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
60930         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
60931         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
60932         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
60933         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
60934         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
60935         Refreshed.
60936
60937 2012-05-27  David S. Miller  <davem@davemloft.net>
60938
60939         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
60940         (___Q_zero): New.
60941         (__Q_simulate_exceptions): Return void.  Change to simulate
60942         exceptions by writing into the %fsr.
60943         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
60944         (__Qp_handle_exceptions): Likewise.
60945         (numbers): Delete.
60946         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
60947         __Qp_handle_exceptions.
60948         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
60949         __Qp_handle_exceptions.
60950         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
60951         as unused and give dummy FP_RND_NEAREST initializer.
60952         (FP_INHIBIT_RESULTS): Define.
60953         (___Q_simulate_exceptions): Update declaration.
60954         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
60955         formatting.
60956         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
60957         as unused and give dummy FP_RND_NEAREST initializer.
60958         (__Qp_handle_exceptions): Update declaration.
60959         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
60960         formatting.
60961
60962 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
60963
60964         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
60965         the temporary FPU control word.
60966         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
60967         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
60968         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
60969         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60970         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
60971         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
60972         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
60973         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60974         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
60975         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
60976         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60977
60978 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60979
60980         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
60981         fields.
60982
60983 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
60984
60985         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
60986         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
60987         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
60988         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
60989         Likewise.
60990         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
60991         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
60992         Likewise.
60993
60994 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
60995
60996         * po/h.po: Update from translation team.
60997
60998 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
60999
61000         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
61001
61002         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
61003         handling of denormals.
61004         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
61005         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
61006         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
61007         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
61008         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
61009         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
61010         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
61011         Likewise.
61012
61013 2012-05-26  Marek Polacek  <polacek@redhat.com>
61014
61015         [BZ #14152]
61016         * math/libm-test.inc (fma_test): Don't always expect underflow
61017         exception.
61018
61019 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
61020
61021         [BZ #12416]
61022         * elf/tst-execstack.c: Include stackinfo.h.
61023         (do_test): Adjust test case to ensure that pthread_getattr_np
61024         behaviour remains the same after marking stack executable.
61025
61026 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61027
61028         * sysdeps/unix/sysv/linux/kernel-features.h
61029         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
61030         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
61031         kernel-features.h.
61032         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61033         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61034         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
61035         kernel-features.h.
61036         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61037         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61038
61039 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
61040
61041         * configure.in: Define the default includes to being none.
61042         * configure: Regenerated.
61043
61044 2012-05-25  Roland McGrath  <roland@hack.frob.com>
61045
61046         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
61047         * sysdeps/x86_64/setjmp.S: Likewise.
61048         * sysdeps/i386/bsd-setjmp.S: Likewise.
61049         * sysdeps/i386/bsd-_setjmp.S: Likewise.
61050         * sysdeps/i386/setjmp.S: Likewise.
61051         * sysdeps/i386/__longjmp.S: Likewise.
61052         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
61053         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
61054
61055         * include/stap-probe.h: New file.
61056         * configure.in: Handle --enable-systemtap.
61057         * configure: Regenerated.
61058         * config.h.in (USE_STAP_PROBE): New #undef.
61059         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
61060         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
61061         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
61062
61063 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61064
61065         [BZ #13717]
61066         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
61067         to 2.4.0 where earlier.
61068         * sysdeps/unix/sysv/linux/configure: Regenerated.
61069         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
61070         <kernel-features.h>.
61071         [__ASSUME_32BITUIDS]: Make code unconditional.
61072         [!__ASSUME_32BITUIDS]: Remove conditional code.
61073         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
61074         <kernel-features.h>.
61075         [__ASSUME_32BITUIDS]: Make code unconditional.
61076         [!__ASSUME_32BITUIDS]: Remove conditional code.
61077         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
61078         [__ASSUME_32BITUIDS]: Make code unconditional.
61079         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
61080         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
61081         <kernel-features.h>.
61082         [__ASSUME_32BITUIDS]: Make code unconditional.
61083         [!__ASSUME_32BITUIDS]: Remove conditional code.
61084         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
61085         <kernel-features.h>.
61086         [__ASSUME_32BITUIDS]: Make code unconditional.
61087         [!__ASSUME_32BITUIDS]: Remove conditional code.
61088         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
61089         <kernel-features.h>.
61090         [__ASSUME_32BITUIDS]: Make code unconditional.
61091         [!__ASSUME_32BITUIDS]: Remove conditional code.
61092         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
61093         <kernel-features.h>.
61094         [__ASSUME_32BITUIDS]: Make code unconditional.
61095         [!__ASSUME_32BITUIDS]: Remove conditional code.
61096         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
61097         <kernel-features.h>.
61098         [__ASSUME_32BITUIDS]: Make code unconditional.
61099         [!__ASSUME_32BITUIDS]: Remove conditional code.
61100         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
61101         <kernel-features.h>.
61102         [__ASSUME_32BITUIDS]: Make code unconditional.
61103         [!__ASSUME_32BITUIDS]: Remove conditional code.
61104         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
61105         <kernel-features.h>.
61106         [__ASSUME_32BITUIDS]: Make code unconditional.
61107         [!__ASSUME_32BITUIDS]: Remove conditional code.
61108         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
61109         <kernel-features.h>.
61110         [__ASSUME_32BITUIDS]: Make code unconditional.
61111         [!__ASSUME_32BITUIDS]: Remove conditional code.
61112         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
61113         <kernel-features.h>.
61114         [__ASSUME_32BITUIDS]: Make code unconditional.
61115         [!__ASSUME_32BITUIDS]: Remove conditional code.
61116         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
61117         <kernel-features.h>.
61118         [__ASSUME_32BITUIDS]: Make code unconditional.
61119         [!__ASSUME_32BITUIDS]: Remove conditional code.
61120         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
61121         <kernel-features.h>.
61122         [__NR_setresgid] (__setresgid): Do not declare.
61123         [__ASSUME_32BITUIDS]: Make code unconditional.
61124         [!__ASSUME_32BITUIDS]: Remove conditional code.
61125         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
61126         <kernel-features.h>.
61127         [__NR_setresuid] (__setresuid): Do not declare.
61128         [__ASSUME_32BITUIDS]: Make code unconditional.
61129         [!__ASSUME_32BITUIDS]: Remove conditional code.
61130         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
61131         <kernel-features.h>.
61132         [__ASSUME_32BITUIDS]: Make code unconditional.
61133         [!__ASSUME_32BITUIDS]: Remove conditional code.
61134         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
61135         <kernel-features.h>.
61136         [__ASSUME_32BITUIDS]: Make code unconditional.
61137         [!__ASSUME_32BITUIDS]: Remove conditional code.
61138         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
61139         <kernel-features.h>.
61140         [__ASSUME_32BITUIDS]: Make code unconditional.
61141         [!__ASSUME_32BITUIDS]: Remove conditional code.
61142         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
61143         <kernel-features.h>.
61144         [__ASSUME_32BITUIDS]: Make code unconditional.
61145         [!__ASSUME_32BITUIDS]: Remove conditional code.
61146         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
61147         <kernel-features.h>.
61148         [__ASSUME_32BITUIDS]: Make code unconditional.
61149         [!__ASSUME_32BITUIDS]: Remove conditional code.
61150         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
61151         <kernel-features.h>.
61152         [__ASSUME_32BITUIDS]: Make code unconditional.
61153         [!__ASSUME_32BITUIDS]: Remove conditional code.
61154         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
61155         <kernel-features.h>.
61156         [__ASSUME_32BITUIDS]: Make code unconditional.
61157         [!__ASSUME_32BITUIDS]: Remove conditional code.
61158         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
61159         <kernel-features.h>.
61160         [__ASSUME_32BITUIDS]: Make code unconditional.
61161         [!__ASSUME_32BITUIDS]: Remove conditional code.
61162         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
61163         <kernel-features.h>.
61164         [__ASSUME_32BITUIDS]: Make code unconditional.
61165         [!__ASSUME_32BITUIDS]: Remove conditional code.
61166         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
61167         <kernel-features.h>.
61168         [__ASSUME_32BITUIDS]: Make code unconditional.
61169         [!__ASSUME_32BITUIDS]: Remove conditional code.
61170         * sysdeps/unix/sysv/linux/kernel-features.h
61171         (__ASSUME_SETRESUID_SYSCALL): Remove.
61172         (__ASSUME_SETRESGID_SYSCALL): Likewise.
61173         (__ASSUME_32BITUIDS): Likewise.
61174         (__ASSUME_LDT_WORKS): Likewise.
61175         (__ASSUME_O_DIRECTORY): Likewise.
61176         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
61177         architecture but not kernel version.
61178         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
61179         (__ASSUME_MMAP2_SYSCALL): Likewise.
61180         (__ASSUME_STAT64_SYSCALL): Likewise.
61181         (__ASSUME_IPC64): Likewise.
61182         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
61183         <kernel-features.h>.
61184         [__ASSUME_32BITUIDS]: Make code unconditional.
61185         [!__ASSUME_32BITUIDS]: Remove conditional code.
61186         * sysdeps/unix/sysv/linux/opendir.c: Do not include
61187         <kernel-features.h>.
61188         [__ASSUME_O_DIRECTORY]: Make code unconditional.
61189         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
61190         132096]: Remove conditional code.
61191         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
61192         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
61193         <kernel-features.h>.
61194         [__ASSUME_32BITUIDS]: Make code unconditional.
61195         [!__ASSUME_32BITUIDS]: Remove conditional code.
61196         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
61197         <kernel-features.h>.
61198         [__ASSUME_32BITUIDS]: Make code unconditional.
61199         [!__ASSUME_32BITUIDS]: Remove conditional code.
61200         * sysdeps/unix/sysv/linux/setegid.c: Do not include
61201         <kernel-features.h>.
61202         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
61203         unconditional.
61204         (__setresgid): Do not declare.
61205         [__ASSUME_32BITUIDS]: Make code unconditional.
61206         [!__ASSUME_32BITUIDS]: Remove conditional code.
61207         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
61208         <kernel-features.h>.
61209         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
61210         unconditional.
61211         (__setresuid): Do not declare.
61212         [__ASSUME_32BITUIDS]: Make code unconditional.
61213         [!__ASSUME_32BITUIDS]: Remove conditional code.
61214         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
61215         <kernel-features.h>.
61216         [__ASSUME_32BITUIDS]: Make code unconditional.
61217         [!__ASSUME_32BITUIDS]: Remove conditional code.
61218         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
61219         <kernel-features.h>.
61220         [__ASSUME_32BITUIDS]: Make code unconditional.
61221         [!__ASSUME_32BITUIDS]: Remove conditional code.
61222
61223 2012-05-25  Richard Henderson  <rth@twiddle.net>
61224
61225         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
61226         dl_hwcap to ifunc resolver.
61227         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
61228         elf_ifunc_invoke.
61229         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
61230         dl_hwcap to ifunc resolver.
61231         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
61232
61233 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61234
61235         [BZ #14153]
61236         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
61237         for |x| <= 2**-26, not 2**-57.
61238         * math/libm-test.inc (acos_test): Do not allow spurious underflow
61239         exception.
61240
61241 2012-05-24  Jeff Law  <law@redhat.com>
61242
61243         * stdio-common/Makefile (tests): Add bug25.
61244         * stdio-common/bug25.c: New test.
61245
61246 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61247
61248         [BZ #13576]
61249         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
61250         multiple of MALLOC_ALIGNMENT in size.
61251         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
61252
61253 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61254
61255         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
61256         Require >= 256.
61257         (FILENAME_MAX): Use macro-int-constant.
61258         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
61259         (_IOFBF): Use macro-int-constant.
61260         (_IOLBF): Likewise.
61261         (_IONBF): Likewise.
61262         (SEEK_CUR): Likewise.
61263         (SEEK_END): Likewise.
61264         (SEEK_SET): Likewise.
61265         (TMP_MAX): Likewise.
61266         (EOF): Use macro-int-constant.  Require < 0.
61267         (NULL): Use macro-constant.  Require == 0.
61268         (stdin): Require type to be FILE *.
61269         (stdout): Likewise.
61270         (stderr): Likewise.
61271         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
61272         macro-int-constant.
61273         (EXIT_SUCCESS): Likewise.
61274         (NULL): Use macro-constant.  Require == 0.
61275         (RAND_MAX): Use macro-int-constant.
61276         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
61277         [C99-based standards] (strtof): Require function.
61278         [C99-based standards] (strtold): Likewise.
61279         [C99-based standards] (strtoll): Likewise.
61280         [C99-based standards] (strtoull): Likewise.
61281         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
61282         [ISO || ISO99 || ISO11] (limits.h): Likewise.
61283         [ISO || ISO99 || ISO11] (math.h): Likewise.
61284         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
61285         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
61286         [ISO || ISO99 || ISO11] (*_t): Do not allow.
61287
61288 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
61289
61290         [BZ #14132]
61291         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
61292         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
61293         * intl/dgettext.c (DCGETTEXT): Likewise.
61294         * intl/gettext.c (DCGETTEXT): Likewise.
61295         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
61296         * posix/regex_internal.h (gettext): Likewise.
61297         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
61298         Remove declaration.
61299         * include/argz.h (__argz_count_internal)
61300         (__argz_stringify_internal): Remove declaration.
61301         (__argz_count, __argz_stringify): Declare hidden proto.
61302         * intl/dcgettext.c: Remove use of INTDEF.
61303         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
61304         * string/argz-stringify.c: Likewise.
61305         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61306         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61307         Declare hidden proto.
61308         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61309         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61310         Declare hidden proto.
61311         * include/stdio.h (__asprintf_internal): Don't declare.
61312         (__asprintf): Don't define as macro.  Declare hidden proto.
61313         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
61314         (__fsetlocking): Declare hidden proto.
61315         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
61316         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
61317         hidden proto.
61318         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
61319         (_IO_setlinebuf): Remove use of INTUSE.
61320         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
61321         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
61322         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
61323         Remove declaration.
61324         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
61325         (_IO_do_flush): Remove use of INTUSE.
61326         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
61327         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
61328         (_IO_adjust_column, _IO_least_wmarker)
61329         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
61330         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
61331         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
61332         (_IO_default_doallocate, _IO_wdefault_doallocate)
61333         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
61334         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
61335         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
61336         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
61337         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
61338         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
61339         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
61340         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
61341         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
61342         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
61343         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
61344         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
61345         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
61346         proto.
61347         (_IO_flush_all_internal, _IO_adjust_column_internal)
61348         (_IO_default_uflow_internal, _IO_default_finish_internal)
61349         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
61350         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
61351         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
61352         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
61353         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
61354         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
61355         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
61356         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
61357         (_IO_file_close_internal, _IO_file_close_it_internal)
61358         (_IO_file_underflow_internal, _IO_file_overflow_internal)
61359         (_IO_file_init_internal, _IO_file_attach_internal)
61360         (_IO_file_fopen_internal, _IO_file_read_internal)
61361         (_IO_file_sync_internal, _IO_file_seek_internal)
61362         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
61363         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
61364         (_IO_str_underflow_internal, _IO_str_overflow_internal)
61365         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
61366         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
61367         (_IO_list_all_internal, _IO_link_in_internal)
61368         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
61369         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
61370         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
61371         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
61372         (_IO_do_write_internal, _IO_padn_internal)
61373         (_IO_getline_info_internal, _IO_getline_internal)
61374         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
61375         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
61376         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
61377         (_IO_vfscanf_internal, _IO_vfprintf_internal)
61378         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
61379         (_IO_init_internal, _IO_un_link_internal): Don't declare.
61380         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
61381         with libc_hidden_ver, remove use of INTUSE.
61382         * libio/genops.c: Likewise.
61383         * libio/freopen.c: Likewise.
61384         * libio/freopen64.c: Likewise.
61385         * libio/iofclose.c: Likewise.
61386         * libio/iofdopen.c: Likewise.
61387         * libio/iofflush.c: Likewise.
61388         * libio/iofflush_u.c: Likewise.
61389         * libio/iofgets.c: Likewise.
61390         * libio/iofgets_u.c: Likewise.
61391         * libio/iofopen.c: Likewise.
61392         * libio/iofopncook.c: Likewise.
61393         * libio/iofread.c: Likewise.
61394         * libio/iofread_u.c: Likewise.
61395         * libio/ioftell.c: Likewise.
61396         * libio/iofwrite.c: Likewise.
61397         * libio/iogetline.c: Likewise.
61398         * libio/iogets.c: Likewise.
61399         * libio/iogetwline.c: Likewise.
61400         * libio/iopadn.c: Likewise.
61401         * libio/iopopen.c: Likewise.
61402         * libio/ioseekoff.c: Likewise.
61403         * libio/ioseekpos.c: Likewise.
61404         * libio/iosetbuffer.c: Likewise.
61405         * libio/iosetvbuf.c: Likewise.
61406         * libio/ioungetc.c: Likewise.
61407         * libio/ioungetwc.c: Likewise.
61408         * libio/iovdprintf.c: Likewise.
61409         * libio/iovsprintf.c: Likewise.
61410         * libio/iovsscanf.c: Likewise.
61411         * libio/memstream.c: Likewise.
61412         * libio/obprintf.c: Likewise.
61413         * libio/oldfileops.c: Likewise.
61414         * libio/oldiofclose.c: Likewise.
61415         * libio/oldiofdopen.c: Likewise.
61416         * libio/oldiofopen.c: Likewise.
61417         * libio/oldiopopen.c: Likewise.
61418         * libio/oldstdfiles.c: Likewise.
61419         * libio/putc.c: Likewise.
61420         * libio/setbuf.c: Likewise.
61421         * libio/setlinebuf.c: Likewise.
61422         * libio/stdfiles.c: Likewise.
61423         * libio/strops.c: Likewise.
61424         * libio/vasprintf.c: Likewise.
61425         * libio/vscanf.c: Likewise.
61426         * libio/vsnprintf.c: Likewise.
61427         * libio/vswprintf.c: Likewise.
61428         * libio/wfiledoalloc.c: Likewise.
61429         * libio/wfileops.c: Likewise.
61430         * libio/wgenops.c: Likewise.
61431         * libio/wmemstream.c: Likewise.
61432         * libio/wstrops.c: Likewise.
61433         * libio/__fpurge.c: Likewise.
61434         * libio/__fsetlocking.c: Likewise.
61435         * assert/assert.c: Likewise.
61436         * debug/fgets_chk.c: Likewise.
61437         * debug/fgets_u_chk.c: Likewise.
61438         * debug/fread_chk.c: Likewise.
61439         * debug/fread_u_chk.c: Likewise.
61440         * debug/gets_chk.c: Likewise.
61441         * debug/obprintf_chk.c: Likewise.
61442         * debug/vasprintf_chk.c: Likewise.
61443         * debug/vdprintf_chk.c: Likewise.
61444         * debug/vsnprintf_chk.c: Likewise.
61445         * debug/vsprintf_chk.c: Likewise.
61446         * malloc/mtrace.c: Likewise.
61447         * misc/error.c: Likewise.
61448         * misc/syslog.c: Likewise.
61449         * stdio-common/asprintf.c: Likewise.
61450         * stdio-common/fxprintf.c: Likewise.
61451         * stdio-common/getw.c: Likewise.
61452         * stdio-common/isoc99_fscanf.c: Likewise.
61453         * stdio-common/isoc99_scanf.c: Likewise.
61454         * stdio-common/isoc99_vfscanf.c: Likewise.
61455         * stdio-common/isoc99_vscanf.c: Likewise.
61456         * stdio-common/isoc99_vsscanf.c: Likewise.
61457         * stdio-common/printf-prs.c: Likewise.
61458         * stdio-common/printf_fp.c: Likewise.
61459         * stdio-common/printf_fphex.c: Likewise.
61460         * stdio-common/printf_size.c: Likewise.
61461         * stdio-common/putw.c: Likewise.
61462         * stdio-common/scanf.c: Likewise.
61463         * stdio-common/sprintf.c: Likewise.
61464         * stdio-common/tmpfile.c: Likewise.
61465         * stdio-common/vfprintf.c: Likewise.
61466         * stdio-common/vfscanf.c: Likewise.
61467         * stdlib/strfmon_l.c: Likewise.
61468         * sunrpc/openchild.c: Likewise.
61469         * sunrpc/xdr_stdio.c: Likewise.
61470         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
61471         * sysdeps/mach/hurd/tmpfile.c: Likewise.
61472
61473 2012-05-24  Roland McGrath  <roland@hack.frob.com>
61474
61475         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
61476
61477         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
61478         in the third column, to generate for the shared library an IFUNC
61479         that uses _dl_vdso_vsym.
61480         * Makerules (COMPILE.c, compile-stdin.c): New variables.
61481         * Makeconfig (object-suffixes-noshared): New variable.
61482
61483         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
61484         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
61485         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
61486         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
61487
61488         [BZ #14132]
61489         * include/sys/time.h (__gettimeofday): Remove macro.
61490         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
61491         * time/gettimeofday.c (__gettimeofday): Remove #undef.
61492         Remove INTDEF.
61493         (__gettimeofday): Add libc_hidden_def.
61494         (gettimeofday): Add libc_hidden_weak.
61495         * sysdeps/mach/gettimeofday.c: Likewise.
61496         * sysdeps/posix/gettimeofday.c: Likewise.
61497         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
61498         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
61499         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
61500         (__gettimeofday_internal): Remove strong_alias.
61501         (__gettimeofday): Add libc_hidden_def.
61502         (gettimeofday): Add libc_hidden_weak.
61503         * sysdeps/unix/syscalls.list (gettimeofday):
61504         Remove __gettimeofday_internal alias.
61505
61506 2012-05-24  Daniel Jacobowitz  <drow@false.org>
61507             H.J. Lu  <hongjiu.lu@intel.com>
61508
61509         [BZ #12495]
61510         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
61511         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
61512         (largebin_index_32_big): New.
61513         (largebin_index): Use it for 16-byte alignment.
61514         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
61515         correction with front_misalign.
61516
61517 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61518
61519         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
61520         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
61521         Likewise.
61522         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
61523         Likewise.
61524         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
61525         Likewise.
61526         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
61527         Likewise.
61528         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
61529         Likewise.
61530         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
61531         Likewise.
61532         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
61533         Likewise.
61534         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
61535         Likewise.
61536         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
61537         Likewise.
61538         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
61539         Likewise.
61540         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
61541         Likewise.
61542         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
61543         Likewise.
61544
61545         * scripts/data/c++-types-x32-linux-gnu.data: New file.
61546         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
61547
61548 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61549
61550         [BZ #10846]
61551         [BZ #14036]
61552         * math/libm-test.inc (exp_test): Add test from bug 14036.
61553         (pow_test): Add test from bug 10846.
61554
61555         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
61556         and other flags.
61557         (special_function): Do not include flags in test name.
61558         (parse_args): Likewise.
61559         * sysdeps/i386/fpu/libm-test-ulps: Update.
61560         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
61561         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
61562         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
61563         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61564
61565         * math/gen-libm-test.pl (%beautify): Add entries for underflow
61566         exceptions.
61567         * math/libm-test.inc ("Philosophy"): Update comment about
61568         exception testing.
61569         (UNDERFLOW_EXCEPTION): New macro.
61570         (UNDERFLOW_EXCEPTION_OK): Likewise.
61571         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
61572         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
61573         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
61574         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
61575         (INVALID_EXCEPTION_OK): Update value.
61576         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
61577         (OVERFLOW_EXCEPTION_OK): Likewise.
61578         (IGNORE_ZERO_INF_SIGN): Likewise.
61579         (test_exceptions): Handle underflow exceptions.
61580         (acos_test): Update for underflow exception expectations.
61581         (cexp_test): Likewise.
61582         (clog_test): Likewise.
61583         (clog10_test): Likewise.
61584         (csqrt_test): Likewise.
61585         (ctan_test): Likewise.
61586         (ctanh_test): Likewise.
61587         (exp_test): Likewise.
61588         (exp10_test): Likewise.
61589         (exp2_test): Likewise.
61590         (expm1_test): Likewise.
61591         (fma_test): Likewise.
61592         (j0_test): Likewise.
61593         (jn_test): Likewise.
61594         (nexttoward_test): Likewise.
61595         (pow_test): Likewise.
61596         (scalbn_test): Likewise.
61597         (scalbln_test): Likewise.
61598         (tan_test): Likewise.
61599         (y1_test): Likewise.
61600         * sysdeps/i386/fpu/libm-test-ulps: Update.
61601         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61602
61603 2012-05-23  David S. Miller  <davem@davemloft.net>
61604
61605         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
61606         (__libc_sigaction): Remove unused local variables.
61607
61608 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61609
61610         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
61611
61612 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
61613
61614         mktime: avoid signed integer overflow
61615         * time/mktime.c (__mktime_internal): Do not mishandle the case
61616         where diff == INT_MIN.
61617
61618         mktime: simplify computation of average
61619         * time/mktime.c (ranged_convert): Use new time_t_avg function
61620         instead of rolling our own (probably-slower) code.
61621
61622         mktime: do not assume signed right shift propagates sign bit
61623         * time/mktime.c (isdst_differ): New static function.
61624         (__mktime_internal): No need to normalize tm_isdst now.
61625         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
61626         tm_isdst values.
61627
61628         mktime: merge another wrapv change from gnulib
61629         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
61630         from some compilers.
61631
61632         mktime: remove incorrect attempt at unusual arithmetics
61633         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
61634         The code didn't really work on such machines anyway.
61635         (TYPE_MINIMUM): Assume two's complement.
61636         (twos_complement_arithmetic): Verify that long_int and time_t
61637         are two's complement (or unsigned, in the latter case).
61638
61639         mktime: check signed shifts on long_int and time_t, too
61640         * time/mktime.c (SHR): Check that shifts work as desired
61641         on the types long_int and time_t too, as SHR is used on
61642         such types.
61643
61644         mktime: do not assume 'long' is wide enough
61645         * time/mktime.c (verify): Move decl up.
61646         (long_int): New type.
61647         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
61648         to remove assumption in the code that 'long' is wide enough to
61649         store year values.  This assumption is not true on x32 and on
61650         some non-glibc platforms.
61651
61652         mktime: merge wrapv change from gnulib
61653         * time/mktime.c (WRAPV): New macro.
61654         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
61655         (guess_time_tm, __mktime_internal): Do not assume that signed
61656         integer overflow wraps around; modern compilers generate code
61657         where this assumption is no longer valid.
61658
61659 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61660
61661         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
61662         Replace "jmp L(pseudo_end)" with "ret".
61663         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
61664         Likewise.
61665
61666 2012-05-23  Andreas Jaeger  <aj@suse.de>
61667
61668         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
61669         * sysdeps/unix/sysv/linux/poll.c: Remove file.
61670
61671 2012-05-23  Andreas Jaeger  <aj@suse.de>
61672             Maximilian Attems  <max@stro.at>
61673
61674         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
61675         New macros.
61676
61677 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61678
61679         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
61680         code so that pseudo_end is just ret and the stack pointer is
61681         correct also for static library in error case.
61682
61683 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
61684
61685         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
61686         move to syscalls.list.
61687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
61688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
61689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
61690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
61691
61692         * manual/install.texi (Running make install): Do not mention Linux
61693         kernel version for which pt_chown is not needed.
61694         (Linux): Do not mention problems with nscd with 2.0 kernels.
61695         * INSTALL: Regenerated.
61696
61697 2012-05-23  Andreas Jaeger  <aj@suse.de>
61698
61699         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
61700         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
61701         macro.
61702         * sysdeps/unix/sysv/linux/s390/bits/mman.h
61703         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61704         * sysdeps/unix/sysv/linux/sh/bits/mman.h
61705         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61706         * sysdeps/unix/sysv/linux/i386/bits/mman.h
61707         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61708         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
61709         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61710         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
61711         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61712         * sysdeps/unix/sysv/linux/bits/in.h
61713         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
61714
61715 2012-05-22  Roland McGrath  <roland@hack.frob.com>
61716
61717         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
61718         (PREPARE_VERSION): Just use assert instead, it will be elided
61719         under [NDEBUG] anyway.
61720
61721 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61722
61723         * sysdeps/unix/sysv/linux/Makefile: Include
61724         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
61725         (sysdep_routines): Remove sysctl.
61726         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
61727         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
61728         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
61729         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
61730         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
61731
61732 2012-05-22  Andreas Jaeger  <aj@suse.de>
61733
61734         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
61735         that pseudo_end is just ret and the stack pointer is correct also
61736         for static library in error case.
61737
61738 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
61739
61740         [BZ #14122]
61741         * nss/nsswitch.c (defconfig_entries): New variable.
61742         (__nss_database_lookup): Don't leak defconfig entries.
61743         (nss_parse_service_list): Don't leak on error paths.
61744         (free_database_entries): New function.
61745         (free_defconfig): New function.
61746         (free_mem): Move common code to free_database_entries.
61747
61748 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61749
61750         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
61751         Add arch_prctl.
61752         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
61753
61754         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
61755         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
61756         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
61757         New macro.
61758         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
61759         (INTERNAL_SYSCALL_TYPES): Likewise.
61760         (LOAD_ARGS_TYPES_[1-6]): Likewise.
61761         (LOAD_REGS_TYPES_[1-6]): Likewise.
61762         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
61763         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
61764
61765 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61766
61767         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
61768         copysignl for GLIBC_2_0.
61769         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
61770         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
61771         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
61772         logbl for GLIBC_2_0.
61773         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
61774         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
61775
61776 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61777
61778         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
61779         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
61780
61781         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
61782         Use "neg %eax".
61783
61784         * time/mktime.c: Update copyright years.
61785
61786 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61787
61788         mktime: merge comment-quoting-style change from gnulib
61789         * time/mktime.c: Quote 'like this' in comments.
61790         The GNU coding standards suggest that we no longer quote `like this',
61791         as "`" and "'" are typically rendered asymmetrically nowadays.
61792         The typical gnulib style is to quote 'like this' when quoting
61793         code, and "like this" when quoting English.
61794
61795         * time/mktime.c (compile-command): Add "-I.".
61796
61797         mktime: merge mktime-internal.h change from gnulib
61798         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
61799
61800         mktime: merge time_r change from gnulib
61801         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
61802
61803         mktime: merge DEBUG change from gnulib
61804         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
61805         case system <time.h> has a #define.
61806
61807         mktime: merge <sys/types.h> change from gnulib
61808         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
61809         since <time.t> is now guaranteed to define time_t.
61810
61811         mktime: merge HAVE_CONFIG_H change from gnulib
61812         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
61813
61814 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61815
61816         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
61817         Use "neg %eax".
61818
61819         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
61820         __rlim_t cast.
61821         (struct rusage): Use anonymous union to pad each field to
61822         __syscall_slong_t.
61823
61824 2012-05-21  David S. Miller  <davem@davemloft.net>
61825
61826         * Makefules (o-iterator): Remove .s cases.
61827         (compile-command.s): Delete.
61828         (COMPILE.s): Delete.
61829         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
61830
61831 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
61832
61833         * configure.in (libc_cv_predef_stack_protector): Only consider
61834         "foobar" and "__stack_chk_fail" lines in libc_undefs.
61835         * configure: Regenerated.
61836
61837 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61838
61839         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
61840         New macro.  Use R*LP on int and pointer.
61841         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
61842         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
61843         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
61844         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
61845
61846         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
61847         [__WORDSIZE_TIME64_COMPAT32] instead of
61848         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
61849         (struct utmp): Likewise.
61850         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
61851         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
61852         Renamed to ...
61853         (__WORDSIZE_TIME64_COMPAT32): This.
61854         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
61855         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
61856         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
61857         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
61858         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
61859         (__WORDSIZE_TIME64_COMPAT32): New macro.
61860
61861 2012-05-21  Andreas Jaeger  <aj@suse.de>
61862
61863         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
61864         only if [SHARED]. Add prototype for __wcschr_ia32.
61865
61866 2012-05-21  Roland McGrath  <roland@hack.frob.com>
61867
61868         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
61869         of %rbp unmolested in the jmp_buf while mangling the low bits.
61870         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
61871         unmolested high bits of %rbp while demangling the low bits.
61872         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
61873
61874 2012-05-21  Andreas Jaeger  <aj@suse.de>
61875
61876         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
61877         * sunrpc/svc_simple.c: Use it for registerrpc.
61878         * sunrpc/xcrypt.c: Use it for passwd2des.
61879
61880         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
61881
61882 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61883
61884         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
61885         Don't define if [__SYSCALL_WORDSIZE != 32].
61886         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
61887         New macro.
61888
61889 2012-05-21  Bruno Haible  <bruno@clisp.org>
61890             Andreas Jaeger  <aj@suse.de>
61891
61892         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
61893         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
61894         inptr and inend for must_buffer_ch.
61895         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
61896         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
61897         * stdio-common/Makefile (tests): Remove bug15.
61898         (bug15-ENV): Remove macro.
61899         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
61900         anymore.
61901
61902 2012-05-19  Andreas Jaeger  <aj@suse.de>
61903             Roland McGrath  <roland@hack.frob.com>
61904
61905         * manual/contrib.texi: Completely rewritten. It contains now an
61906         alphabetical list of contributors and their contributions.
61907
61908 2012-05-21  Richard Henderson  <rth@twiddle.net>
61909
61910         * misc/getauxval.c (__getauxval): Use unsigned long int.
61911         * misc/sys/auxv.h: Include <sys/cdefs.h>.
61912         (getauxval): Use unsigned long int.
61913
61914 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61915
61916         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
61917
61918 2012-05-21  Roland McGrath  <roland@hack.frob.com>
61919
61920         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
61921         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
61922         __alignof__ (long double).
61923
61924 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61925
61926         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
61927
61928 2012-05-20  Richard Henderson  <rth@twiddle.net>
61929
61930         * misc/getauxval.c: New file.
61931         * misc/sys/auxv.h: New file.
61932         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
61933         (routines): Add getauxval.
61934         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
61935         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
61936         * elf/dl-sysdep.c (_dl_auxv): Remove.
61937         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
61938         * elf/dl-support.c (_dl_auxv): New variable.
61939         (_dl_aux_init): Initialize it.
61940         * manual/startup.texi (Auxiliary Vector): New node.
61941         * sysdeps/generic/bits/hwcap.h: New file.
61942         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
61943         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
61944         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
61945         * sysdeps/sparc/sysdep.h: ... here.  Include it.
61946         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
61947         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
61948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
61949         Update.
61950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
61951         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
61952         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
61953         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
61954         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
61955         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
61956         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
61957         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
61958
61959 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61960
61961         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
61962
61963 2012-05-19  David S. Miller  <davem@davemloft.net>
61964
61965         * sysdeps/sparc/fpu/libm-test-ulps: Update.
61966
61967 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
61968
61969         [BZ #14123]
61970         * math/s_ccosh.c: Include <float.h>
61971         (__ccosh): Avoid internal overflow calculating sinh and cosh
61972         values before multiplying by sin and cos values.
61973         * math/s_ccoshf.c: Likewise.
61974         * math/s_ccoshl.c: Likewise.
61975         * math/s_csin.c: Likewise.
61976         * math/s_csinf.c: Likewise.
61977         * math/s_csinl.c: Likewise.
61978         * math/s_csinh.c: Likewise.
61979         * math/s_csinhf.c: Likewise.
61980         * math/s_csinhl.c: Likewise.
61981         * math/libm-test.inc (ccos_test): Add more tests.
61982         (ccosh_test): Likewise.
61983         (csin_test): Likewise.
61984         (csinh_test): Likewise.
61985         * sysdeps/i386/fpu/libm-test-ulps: Update.
61986         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61987
61988 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
61989
61990         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
61991         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
61992
61993         * sysdeps/x86_64/x32/_itoa.h: Add comment.
61994
61995 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
61996
61997         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
61998         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
61999         * sysdeps/powerpc/soft-fp/Versions: Likewise.
62000         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
62001         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
62002         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
62003         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
62004         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
62005         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
62006         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
62007         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
62008         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
62009         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
62010         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
62011         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
62012         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
62013         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
62014         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
62015         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
62016         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
62017         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
62018         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
62019         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
62020         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
62021         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
62022         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
62023         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
62024         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
62025         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
62026         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
62027         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
62028
62029 2012-05-18  Andreas Jaeger  <aj@suse.de>
62030
62031         * csu/.gitignore: Delete.
62032
62033 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62034
62035         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
62036         (timex): Use __syscall_slong_t.
62037
62038 2012-05-18  Andreas Jaeger  <aj@suse.de>
62039             Carlos O'Donell  <carlos_odonell@mentor.com>
62040
62041         * manual/install.texi (Configuring and compiling): Update
62042         description about files modified in the source directory.
62043         * INSTALL: Regenerated.
62044
62045 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62046
62047         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
62048         value.  Use "or" to set return value to -1.
62049         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
62050         negate return value.
62051
62052 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62053
62054         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
62055         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
62056         failure if the compiler has Graphite support disabled.
62057         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
62058         Likewise.
62059         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
62060         (CFLAGS-memmove.c): Likewise.
62061         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
62062         Likewise.
62063
62064 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62065
62066         * sysdeps/x86_64/x32/_itoa.h: New file.
62067
62068         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
62069         getdents system call only if kernel and user dirents have the
62070         same d_ino and d_off.
62071
62072         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
62073         LLONG_MAX != LONG_MAX.
62074         (_itoa_word): Use _ITOA_WORD_TYPE on value.
62075         (_fitoa_word): Likewise.
62076
62077         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
62078         years.
62079         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
62080         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
62081         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
62082
62083         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
62084         include <bits/wordsize.h>.  Check __x86_64__ instead of
62085         __WORDSIZE.
62086         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
62087         if __x86_64__ is defined.  Use anonymous union on fpstate.
62088
62089         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
62090         anonymous union.
62091
62092 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
62093
62094         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
62095         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
62096         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
62097         Refer to _rtld_local_ro instead of _rtld_global_ro.
62098         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
62099         Likewise.
62100         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
62101         Likewise.
62102         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
62103         Likewise.
62104         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
62105         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
62106         of _rtld_global, and rtld_progname instead of _dl_argv[0].
62107
62108         [BZ #10882]
62109         * sysdeps/powerpc/powerpc32/dl-machine.c
62110         (__elf_machine_runtime_setup) [PROF]: Don't reference
62111         _dl_prof_resolve.
62112
62113 2012-05-18  Andreas Jaeger  <aj@suse.de>
62114
62115         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
62116         function only available for GCCs before 3.4 since GCC 3.4
62117         introduced a builtin.
62118         (lrint): Likewise.
62119         (llrintf): Likewise.
62120         (llrint): Likewise.
62121         (fmaxf): Likewise.
62122         (fmax): Likewise.
62123         (fminf): Likewise.
62124         (fmin): Likewise.
62125         (rint): Likewise.
62126         (rintf): Likewise.
62127         (nearbyint): Likewise.
62128         (nearbyintf): Likewise.
62129         (ceil): Likewise.
62130         (ceilf): Likewise.
62131         (floor): Likewise.
62132         (floorf): Likewise.
62133
62134 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62135
62136         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
62137         on both fields and cast pointer to __syscall_ulong_t.
62138
62139         * bits/types.h (__fsword_t): New type.
62140         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
62141         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
62142         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62143         (__FSWORD_T_TYPE): Likewise.
62144         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62145         (__FSWORD_T_TYPE): Likewise.
62146         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62147         (__FSWORD_T_TYPE): Likewise.
62148         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
62149         (__FSWORD_T_TYPE): Likewise.
62150         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
62151         __SWORD_TYPE with __fsword_t.
62152         (statfs64): Likewise.
62153
62154 2012-05-17  David S. Miller  <davem@davemloft.net>
62155
62156         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
62157
62158 2012-05-17  Andreas Jaeger  <aj@suse.de>
62159
62160         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
62161         warning.
62162
62163 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62164
62165         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
62166
62167 2012-05-17  Andreas Jaeger  <aj@suse.de>
62168
62169         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
62170         when it is used.
62171
62172 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62173
62174         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
62175
62176 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62177
62178         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
62179         * sysdeps/x86_64/tst-mallocalign1.c: New file.
62180
62181 2012-05-17  Andreas Jaeger  <aj@suse.de>
62182             Carlos O'Donell  <carlos_odonell@mentor.com>
62183
62184         [BZ #14059]
62185         * sysdeps/x86_64/multiarch/init-arch.h
62186         (bit_YMM_Usable): Rename to...
62187         (bit_AVX_Usable): ... this.
62188         (bit_FMA4_Usable): New macro.
62189         (bit_XMM_state): New macro.
62190         (bit_YMM_state): New macro.
62191         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
62192         [__ASSEMBLER__] (index_AVX_Usable): ... this.
62193         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
62194         (CPUID_OSXSAVE): New macro.
62195         (CPUID_AVX): New macro.
62196         (CPUID_FMA4): New macro.
62197         (index_YMM_Usable): Rename to...
62198         (index_AVX_Usable): ... this.
62199         (HAS_AVX): Use HAS_ARCH_FEATURE.
62200         (HAS_FMA4): Likewise.
62201         (HAS_YMM_USABLE): Remove.
62202         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
62203         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
62204         are present.
62205         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
62206         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
62207         * sysdeps/x86_64/multiarch/Makefile: Likewise.
62208         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
62209         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
62210
62211 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62212
62213         * math/libm-test.c: Support platforms without multiple rounding modes.
62214         * math/bug-nextafter.c: Support platforms without FP exceptions.
62215         * math/bug-nexttoward.c: Likewise.
62216         * math/test-fenv.c: Likewise.
62217         * math/test-misc.c: Likewise.
62218         * stdlib/bug-getcontext.c: Likewise.
62219
62220 2012-05-17  Andreas Jaeger  <aj@suse.de>
62221
62222         * manual/examples/search.c (critter_cmp): Change signature to
62223         avoid warnings.
62224         * manual/string.texi (Collation Functions): Likewise.
62225
62226 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62227
62228         * bits/types.h: Fold copyright years.
62229         * bits/typesizes.h: Likewise.
62230         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
62231         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
62232         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
62233         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
62234         * time/time.h: Likewise.
62235
62236 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
62237
62238         [BZ #208]
62239         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
62240         in instead of returning them.  Return void.
62241         (__libc_mallinfo): Accumulate over all arenas.
62242         (__malloc_stats): Adjust for change in int_mallinfo interface.
62243
62244 2012-05-16  Roland McGrath  <roland@hack.frob.com>
62245
62246         [BZ #10375]
62247         * configure.in (NM): Add AC_CHECK_TOOL for it.
62248         (libc_extra_cflags): New substituted variable.
62249         Check for -fstack-protector being used implicitly.
62250         * configure: Regenerated.
62251         * config.make.in (config-extra-cflags): New variable,
62252         gets @libc_extra_cflags@.
62253         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
62254
62255         [BZ #10375]
62256         * configure.in: Check for _FORTIFY_SOURCE being predefined.
62257         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
62258         * configure: Regenerated.
62259         * config.make.in (CPPUNDEFS): New substituted variable.
62260         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
62261         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
62262         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
62263
62264 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62265
62266         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
62267         (mq_attr): Use __syscall_slong_t.
62268
62269 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62270
62271         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
62272         Check __x86_64__ instead of __WORDSIZE.
62273         (_STAT_VER_LINUX): Likewise.
62274         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
62275         __syscall_ulong_t and __syscall_slong_t.
62276         (stat64): Likewise.
62277
62278 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62279
62280         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
62281
62282 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62283
62284         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
62285
62286 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62287
62288         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
62289         __syscall_ulong_t.
62290
62291         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
62292         include <bits/wordsize.h>.  Check __x86_64__ instead of
62293         __WORDSIZE.
62294         (greg_t): Use "__extension__ long long int" if __x86_64__ is
62295         defined.
62296         (mcontext_t): Replace "unsigned long" with "unsigned long long".
62297
62298         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
62299         include <bits/wordsize.h>.  Check __x86_64__ instead of
62300         __WORDSIZE.
62301         (user_regs_struct): Use "__extension__ unsigned long long"
62302         instead of "unsigned long" if __x86_64__ is defined.
62303         (user): Likewise.  Pad after pointer field if __ILP32__ is
62304         defined.
62305
62306 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
62307
62308         * configure.in (makeinfo): Require version 4.5 or later.  Allow
62309         versions 5 to 9.
62310         * configure: Regenerated.
62311         * manual/install.texi (texinfo): Increase version requirement to
62312         4.5 or later.
62313         * INSTALL: Regenerated.
62314
62315         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
62316
62317 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62318
62319         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
62320
62321         * sysdeps/x86_64/x32/ffs.c: New file.
62322
62323         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
62324         __syscall_ulong_t.
62325         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
62326         defined.  Use __syscall_ulong_t.
62327         (shminfo): Use __syscall_ulong_t.
62328         (shm_info): Likewise.
62329
62330         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
62331         __syscall_ulong_t.
62332
62333         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
62334         <bits/wordsize.h>.
62335         (msgqnum_t): Use __syscall_ulong_t.
62336         (msglen_t): Likewise.
62337         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
62338         __syscall_ulong_t.
62339
62340         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
62341         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62342
62343         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
62344
62345         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
62346         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
62347
62348         * sysvipc/sys/msg.h (msgbuf): Replace long int with
62349         __syscall_slong_t.
62350
62351         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
62352         include <bits/wordsize.h>.  Check __x86_64__ instead of
62353         __WORDSIZE.
62354
62355         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
62356         "unsigned long long int" if __x86_64__ is defined.
62357         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
62358
62359         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
62360         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62361         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
62362
62363         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
62364         <stdint.h>.
62365         (GET_PC): Cast to uintptr_t first.
62366         (GET_FRAME): Likewise.
62367         (GET_STACK): Likewise.
62368
62369         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
62370         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
62371         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
62372         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
62373         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
62374         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
62375         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
62376         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
62377         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
62378         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
62379         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
62380         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
62381         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
62382         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
62383         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
62384         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
62385         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
62386         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
62387         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
62388         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
62389         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
62390         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
62391         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
62392         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
62393         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
62394         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
62395         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
62396         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
62397         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
62398
62399 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
62400
62401         * Makerules (+depfiles): Also collect depfiles from .oS in
62402         $(extra-objs).
62403         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
62404         .oS, $(libnldbl-routines)).
62405
62406         * Makerules (native-compile-mkdep-flags): Define.
62407         * sunrpc/Makefile (extra-objs): Add $(addprefix
62408         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
62409         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
62410         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
62411         calling $(make-target-directory).
62412
62413 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62414
62415         * bits/types.h (__snseconds_t): Removed.
62416         * time/time.h (struct timespec): Replace __snseconds_t with
62417         __syscall_slong_t.
62418         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
62419         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
62420         Likewise.
62421         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62422         (__SNSECONDS_T_TYPE): Likewise.
62423         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62424         (__SNSECONDS_T_TYPE): Likewise.
62425         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62426         (__SNSECONDS_T_TYPE): Likewise.
62427
62428 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62429
62430         * sysdeps/mach/hurd/bits/typesizes.h
62431         (__SYSCALL_SLONG_TYPE): New macro.
62432         (__SYSCALL_ULONG_TYPE): Likewise.
62433
62434 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62435
62436         * bits/types.h (__syscall_slong_t): New type.
62437         (__syscall_ulong_t): Likewise.
62438
62439         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
62440         (__SYSCALL_ULONG_TYPE): Likewise.
62441         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62442         (__SYSCALL_SLONG_TYPE): Likewise.
62443         (__SYSCALL_ULONG_TYPE): Likewise.
62444         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62445         (__SYSCALL_SLONG_TYPE): Likewise.
62446         (__SYSCALL_ULONG_TYPE): Likewise.
62447         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62448         (__SYSCALL_SLONG_TYPE): Likewise.
62449         (__SYSCALL_ULONG_TYPE): Likewise.
62450
62451 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62452
62453         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
62454         Add sigaltstack-offsets.sym.
62455         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
62456         <sigaltstack-offsets.h>.
62457         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
62458         longjmp_msg pointer.
62459         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
62460         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
62461         signal stack.
62462         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
62463
62464 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62465
62466         * elf/stackguard-macros.h: Remove file.
62467         * sysdeps/generic/stackguard-macros.h: New file.
62468         * sysdeps/i386/stackguard-macros.h: Likewise.
62469         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
62470         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
62471         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
62472         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
62473         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
62474         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
62475         * sysdeps/x86_64/stackguard-macros.h: Likewise.
62476         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
62477         <elf/stackguard-macros.h>.
62478
62479         [BZ #14109]
62480         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
62481         __aligned__ in attribute.
62482         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
62483         (gregset_t): Likewise.
62484
62485 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62486
62487         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
62488         * sysdeps/x86_64/64/Implies-after: Here.  New file.
62489         * sysdeps/x86_64/x32/Implies-after: New file.
62490
62491 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62492
62493         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
62494         and access return value for _dl_profile_fixup.  Use R10_LP to
62495         load frame size.
62496
62497 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62498
62499         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
62500
62501 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62502
62503         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
62504         * sysdeps/x86_64/x32/sysdep.h: New file.
62505
62506 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62507
62508         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
62509         * sysdeps/x86_64/setjmp.S: Likewise.
62510
62511 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62512
62513         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
62514         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
62515         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
62516         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
62517         remove unused global constant.
62518
62519 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
62520
62521         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
62522         include of <not-cancel.h>.
62523
62524 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62525
62526         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
62527
62528 2012-05-15  Jeff Law  <law@redhat.com>
62529             Andreas Jaeger  <aj@suse.de>
62530
62531         [BZ #13594]
62532         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
62533         out from...
62534         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
62535         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
62536         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
62537         code changing __hst_map_handle.map.
62538
62539 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62540
62541         * configure.in (sysnames): Look for Implies-before and Implies-after
62542         files.
62543         * configure: Regenerated.
62544
62545 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62546
62547         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
62548         8-byte data alignment with LP_SIZE alignment.
62549
62550 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62551
62552         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
62553         into R10_LP.
62554
62555 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62556
62557         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
62558
62559 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62560
62561         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
62562         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
62563         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
62564         Likewise.
62565         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
62566
62567 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62568
62569         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
62570         (stackinfo_sub_sp): Likewise.
62571
62572 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62573
62574         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
62575         RAX_LP.
62576
62577 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62578
62579         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
62580         into R*_LP.
62581
62582 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62583
62584         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
62585         sizes into R*_LP.
62586
62587 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62588
62589         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
62590
62591 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62592
62593         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
62594         into R11_LP and load __x86_64_shared_cache_size_half into
62595         R8_LP.
62596
62597 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62598
62599         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
62600         R8_LP.
62601
62602 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62603
62604         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
62605         logb for POWER7.
62606         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
62607         logbf for POWER7.
62608         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
62609         logbl for POWER7.
62610         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
62611         powerpc32/power7/fpu/s_logb.c via #include.
62612         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
62613         powerpc32/power7/fpu/s_logbf.c via #include.
62614         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
62615         powerpc32/power7/fpu/s_logbl.c via #include.
62616
62617 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62618
62619         * README.libm: Remove file.
62620
62621 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62622
62623         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
62624         count for x32.  Use R*_LP and omit operand-size suffix.
62625
62626 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62627
62628         * shlib-versions: Move x86_64-.*-linux.* entries to ...
62629         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
62630         * sysdeps/x86_64/x32/shlib-versions: New file.
62631
62632 2012-05-14  Roland McGrath  <roland@hack.frob.com>
62633
62634         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
62635         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
62636         Use _dl_fatal_printf instead.
62637
62638 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62639
62640         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
62641         set if not set by the user.  Do not allow for being unset.
62642         * sysdeps/unix/sysv/linux/configure: Regenerated.
62643
62644 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62645
62646         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
62647         the `q' suffix from lea and replace .quad with ASM_ADDR.
62648
62649 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62650
62651         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
62652         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
62653         instead of $17.
62654         (PTR_DEMANGLE): Likewise.
62655
62656 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62657
62658         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
62659         (LP_OP): Likewise.
62660         (ASM_ADDR): Likewise.
62661         (RAX_LP): Likewise.
62662         (RBP_LP): Likewise.
62663         (RBX_LP): Likewise.
62664         (RCX_LP): Likewise.
62665         (RDI_LP): Likewise.
62666         (RSI_LP): Likewise.
62667         (RSP_LP): Likewise.
62668         (R8_LP): Likewise.
62669         (R9_LP): Likewise.
62670         (R10_LP): Likewise.
62671         (R10_LP): Likewise.
62672         (R11_LP): Likewise.
62673         (R12_LP): Likewise.
62674         (R13_LP): Likewise.
62675         (R14_LP): Likewise.
62676         (R15_LP): Likewise.
62677
62678 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62679
62680         * sysdeps/x86_64/x32/dl-machine.h: New file.
62681
62682 2012-05-14  Andreas Jaeger  <aj@suse.de>
62683
62684         * manual/Makefile (subdir): Remove export of subdir.
62685         (all): Remove target.
62686         (.PHONY): Remove all from list.
62687         (mkinstalldirs): Remove.
62688         (.PHONY): Remove installdirs from list.
62689         ($(inst_infodir)/libc.info): Use make-target-directory.
62690         (installdirs): Remove.
62691         (subdir_%): Remove.
62692         (glibc-targets): Remove.
62693         (lib): Remove.
62694         (stubs): Remove.
62695         ($(objpfx)stubs ../po/manual.pot): Remove.
62696         ($(objpfx)stamp%): Remove.
62697         (make-target-directory): Remove.
62698         (subdir_install): Remove.
62699         (routines): Remove.
62700         (aux): Remove.
62701         (sources): Remove.
62702         (objects): Remove.
62703         (headers): Remove.
62704
62705         [BZ #13750]
62706         * manual/.gitignore: Remove, it's not needed anymore.
62707         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
62708         all files in it.
62709         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
62710         directory.
62711         (texis): Renamed to $(objpfx)texis.
62712         (texis-path): New, contains path to generated files.
62713         (chapters.%): Use texis-path for complete path, add extra argument
62714         libc-texinfo.sh.
62715         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
62716         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
62717         (summary,texi, stamp-summary): Use complete path of
62718         files. Generate files in build dir.
62719         (dir-add.texi): Build in build dir.
62720         (libm-err.texi,stamp-libm-err): Likewise.
62721         (version.texi, stamp-version): Likewise.
62722         (.%c.texi): Likewise.
62723         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
62724         (mostlyclean): Remove target.
62725         (realclean): Remove target.
62726         (generated): Add new variable with contents from mostlyclean and
62727         realclean, remove entries duplicated in common-mostlyclean, add
62728         stamp-libm-err and stamp-version.
62729         (generated-dirs): Add libc directory.
62730         ($(inst_infodir)/libc.info): Install files from build dir.
62731
62732         * manual/install.texi (Configuring and compiling): Adjust since
62733         the info files are not part of the tar ball anymore.
62734
62735 2012-05-14  Andreas Jaeger  <aj@suse.de>
62736
62737         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
62738         variable.
62739
62740 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62741
62742         [BZ #13717]
62743         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
62744         to 2.2.0 where earlier.
62745         * sysdeps/unix/sysv/linux/configure: Regenerated.
62746         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
62747         Remove conditional code.
62748         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
62749         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
62750         Remove conditional code.
62751         [!__NR_lchown]: Likewise.
62752         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62753         [__NR_lchown]: Likewise.
62754         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
62755         comment referencing __ASSUME_LCHOWN_SYSCALL.
62756         * sysdeps/unix/sysv/linux/i386/sigaction.c
62757         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62758         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62759         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
62760         Remove conditional code.
62761         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
62762         (__protocol_available): Remove #if 0 code.
62763         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
62764         conditional code.
62765         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
62766         * sysdeps/unix/sysv/linux/kernel-features.h
62767         (__ASSUME_GETCWD_SYSCALL): Don't define.
62768         (__ASSUME_REALTIME_SIGNALS): Likewise.
62769         (__ASSUME_PREAD_SYSCALL): Likewise.
62770         (__ASSUME_PWRITE_SYSCALL): Likewise.
62771         (__ASSUME_POLL_SYSCALL): Likewise.
62772         (__ASSUME_LCHOWN_SYSCALL): Likewise.
62773         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
62774         non-SPARC.
62775         (__ASSUME_SIOCGIFNAME): Don't define.
62776         (__ASSUME_MSG_NOSIGNAL): Likewise.
62777         (__ASSUME_SENDFILE): Define unconditionally.
62778         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
62779         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
62780         conditional code.
62781         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
62782         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
62783         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
62784         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62785         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
62786         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
62787         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
62789         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62790         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
62792         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62793         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
62795         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62796         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
62798         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62799         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
62801         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62802         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
62804         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62805         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
62807         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62808         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
62810         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62811         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62812         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
62813         Remove conditional code.
62814         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62815         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
62816         Remove conditional code.
62817         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62818         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
62819         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
62820         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
62821         Remove conditional code.
62822         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62823         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
62824         Remove conditional code.
62825         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62826         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
62827         Remove conditional code.
62828         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62829         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
62830         Remove conditional code.
62831         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62832         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
62833         Remove conditional code.
62834         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62835         * sysdeps/unix/sysv/linux/sh/pwrite64.c
62836         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62837         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62838         * sysdeps/unix/sysv/linux/sigaction.c
62839         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62840         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62841         * sysdeps/unix/sysv/linux/sigpending.c
62842         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62843         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62844         * sysdeps/unix/sysv/linux/sigprocmask.c
62845         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62846         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62847         * sysdeps/unix/sysv/linux/sigsuspend.c
62848         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62849         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62850         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
62851         (__libc_missing_rt_sigs): Remove.
62852         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
62853         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
62854         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
62855         Remove conditional code.
62856         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
62857         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
62858         return 1.
62859         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
62860         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
62861         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
62862         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
62863
62864 2012-05-14  Andreas Jaeger  <aj@suse.de>
62865
62866         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
62867         it's not used in glibc.
62868         (__coshm1): Likewise.
62869         (__acosh1p): Likewise.
62870         (__sgn): Likewise.
62871
62872         * manual/string.texi (Copying and Concatenation): Add missing
62873         variable in concat example.
62874         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
62875
62876 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62877
62878         [BZ #14103]
62879         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
62880         __builtin_clzl with __builtin_clzll.
62881
62882 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62883
62884         [BZ #14104]
62885         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
62886         libc_freeres_ptr.
62887
62888 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
62889
62890         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
62891         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
62892         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
62893         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
62894
62895 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
62896
62897         * NEWS: Update ia64 info.
62898
62899 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
62900
62901         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
62902         used as bcopy.
62903
62904 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
62905
62906         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
62907         * sysdeps/unix/syscalls.list (dup3): Likewise.
62908         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
62909         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
62910
62911 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
62912
62913         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
62914         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
62915
62916 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
62917
62918         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
62919         thread pointer.
62920         (TLS_IE): Use mov/add instead of movq/addq to load thread
62921         pointer.
62922         (TLS_GD_PREFIX): New.
62923         (TLS_GD): Use it.
62924
62925 2012-05-11  David S. Miller  <davem@davemloft.net>
62926
62927         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
62928         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
62929         (_FPU_SETCW): Likewise.
62930
62931 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
62932
62933         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
62934         is 32-byte aligned.
62935
62936 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
62937
62938         [BZ #11837]
62939         * iconvdata/gb18030.c: Update tables.
62940         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
62941         characters specially.
62942         (BODY for TO_LOOP): Add encoding of missing ranges.
62943
62944 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
62945
62946         [BZ #13673]
62947         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
62948         * sysdeps/mach/hurd/dup3.c: Likewise.
62949         * sysdeps/mach/hurd/readlinkat.c: Likewise.
62950         * sysdeps/powerpc/memmove.c:: Likewise.
62951
62952 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
62953
62954         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
62955         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
62956
62957 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
62958
62959         * elf/elf.h (R_X86_64_RELATIVE64): New.
62960         (R_X86_64_NUM): Updated.
62961         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
62962         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
62963         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
62964         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
62965         tst-quad1pie tst-quad2pie
62966         (modules-names): Add tst-quadmod1 tst-quadmod2.
62967         ($(objpfx)tst-quad1): New dependency.
62968         ($(objpfx)tst-quad2): Likewise.
62969         ($(objpfx)tst-quad1pie): Likewise.
62970         ($(objpfx)tst-quad2pie): Likewise.
62971         * sysdeps/x86_64/tst-quad1.c: New file.
62972         * sysdeps/x86_64/tst-quad1pie.c: New file.
62973         * sysdeps/x86_64/tst-quad2.c: Likewise.
62974         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
62975         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
62976         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
62977         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
62978         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
62979
62980 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62981
62982         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
62983         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
62984         * streams/stropts.h (t_scalar_t): Define type.
62985
62986         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
62987         (_PATH_PRESERVE): Set to "/var/lib".
62988         (_PATH_RWHODIR): Set to "/var/spool/rwho".
62989
62990         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
62991         instead of int.
62992
62993         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
62994         if __dir_mkfile succeeded.
62995
62996         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
62997         checking for _hurd_dtablesize.  Unlock it right after having
62998         finished _hurd_dtable allocation.
62999
63000 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63001
63002         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
63003         * sysdeps/mach/hurd/configure: Regenerated.
63004         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
63005         special-casing to...
63006         * sysdeps/gnu/configure.in: ... this new file.
63007         * sysdeps/unix/sysv/linux/configure: Regenerated.
63008         * sysdeps/gnu/configure: New generated file.
63009
63010         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
63011         for Linux: use nsec instead of usec, as well as:
63012         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
63013         members of type struct timespec.
63014         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
63015         New macros.
63016         (struct stat64): Likewise.
63017         (_STATBUF_ST_NSEC): New macro.
63018         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
63019
63020         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
63021         __strtoul_internal rather than strtoul.
63022
63023 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63024
63025         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
63026         and reject them.
63027
63028 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63029
63030         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
63031         which preserves existing values.
63032         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
63033
63034 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63035
63036         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
63037         TIMEOUT values.  Return EINVAL for NFDS values either negative or
63038         greater than FD_SETSIZE.
63039
63040 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63041
63042         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
63043         allocated, call __vm_protect to finish enabling the existing space, and
63044         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
63045         allocate the remainder.
63046
63047 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63048
63049         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
63050         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
63051
63052 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63053
63054         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
63055         sysdeps/mach/hurd/readlink.c.
63056
63057         * posix/tst-sysconf.c (posix_options): Only use
63058         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
63059         _POSIX_SYNCHRONIZED_IO when they are defined
63060         * sysdeps/mach/hurd/bits/posix_opt.h:
63061         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
63062         (_XOPEN_REALTIME): Undefine macro.
63063         (_XOPEN_REALTIME_THREADS): Undefine macro.
63064         (_XOPEN_SHM): Undefine macro.
63065         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
63066         macro to -1.
63067         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
63068         macro to -1.
63069         (_POSIX_ASYNC_IO): Undefine macro.
63070         (_POSIX_PRIORITIZED_IO): Undefine macro.
63071         (_POSIX_SPIN_LOCKS): Define macro to -1.
63072
63073         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
63074         SA_NODEFER, SA_RESETHAND.
63075         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
63076         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
63077         F_DUPFD_CLOEXEC.
63078
63079 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63080
63081         * elf/Makefile (pldd-modules): Define unconditionally.
63082
63083 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63084
63085         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
63086
63087 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63088
63089         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
63090         Return ENOENT when name is empty.
63091         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
63092
63093 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63094
63095         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
63096
63097         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
63098
63099 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63100
63101         Fix mlock in all cases except non-readable pages.
63102         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
63103         instead of VM_PROT_ALL as parameter to __vm_wire function.
63104
63105         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
63106         (__mkdir): When path is `/', just fail with EEXIST.
63107         * sysdeps/mach/hurd/mkdirat.c: Likewise.
63108
63109 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63110
63111         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
63112         <sys/uio.h> (for writev).
63113         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
63114         and <sys/param.h> (for MIN).
63115
63116 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63117
63118         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
63119         REQUESTED_TIME.  Properly set the remaining time and return EINTR
63120         if interrupted.
63121
63122 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63123
63124         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
63125         Depend on against $(link-rpcuserlibs).
63126
63127 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63128
63129         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
63130         (__libc_stack_end): Do not use attribute_relro.
63131         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
63132         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
63133         to libthread-provided value.
63134         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
63135         attribute_relro.
63136
63137 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63138
63139         [BZ #3748]
63140         * bits/libc-lock.h (__libc_once_get): New macro.
63141         * sysdeps/mach/bits/libc-lock.h: Likewise.
63142         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
63143         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
63144         instead of using implementation details.
63145
63146         * libio/fileops.c: Unconditionally include <kernel-features.h>.
63147         * libio/freopen.c: Likewise.
63148         * libio/freopen64.c: Likewise.
63149         * misc/syslog.c: Likewise.
63150         * nscd/connections.c: Likewise.
63151         * nscd/netgroupcache.c: Likewise.
63152         * sysdeps/posix/getcwd.c: Likewise.
63153
63154 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63155
63156         * math/w_ilogbf.c: Add #include <limits.h>.
63157
63158 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63159
63160         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
63161         path instead of returning without unlocking.
63162
63163         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
63164         immediate-write ioctls.
63165         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
63166
63167 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63168
63169         * sysdeps/mach/hurd/i386/init-first.c (init): Use
63170         __builtin_frame_address instead of making assumptions about the
63171         location of the return address relative to DATA.  Force early load of
63172         the return address.
63173         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
63174         __builtin_frame_address.
63175
63176         dup3 for GNU Hurd.
63177         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
63178         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
63179         implement dup3 and do some further code clean-ups.
63180         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
63181         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
63182
63183 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63184
63185         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
63186
63187         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
63188         HURD_CRITICAL_END around holding _hurd_dtable_lock.
63189         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
63190         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
63191         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
63192         d->port.lock.
63193
63194         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
63195         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
63196         when handler == SIG_ERR, not when handler != SIG_ERR.
63197
63198 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63199
63200         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
63201         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
63202         definitions.
63203
63204         accept4 for GNU Hurd.
63205         * include/sys/socket.h (__libc_accept4): New prototype.
63206         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
63207         to implement __libc_accept4.
63208         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
63209         __libc_accept4.
63210         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
63211
63212         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
63213         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
63214         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
63215         signal-defines.sym.
63216
63217 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63218
63219         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
63220
63221 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63222
63223         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
63224         assertion on O_CLOEXEC flag.
63225         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
63226         * hurd/intern-fd.c: Likewise.
63227         * hurd/port2fd.c: Likewise.
63228
63229 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63230
63231         [BZ #3906]
63232         * bits/in.h (IPV6_PKTINFO): Define new macro.
63233         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
63234
63235 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63236
63237         [BZ #13954]
63238         [BZ #13955]
63239         [BZ #13956]
63240         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
63241         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
63242         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
63243         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
63244         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
63245         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
63246         * math/libm-test.inc (logb_test) : Additional logb tests.
63247
63248 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
63249             Andreas Jaeger  <aj@suse.de>
63250
63251         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
63252         * configure: Regenerated.
63253         * config.h.in (LINK_OBSOLETE_RPC): New macro.
63254         * config.make.in (link-obsolete-rpc): New substituted variable.
63255         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
63256         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
63257         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63258         (shared-only-routines): Don't set it under [link-obsolete-rpc],
63259         so that libc.a contains the symbols.
63260         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63261         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
63262         * sunrpc/auth_none.c: Likewise.
63263         * sunrpc/auth_unix.c: Likewise.
63264         * sunrpc/authdes_prot.c: Likewise.
63265         * sunrpc/authuxprot.c: Likewise.
63266         * sunrpc/clnt_gen.c: Likewise.
63267         * sunrpc/clnt_perr.c: Likewise.
63268         * sunrpc/clnt_raw.c: Likewise.
63269         * sunrpc/clnt_simp.c: Likewise.
63270         * sunrpc/clnt_tcp.c: Likewise.
63271         * sunrpc/clnt_udp.c: Likewise.
63272         * sunrpc/clnt_unix.c: Likewise.
63273         * sunrpc/des_crypt.c: Likewise.
63274         * sunrpc/des_soft.c: Likewise.
63275         * sunrpc/get_myaddr.c: Likewise.
63276         * sunrpc/key_call.c: Likewise.
63277         * sunrpc/key_prot.c: Likewise.
63278         * sunrpc/netname.c: Likewise.
63279         * sunrpc/pm_getmaps.c: Likewise.
63280         * sunrpc/pm_getport.c: Likewise.
63281         * sunrpc/pmap_clnt.c: Likewise.
63282         * sunrpc/pmap_prot.c: Likewise.
63283         * sunrpc/pmap_prot2.c: Likewise.
63284         * sunrpc/pmap_rmt.c: Likewise.
63285         * sunrpc/publickey.c: Likewise.
63286         * sunrpc/rpc_cmsg.c: Likewise.
63287         * sunrpc/rpc_common.c: Likewise.
63288         * sunrpc/rpc_dtable.c: Likewise.
63289         * sunrpc/rpc_prot.c: Likewise.
63290         * sunrpc/rpc_thread.c: Likewise.
63291         * sunrpc/rtime.c: Likewise.
63292         * sunrpc/svc.c: Likewise.
63293         * sunrpc/svc_auth.c: Likewise.
63294         * sunrpc/svc_raw.c: Likewise.
63295         * sunrpc/svc_run.c: Likewise.
63296         * sunrpc/svc_tcp.c: Likewise.
63297         * sunrpc/svc_udp.c: Likewise.
63298         * sunrpc/svc_unix.c: Likewise.
63299         * sunrpc/svcauth_des.c: Likewise.
63300         * sunrpc/xcrypt.c: Likewise.
63301         * sunrpc/xdr.c: Likewise.
63302         * sunrpc/xdr_array.c: Likewise.
63303         * sunrpc/xdr_float.c: Likewise.
63304         * sunrpc/xdr_intXX_t.c: Likewise.
63305         * sunrpc/xdr_mem.c: Likewise.
63306         * sunrpc/xdr_rec.c: Likewise.
63307         * sunrpc/xdr_ref.c: Likewise.
63308         * sunrpc/xdr_sizeof.c: Likewise.
63309         * sunrpc/xdr_stdio.c: Likewise.
63310
63311 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63312
63313         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
63314         change.  Update copyright years.
63315
63316 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63317
63318         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
63319
63320 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
63321             Joseph Myers  <joseph@codesourcery.com>
63322             Paul Pluzhnikov  <ppluzhnikov@google.com>
63323
63324         [BZ #14012]
63325         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
63326         requiring rpcgen.
63327         [cross-compiling] (extra-libs): Likewise.
63328         [cross-compiling] (extra-libs-others): Likewise.
63329         [cross-compiling] (librpcsvc-routines): Likewise.
63330         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
63331         [cross-compiling] (omit-deps): Likewise.
63332         (sunrpc-CPPFLAGS): New variable.
63333         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
63334         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
63335         (cross-rpcgen-objs): New variable.
63336         (extra-objs): Append $(cross-rpcgen-objs).
63337         ($(cross-rpcgen-objs)): New rule.
63338         ($(objpfx)cross-rpcgen): Likewise.
63339         (rpcgen-cmd): Define to use $(built-program-file).  Expand
63340         comment.
63341         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
63342         ($(objpfx)x%.stmp): Likewise.
63343         * sunrpc/proto.h [IS_IN_build] (_): Define.
63344         [IS_IN_build] (_libc_intl_domainname): Likewise.
63345
63346 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63347
63348         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
63349         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
63350         and R_X86_64_TPOFF64.
63351
63352 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63353
63354         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
63355         sysdeps/unix/sysv/syscalls.list.
63356         (stime): Likewise.
63357         (utime): Likewise.
63358         * sysdeps/unix/sysv/syscalls.list: Remove file.
63359
63360 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63361
63362         [BZ #3440]
63363         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
63364         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
63365         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
63366         (__LC_IDENTIFICATION): Make these macros useful in #if
63367         expressions, as required by C99.
63368
63369 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
63370
63371         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
63372         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
63373         after this.
63374
63375 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
63376
63377         * stdlib/longlong.h: Updated from GCC.
63378
63379 2012-05-09  Andreas Jaeger  <aj@suse.de>
63380
63381         * nscd/nscd.c (run_modes): Make named enum, reorder so that
63382         default is first entry.
63383         (run_mode): Set type.
63384         (main): Remove informal message about syslog.
63385         (options): Fix typo.
63386
63387         [BZ #14053]
63388         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
63389         to asm.
63390         (lrint): Likewise.
63391         (llrintf): Likewise.
63392         (llrint): Likewise.
63393         (rint): Likewise.
63394         (rintf): Likewise.
63395         (nearbyint): Likewise.
63396         (nearbyintf): Likewise.
63397
63398 2012-05-09  Andreas Jaeger  <aj@suse.de>
63399             Pedro Alves  <palves@redhat.com>
63400
63401         * nscd/nscd.c (run_mode): Use enum.
63402         (main): Cleanup coding style issue.
63403
63404 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
63405             Andreas Jaeger  <aj@suse.de>
63406
63407         * nscd/nscd.c (go_background): Replaced with...
63408         (run_mode): ... this.
63409         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
63410         (options): Add -F --foreground.
63411         (main): Implement it.
63412         (parse_opt): Parse it.
63413
63414 2012-05-09  Andreas Jaeger  <aj@suse.de>
63415
63416         [BZ #14083]
63417         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
63418         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
63419         -Wconversion warning.
63420         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
63421         Likewise.
63422
63423 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
63424
63425         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
63426         == 0.
63427         (LC_ALL): Use macro-int-constant.
63428         (LC_COLLATE): Likewise.
63429         (LC_CTYPE): Likewise.
63430         (LC_MESSAGES): Likewise.
63431         (LC_MONETARY): Likewise.
63432         (LC_NUMERIC): Likewise.
63433         (LC_TIME): Likewise.
63434         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
63435         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63436         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63437         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
63438         Specify type.
63439         [C99-based standards] (float_t): Expect type.
63440         [C99-based standards] (double_t): Expect type.
63441         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
63442         type.
63443         [C99-based standards] (HUGE_VALL): Likewise.
63444         [C99-based standards] (INFINITY): Likewise.
63445         [C99-based standards] (NAN): Likewise.
63446         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
63447         [C99-based standards] (FP_NAN): Likewise.
63448         [C99-based standards] (FP_NORMAL): Likewise.
63449         [C99-based standards] (FP_SUBNORMAL): Likewise.
63450         [C99-based standards] (FP_ZERO): Likewise.
63451         [C99-based standards] (FP_FAST_FMA): Use
63452         optional-macro-int-constant.  Specify type.  Require == 1.
63453         [C99-based standards] (FP_FAST_FMAF): Likewise.
63454         [C99-based standards] (FP_FAST_FMAL): Likewise.
63455         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
63456         [C99-based standards] (FP_ILOGBNAN): Likewise.
63457         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
63458         Specify type.
63459         [C99-based standards] (MATH_ERREXCEPT): Likewise.
63460         [C99-based standards] (math_errhandling): Specify type.
63461         [ISO99 || ISO11] (signgam): Do not allow.
63462         [non-C99-based standards] (copysignf): Do not allow.
63463         [non-C99-based standards] (exp2f): Likewise.
63464         [non-C99-based standards] (log2f): Likewise.
63465         [non-C99-based standards] (modff): Allow.
63466         [non-C99-based standards] (erff): Do not allow.
63467         [non-C99-based standards] (erfcf): Likewise.
63468         [non-C99-based standards] (gammaf): Likewise.
63469         [non-C99-based standards] (hypotf): Likewise.
63470         [non-C99-based standards] (j0f): Likewise.
63471         [non-C99-based standards] (j1f): Likewise.
63472         [non-C99-based standards] (jnf): Likewise.
63473         [non-C99-based standards] (lgammaf): Likewise.
63474         [non-C99-based standards] (tgammaf): Likewise.
63475         [non-C99-based standards] (y0f): Likewise.
63476         [non-C99-based standards] (y1f): Likewise.
63477         [non-C99-based standards] (ynf): Likewise.
63478         [non-C99-based standards] (isnanf): Likewise.
63479         [non-C99-based standards] (acoshf): Likewise.
63480         [non-C99-based standards] (asinhf): Likewise.
63481         [non-C99-based standards] (atanhf): Likewise.
63482         [non-C99-based standards] (cbrtf): Likewise.
63483         [non-C99-based standards] (expm1f): Likewise.
63484         [non-C99-based standards] (ilogbf): Likewise.
63485         [non-C99-based standards] (log1pf): Likewise.
63486         [non-C99-based standards] (logbf): Likewise.
63487         [non-C99-based standards] (nextafterf): Likewise.
63488         [non-C99-based standards] (remainderf): Likewise.
63489         [non-C99-based standards] (rintf): Likewise.
63490         [non-C99-based standards] (scalbf): Likewise.
63491         [non-C99-based standards] (copysignl): Likewise.
63492         [non-C99-based standards] (exp2l): Likewise.
63493         [non-C99-based standards] (log2l): Likewise.
63494         [non-C99-based standards] (modfl): Allow.
63495         [non-C99-based standards] (erfl): Do not allow.
63496         [non-C99-based standards] (erfcl): Likewise.
63497         [non-C99-based standards] (gammal): Likewise.
63498         [non-C99-based standards] (hypotl): Likewise.
63499         [non-C99-based standards] (j0l): Likewise.
63500         [non-C99-based standards] (j1l): Likewise.
63501         [non-C99-based standards] (jnl): Likewise.
63502         [non-C99-based standards] (lgammal): Likewise.
63503         [non-C99-based standards] (tgammal): Likewise.
63504         [non-C99-based standards] (y0l): Likewise.
63505         [non-C99-based standards] (y1l): Likewise.
63506         [non-C99-based standards] (ynl): Likewise.
63507         [non-C99-based standards] (isnanl): Likewise.
63508         [non-C99-based standards] (acoshl): Likewise.
63509         [non-C99-based standards] (asinhl): Likewise.
63510         [non-C99-based standards] (atanhl): Likewise.
63511         [non-C99-based standards] (cbrtl): Likewise.
63512         [non-C99-based standards] (expm1l): Likewise.
63513         [non-C99-based standards] (ilogbl): Likewise.
63514         [non-C99-based standards] (log1pl): Likewise.
63515         [non-C99-based standards] (logbl): Likewise.
63516         [non-C99-based standards] (nextafterl): Likewise.
63517         [non-C99-based standards] (remainderl): Likewise.
63518         [non-C99-based standards] (rintl): Likewise.
63519         [non-C99-based standards] (scalbl): Likewise.
63520         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63521         [non-C99-based standards] (FP_*): Do not allow.
63522         [C99-based standards] (FP_*): Change to
63523         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63524         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63525         allow.
63526         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
63527         (SIG_ERR): Likewise.
63528         [X/Open-based standards] (SIG_HOLD): Likewise.
63529         (SIG_IGN): Likewise.
63530         (SIGABRT): Use macro-int-constant.  Specify type.  Require
63531         positive value.
63532         (SIGFPE): Likewise.
63533         (SIGILL): Likewise.
63534         (SIGINT): Likewise.
63535         (SIGSEGV): Likewise.
63536         (SIGTER): Likewise.
63537         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
63538         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
63539         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
63540         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
63541         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
63542         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
63543         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
63544         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
63545         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
63546         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
63547         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
63548         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
63549         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
63550         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
63551         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
63552         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
63553         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
63554         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
63555         [X/Open-based standards] (SIGTRAP): Likewise.
63556         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
63557         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
63558         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
63559         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
63560         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63561         allow.
63562
63563 2012-05-08  Ian Wienand  <ianw@vmware.com>
63564
63565         [BZ #14080]
63566         * time/tzset.c (__tzset_parse_tz): Update default rules for
63567         daylight time changes in the Energy Policy Act of 2005.
63568
63569 2012-05-09  Andreas Jaeger  <aj@suse.de>
63570
63571         [BZ #13983]
63572         * elf/ldconfig.c (parse_conf): Change string to make clear that
63573         ldconfig only issued a warning if ld.so.conf does not exist.
63574
63575 2012-05-08  David S. Miller  <davem@davemloft.net>
63576
63577         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
63578         movxtod instead of popping the value on the stack.
63579
63580         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63581
63582 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
63583
63584         * config.h.in: Add HAVE_ARM_PCS_VFP.
63585
63586 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
63587
63588         [BZ #13979]
63589         * include/features.h: Warn if user requests __FORTIFY_SOURCE
63590         checking but the checks are disabled for any reason.
63591
63592 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
63593
63594         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
63595         and ELF64_R_TYPE with ELFW(R_TYPE).
63596
63597 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
63598
63599         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
63600         (ulimit): Likewise.
63601
63602         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
63603         (settimeofday): Likewise.
63604
63605 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
63606
63607         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
63608         a struct th_u2 inside the union, and move tu_block/tu_code into
63609         a new th_u3 union of tu_block/tu_code inside of that.  Move
63610         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
63611         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
63612         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
63613         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
63614         (th_stuff): Change to th_u1.tu_stuff.
63615         (th_data): Define.
63616         (th_msg): Change to th_u1.th_u2.tu_data.
63617
63618 2012-05-07  David S. Miller  <davem@davemloft.net>
63619
63620         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63621
63622         [BZ #14074]
63623         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
63624         (SETUP_PIC_REG): Use it.
63625         (SETUP_PIC_REG_LEAF): Use it.
63626
63627 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
63628
63629         [BZ #13885]
63630         [BZ #13923]
63631         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63632         USE_AS_EXPM1L.
63633         (EXPL_FINITE): Likewise.
63634         (FLDLOG): Likewise.
63635         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63636         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63637         e_expl.S.
63638         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63639         USE_AS_EXPM1L.
63640         (EXPL_FINITE): Likewise.
63641         (FLDLOG): Likewise.
63642         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63643         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63644         e_expl.S.
63645         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
63646         test of -max_value argument for long double.
63647         * sysdeps/i386/fpu/libm-test-ulps: Update.
63648         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63649
63650 2012-05-06  David S. Miller  <davem@davemloft.net>
63651
63652         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
63653         quad soft-float symbols whose references which are compiler
63654         generated.
63655         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
63656
63657 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
63658
63659         [BZ #13884]
63660         [BZ #13914]
63661         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63662         USE_AS_EXP10L.
63663         (EXPL_FINITE): Likewise.
63664         (FLDLOG): Likewise.
63665         (c0): Likewise.
63666         (c1): Likewise.
63667         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63668         Adjust comments for base varying.
63669         (__expl_finite): Change alias to EXPL_FINITE.
63670         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
63671         e_expl.S.
63672         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
63673         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
63674         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
63675         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
63676         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63677         USE_AS_EXP10L.
63678         (EXPL_FINITE): Likewise.
63679         (FLDLOG): Likewise.
63680         (c0): Likewise.
63681         (c1): Likewise.
63682         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63683         Adjust comments for base varying.
63684         (__expl_finite): Change alias to EXPL_FINITE.
63685         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
63686         tests for bugs.
63687         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63688
63689         [BZ #14064]
63690         * math/libm-test.inc (check_float_internal): Correct ulp
63691         calculation for subnormal expected results.
63692
63693 2012-05-06  Andreas Jaeger  <aj@suse.de>
63694
63695         * Makeconfig (+math-flags): New, set to -frounding-math.
63696         (+cflags): Add +math-flags so that all of glibc gets compiled with
63697         it.
63698
63699         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
63700
63701 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
63702
63703         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
63704         Disable one test.
63705
63706         [BZ #13787]
63707         [BZ #13922]
63708         [BZ #14036]
63709         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
63710         (__ieee754_expl): Allow for and saturate large arguments.
63711         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
63712         (u_threshold): Likewise.
63713         (__exp): Call __ieee754_exp before checking for overflow and
63714         underflow.
63715         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
63716         (u_threshold): Likewise.
63717         (__expf): Call __ieee754_expf before checking for overflow and
63718         underflow.
63719         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
63720         (u_threshold): Likewise.
63721         (__expl): Call __ieee754_expl before checking for overflow and
63722         underflow.
63723         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
63724         (__ieee754_expl): Allow for and saturate large arguments.
63725         * math/libm-test.inc (exp_test): Add another test.  Do not allow
63726         missing overflow exception on overflow.
63727         (expm1_test): Do not allow missing overflow exception on overflow.
63728
63729         * sysdeps/i386/fpu/e_expl.c: Move to ...
63730         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
63731         rather than using inline asm.
63732         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
63733         * sysdeps/x86_64/fpu/e_expl.S: Copy from
63734         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
63735
63736         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
63737         (nice): Likewise.
63738         (poll): Likewise.
63739         (signal): Likewise.
63740         (time): Likewise.
63741         (times): Likewise.
63742
63743 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63744
63745         * sysdeps/unix/syscalls.list (adjtime): Add entry from
63746         sysdeps/unix/common/syscalls.list.
63747         (fchmod): Likewise.
63748         (fchown): Likewise.
63749         (ftruncate): Likewise.
63750         (getrusage): Likewise.
63751         (gettimeofday): Likewise.
63752         (setpgid): Likewise.
63753         (setregid): Likewise.
63754         (setreuid): Likewise.
63755         (sigaction): Likewise.
63756         (truncate): Likewise.
63757         (vhangup): Likewise.
63758         * sysdeps/unix/common/syscalls.list: Remove file.
63759         * sysdeps/unix/bsd/Implies: Don't include unix/common.
63760         * sysdeps/unix/sysv/linux/Implies: Likewise.
63761
63762 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
63763
63764         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
63765         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
63766         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
63767         Moved to ...
63768         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
63769         Here.
63770         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
63771         to ...
63772         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
63773         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
63774         to ...
63775         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
63776         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
63777         to ...
63778         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
63779         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
63780         to ...
63781         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
63782         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
63783         to ...
63784         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
63785         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
63786         to ...
63787         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
63788         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
63789         to ...
63790         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
63791         Here.
63792         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
63793         to ...
63794         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
63795         Here.
63796         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
63797         to ...
63798         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
63799         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
63800         Moved to ...
63801         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
63802         Here.
63803         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
63804         to ...
63805         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
63806
63807 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63808
63809         * sysdeps/unix/common/bits/dirent.h: Remove file.
63810         * sysdeps/unix/common/bits/fcntl.h: Likewise.
63811
63812         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
63813         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
63814         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
63815         * sysdeps/unix/bsd/isatty.c: Likewise.
63816         * sysdeps/unix/bsd/tcdrain.c: Likewise.
63817         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
63818         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
63819
63820 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63821
63822         [BZ #13563]
63823         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
63824         long double comparison inaccuracies.
63825         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
63826         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
63827
63828 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
63829
63830         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
63831         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
63832
63833 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63834
63835         [BZ #14049]
63836         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
63837         nonzero digits before rounding a hex value.
63838         * stdlib/tst-strtod.c (tests): Add another test.
63839
63840 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
63841
63842         * sysdeps/s390/fpu/libm-test-ulps: Update.
63843
63844 2012-05-03  Andreas Jaeger  <aj@suse.de>
63845
63846         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
63847         does not get optimized out.
63848         (malloc_opt_barrier): New.
63849
63850 2012-05-03  Andreas Jaeger  <aj@suse.de>
63851             Roland McGrath  <roland@hack.frob.com>
63852
63853         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
63854         intermediate file deletion.
63855         (generated): Add .symlist files.
63856
63857 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
63858
63859         [BZ #13775]
63860         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
63861         Redirect under this condition.
63862         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
63863         [__USE_GNU] (__dprintf_chk): Not under this condition.
63864         [__USE_GNU] (__vdprintf_chk): Likewise.
63865         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
63866         under this condition.
63867         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
63868         [__USE_XOPEN2K8] (dprintf): Define under this condition.
63869         [__USE_XOPEN2K8] (vdprintf): Likewise.
63870         [__USE_GNU] (__dprintf_chk): Not under this condition.
63871         [__USE_GNU] (__vdprintf_chk): Likewise.
63872         [__USE_GNU] (dprintf): Likewise.
63873         [__USE_GNU] (vdprintf): Likewise.
63874
63875 2012-05-03  Roland McGrath  <roland@hack.frob.com>
63876
63877         * elf/Makefile (common-generated): Set this instead of generated for
63878         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
63879         $(all-built-dso)-derived lists.
63880
63881 2012-05-03  Andreas Jaeger  <aj@suse.de>
63882
63883         * sysdeps/i386/fpu/libm-test-ulps: Update.
63884
63885         * FAQ: Removed.
63886         * FAQ.in: Likewise.
63887         * scripts/gen-FAQ.pl: Likewise.
63888         * manual/install.texi (Installation): Point to online location of
63889         FAQ.
63890         * Makefile (files-for-dist): Remove FAQ.
63891         (FAQ): Remove.
63892
63893 2012-05-02  Allan McRae  <allan@archlinux.org>
63894
63895         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
63896         (LDFLAGS-reldepmod5.so): Likewise.
63897         (LDFLAGS-reldep6mod1.so): Likewise.
63898         (LDFLAGS-reldep6mod4.so): Likewise.
63899         (LDFLAGS-reldep8mod3.so): Likewise.
63900         (LDFLAGS-unload4mod1.so): Likewise.
63901         (LDFLAGS-unload4mod2.so): Likewise.
63902         (LDFLAGS-tst-initorder): Likewise.
63903         (LDFLAGS-tst-initordera2.so): Likewise.
63904         (LDFLAGS-tst-initordera3.so): Likewise.
63905         (LDFLAGS-tst-initordera4.so): Likewise.
63906         (LDFLAGS-tst-initorderb2.so): Likewise.
63907         (LDFLAGS-noload): Likewise.
63908         (LDFLAGS-next): Likewise.
63909         (LDFLAGS-order2mod1.so): Likewise.
63910         (LDFLAGS-order2mod2.so): Likewise.
63911         (LDFLAGS-tst-initorder2): Likewise.
63912         (LDFLAGS-tst-initorder2a.so): Likewise.
63913         (LDFLAGS-tst-initorder2b.so): Likewise.
63914         (LDFLAGS-tst-initorder2c.so): Likewise.
63915         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
63916
63917 2012-05-02  David S. Miller  <davem@davemloft.net>
63918
63919         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63920
63921 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
63922
63923         [BZ #14055]
63924         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
63925
63926 2012-05-02  Andreas Jaeger  <aj@suse.de>
63927
63928         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
63929         since we manipulate rounding mode.
63930         (CPPFLAGS-test-idouble.c): Likewise.
63931         (CPPFLAGS-test-ifloat.c): Likewise.
63932         (CFLAGS-test-ldouble.c): Likewise.
63933         (CFLAGS-test-double.c): Likewise.
63934         (CFLAGS-test-float.c): Likewise.
63935         (CFLAGS-test-misc.c): Likewise.
63936         (CFLAGS-test-test-fenv.c): Likewise.
63937
63938 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63939
63940         [BZ #2550]
63941         [BZ #2570]
63942         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
63943         comparisons to determine direction to adjust input.
63944
63945 2012-05-01  Roland McGrath  <roland@hack.frob.com>
63946
63947         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
63948         output to the target.
63949
63950         * scripts/localplt.awk: New file.
63951         * elf/Makefile ($(objpfx)check-localplt): Target removed.
63952         (check-localplt-CFLAGS): Variable removed.
63953         ($(all-built-dso:=.jmprel)): New static pattern rule.
63954         (generated): Add those targets.
63955         (localplt-built-dso): New variable.
63956         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
63957
63958         * elf/check-localplt.c: File removed.
63959
63960         * scripts/check-execstack.awk: New file.
63961         * elf/Makefile ($(objpfx)check-execstack): Target removed.
63962         (check-execstack-CFLAGS): Variable removed.
63963         ($(objpfx)check-execstack.h): Target removed.
63964         ($(objpfx)execstack-default): New target.
63965         (generated): Add that instead of check-execstack.h.
63966         ($(all-built-dso:=.phdr)): New static pattern rule.
63967         (generated): Add those targets.
63968         * elf/check-execstack.c: File removed.
63969
63970         * scripts/check-textrel.awk: New file.
63971         * elf/Makefile ($(objpfx)check-textrel): Target removed.
63972         (check-textrel-CFLAGS): Variable removed.
63973         (all-built-dso): Use := to define.o
63974         ($(all-built-dso:=.dyn)): New static pattern rule.
63975         (generated): Add those targets.
63976         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
63977         * config.make.in (READELF): New substituted variable.
63978         * elf/check-textrel.c: File removed.
63979
63980 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
63981
63982         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63983         allow.
63984         * conform/data/ctype.h-data [C99-based standards] (isblank):
63985         Expect function.
63986         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
63987         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
63988         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63989         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
63990         Specify type.  Require positive value.
63991         (EILSEQ): Likewise.
63992         (ERANGE): Likewise.
63993         [ISO || POSIX] (EILSEQ): Do not expect.
63994         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
63995         Specify type.  Require positive value.
63996         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
63997         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
63998         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
63999         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
64000         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
64001         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
64002         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
64003         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
64004         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
64005         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
64006         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
64007         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
64008         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
64009         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
64010         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
64011         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
64012         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
64013         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
64014         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
64015         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
64016         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
64017         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
64018         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
64019         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
64020         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
64021         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
64022         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
64023         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
64024         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
64025         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
64026         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
64027         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
64028         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
64029         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
64030         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
64031         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
64032         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
64033         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
64034         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
64035         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
64036         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
64037         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
64038         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
64039         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
64040         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
64041         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
64042         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
64043         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
64044         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
64045         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
64046         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
64047         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
64048         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
64049         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
64050         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
64051         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
64052         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
64053         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
64054         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
64055         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
64056         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
64057         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
64058         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
64059         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
64060         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
64061         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
64062         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
64063         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
64064         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
64065         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
64066         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
64067         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
64068         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
64069         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
64070         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
64071         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
64072         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
64073         Require >= 2.
64074         (FLT_ROUNDS): Expect as macro, not constant.
64075         (FLT_MANT_DIG): Use macro-int-constant.
64076         (DBL_MANT_DIG): Likewise.
64077         (LDBL_MANT_DIG): Likewise.
64078         (FLT_DIG): Likewise.
64079         (DBL_DIG): Likewise.
64080         (LDBL_DIG): Likewise.
64081         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
64082         (DBL_MIN_EXP): Likewise.
64083         (LDBL_MIN_EXP): Likewise.
64084         (FLT_MAX_EXP): Use macro-int-constant.
64085         (DBL_MAX_EXP): Likewise.
64086         (LDBL_MAX_EXP): Likewise.
64087         (FLT_MAX_10_EXP): Likewise.
64088         (DBL_MAX_10_EXP): Likewise.
64089         (LDBL_MAX_10_EXP): Likewise.
64090         (FLT_MAX): Use macro-constant.
64091         (DBL_MAX): Likewise.
64092         (LDBL_MAX): Likewise.
64093         (FLT_EPSILON): Use macro-constant.  Give upper bound.
64094         (DBL_EPSILON): Likewise.
64095         (LDBL_EPSILON): Likewise.
64096         (FLT_MIN): Likewise.
64097         (DBL_MIN): Likewise.
64098         (LDBL_MIN): Likewise.
64099         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
64100         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
64101         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
64102         [ISO11] (FLT_HAS_SUBNORM): Likewise.
64103         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
64104         [ISO11] (DBL_DECIMAL_DIG): Likewise.
64105         [ISO11] (FLT_DECIMAL_DIG): Likewise.
64106         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
64107         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
64108         [ISO11] (FLT_TRUE_MIN): Likewise.
64109         [ISO11] (LDBL_TRUE_MIN): Likewise.
64110         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64111         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
64112         (SCHAR_MIN): Use macro-int-constant.  Specify type.
64113         (SCHAR_MAX): Likewise.
64114         (UCHAR_MAX): Likewise.
64115         (CHAR_MIN): Likewise.
64116         (CHAR_MAX): Likewise.
64117         (MB_LEN_MAX): Use macro-int-constant.
64118         (SHRT_MIN): Use macro-int-constant.  Specify type.
64119         (SHRT_MAX): Likewise.
64120         (USHRT_MAX): Likewise.
64121         (INT_MAX): Likewise.
64122         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
64123         bound negative.
64124         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64125         bound with "U".
64126         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64127         bound with "L".
64128         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
64129         bound negative.  Suffix upper bound with "L".
64130         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64131         bound with "UL".
64132         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
64133         Specify type.
64134         [C99-based standards] (LLONG_MAX): Likewise.
64135         [C99-based standards] (ULLONG_MAX): Likewise.
64136         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
64137         == 0.
64138         [ISO11] (max_align_t): Require type.
64139         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64140
64141         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
64142         from $CFLAGS, without defining away __attribute__ calls.
64143         (checknamespace): Use $CFLAGS_namespace.
64144
64145         * conform/conformtest.pl (@keywords): Only include C99 keywords
64146         for standards based on C99 or C11.
64147
64148         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
64149         Disable tests.
64150         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
64151         UNIX98]: Likewise.
64152
64153         * conform/conformtest.pl: Handle "macro-int-constant" and test for
64154         usability of symbols in #if.
64155
64156         * conform/conformtest.pl: If macro or constant types start
64157         "promoted:", expect the symbol to be of the following type
64158         promoted by the integer promotions.
64159
64160         * conform/conformtest.pl: Parse all "constant" and "macro" lines
64161         in one place.  Also handle "macro-constant".
64162
64163         * conform/conformtest.pl: Only accept expected macro values with
64164         "==".  Parse all "macro" lines in one place.
64165         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
64166
64167         * conform/conformtest.pl: Handle braced types on "constant" lines
64168         instead of handling "typed-constant".
64169         * conform/data/signal.h-data: Use "constant" instead of
64170         "typed-constant".
64171
64172         * conform/conformtest.pl: Handle "optional-" at start of lines in
64173         one place rather than duplicating several cases.  Handle each
64174         format of "macro" line with initial "optional-".
64175
64176         * conform/conformtest.pl: Only accept expected constant or
64177         optional-constant values with "==".  Parse all "constant" lines in
64178         one place.  Parse all "optional-constant" lines in one place.
64179         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
64180         * conform/data/fmtmsg.h-data: Likewise.
64181         * conform/data/netinet/in.h-data: Likewise.
64182         * conform/data/tar.h-data: Likewise.
64183         * conform/data/limits.h-data: Use "==" form on "constant" and
64184         "optional-constant" lines.
64185
64186         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
64187         Use -std=c99 for XOPEN2K.
64188         (@knownproblems): Remove.
64189         (newtoken): Don't check %isknown.
64190
64191         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
64192         Do not expect macro.
64193         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
64194         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
64195         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
64196         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
64197         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
64198         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
64199         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
64200         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
64201         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
64202         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
64203         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
64204         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
64205         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
64206         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
64207         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
64208         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
64209         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
64210         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
64211         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
64212         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
64213         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
64214         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
64215         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
64216         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
64217         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
64218         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
64219         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
64220         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
64221         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
64222         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
64223         [XPG3] (acosh): Likewise.
64224         [XPG3] (asinh): Likewise.
64225         [XPG3] (atanh): Likewise.
64226         [XPG3] (cbrt): Likewise.
64227         [XPG3] (expm1): Likewise.
64228         [XPG3] (ilogb): Likewise.
64229         [XPG3] (log1p): Likewise.
64230         [XPG3] (logb): Likewise.
64231         [XPG3] (nextafter): Likewise.
64232         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
64233         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
64234         [XPG3] (remainder): Likewise.
64235         [XPG3] (rint): Likewise.
64236         [XPG3 || XPG4 || UNIX98] (round): Likewise.
64237         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
64238         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
64239         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
64240         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
64241         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
64242         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
64243         [UNIX98 || XOPEN2K] (scalb): Expect.
64244         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
64245         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
64246         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
64247         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
64248         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
64249         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
64250         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
64251         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
64252         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
64253         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
64254         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
64255         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
64256         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
64257         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
64258         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
64259         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
64260         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
64261         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
64262         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
64263         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
64264         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
64265         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
64266         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
64267         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
64268         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
64269         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
64270         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
64271         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
64272         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
64273         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
64274         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
64275         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
64276         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
64277         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
64278         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
64279         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
64280         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
64281         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
64282         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
64283         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
64284         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
64285         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
64286         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
64287         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
64288         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
64289         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
64290         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
64291         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
64292         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
64293         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
64294         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
64295         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
64296         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
64297         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
64298         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
64299         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
64300         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
64301         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
64302         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
64303         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
64304         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
64305         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
64306         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
64307         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
64308         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
64309         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
64310         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
64311         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
64312         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
64313         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
64314         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
64315         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
64316         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
64317         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
64318         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
64319         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
64320         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
64321         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
64322         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
64323         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
64324         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
64325         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
64326         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
64327         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
64328         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
64329         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
64330         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
64331         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
64332         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
64333         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
64334         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
64335         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
64336         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
64337         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
64338         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
64339         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
64340         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
64341         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
64342         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
64343         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
64344         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
64345         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
64346         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
64347         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
64348         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
64349         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
64350         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
64351         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
64352         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
64353         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
64354         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
64355         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
64356         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
64357         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
64358         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
64359         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
64360         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
64361         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
64362         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
64363         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
64364         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
64365         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
64366         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
64367         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
64368         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
64369         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
64370         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
64371         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
64372         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
64373         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
64374         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
64375         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
64376         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
64377         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
64378         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
64379         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
64380         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
64381
64382         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
64383         _XOPEN_SOURCE_EXTENDED for XPG4.
64384
64385         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
64386
64387         * Makeconfig (localtime): Remove variable.
64388         (inst_localtime-file): Likewise.
64389
64390 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64391
64392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
64393         Update.
64394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
64395         Update.
64396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
64397         Update.
64398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
64399         Update.
64400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
64401         Update.
64402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
64403         Update.
64404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
64405         Update.
64406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
64407         Update.
64408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64409         Update.
64410
64411 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64412
64413         [BZ #2550]
64414         [BZ #2570]
64415         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
64416         comparisons to determine direction to adjust input.
64417         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
64418         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
64419         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
64420         Likewise.
64421         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
64422         Likewise.
64423         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
64424         Likewise.
64425         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
64426         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
64427         Likewise.
64428         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
64429         Likewise.
64430         * math/libm-test.inc (nexttoward_test): Add more tests.
64431
64432 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64433
64434         [BZ #14040]
64435         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
64436         in version GLIBC_2.1, not GLIBC_2.0.
64437         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
64438         Likewise.
64439
64440 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
64441
64442         [BZ #13942]
64443         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
64444         (1 - x) * (1 + x).
64445         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64446         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
64447         * math/libm-test.inc (acos_test): Add more tests.
64448         (asin_test): Likewise.
64449         * sysdeps/i386/fpu/libm-test-ulps: Update.
64450         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64451
64452         [BZ #14034]
64453         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
64454         of square root.
64455         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
64456         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64457         * math/libm-test.inc (acos_test_tonearest): New function.
64458         (acos_test_towardzero): Likewise.
64459         (acos_test_downward): Likewise.
64460         (acos_test_upward): Likewise.
64461         (asin_test_tonearest): Likewise.
64462         (asin_test_towardzero): Likewise.
64463         (asin_test_downward): Likewise.
64464         (asin_test_upward): Likewise.
64465         (main): Call the new functions.
64466         * sysdeps/i386/fpu/libm-test-ulps: Update.
64467         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64468
64469         [BZ #13884]
64470         [BZ #13924]
64471         * math/e_exp10.c: Include <float.h>.
64472         (__ieee754_exp10): Handle underflow here rather than multiplying
64473         large negative argument by M_LN10.
64474         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
64475         of __ieee754_expf.
64476         * math/e_exp10l.c: Include <float.h>.
64477         (__ieee754_exp10l): Handle underflow here rather than multiplying
64478         large negative argument by M_LN10l.
64479         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
64480         spurious overflow exception on underflow.
64481
64482 2012-04-29  Marek Polacek  <polacek@redhat.com>
64483
64484         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
64485         (__fortify_function): New macro.
64486         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
64487         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
64488         __extern_always_inline.
64489         * libio/bits/stdio2.h: Likewise.
64490         * libio/bits/stdio.h: Likewise.
64491         * string/string.h: Likewise.
64492         * string/bits/string3.h: Likewise.
64493         * include/stdio.h: Likewise.
64494         * stdlib/bits/stdlib.h: Likewise.
64495         * stdlib/stdlib.h: Likewise.
64496         * rt/bits/mqueue2.h: Likewise.
64497         * rt/mqueue.h: Likewise.
64498         * posix/bits/unistd.h: Likewise.
64499         * posix/unistd.h: Likewise.
64500         * io/bits/poll2.h: Likewise.
64501         * io/bits/fcntl2.h: Likewise.
64502         * io/fcntl.h: Likewise.
64503         * io/sys/poll.h: Likewise.
64504         * misc/bits/syslog.h: Likewise.
64505         * misc/bits/syslog-ldbl.h: Likewise.
64506         * misc/sys/syslog.h: Likewise.
64507         * socket/bits/socket2.h: Likewise.
64508         * socket/sys/socket.h: Likewise.
64509         * debug/tst-chk1.c: Likewise.
64510         * wcsmbs/bits/wchar2.h: Likewise.
64511         * wcsmbs/bits/wchar-ldbl.h: Likewise.
64512         * wcsmbs/wchar.h: Likewise.
64513
64514 2012-04-29  Andreas Jaeger  <aj@suse.de>
64515
64516         * Makerules (tests): Remove enable-check-abi protection.
64517         (check-abi-warn): Remove.
64518         (check-abi-%): Remove check-abi-warn usage.
64519
64520         * configure.in: Remove check-abi configure option.
64521         * configure: Regenerated.
64522         * config.make.in (enable-check-abi): Remove.
64523
64524 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
64525
64526         [BZ #14033]
64527         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
64528         double functions to double *_finite functions.
64529
64530         [BZ #13941]
64531         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
64532         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
64533         LDBL_MIN_EXP.
64534         * stdio-common/Makefile (tests): Add tst-sprintf3.
64535         * stdio-common/tst-sprintf3.c: New file.
64536
64537         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
64538         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
64539
64540 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64541
64542         * conform/conformtest.pl: Remove duplicate typed-constant
64543         handling.
64544
64545 2012-04-28  David S. Miller  <davem@davemloft.net>
64546
64547         * Makerules (%.abilist): Add vpath on sysdep_dirs.
64548         (check-abi-%): Remove AWK script prerequisite and explicit
64549         abilist directory.
64550         (check-abi): Rewrite to just diff the symlist with the abilist.
64551         (config-tls, config-abi-config): Delete, no longer used.
64552         (update-abi-%): Remove AWK script and explicit abilist directory.
64553         (update-abi): Rewrite to simply compare and conditionally copy the
64554         symlist and the sysdep abilist file.  Remove update-abi-config
64555         checks.
64556         * abilist/ld.abilist: Remove.
64557         * abilist/libBrokenLocale.abilist: Remove.
64558         * abilist/libanl.abilist: Remove.
64559         * abilist/libcrypt.abilist: Remove.
64560         * abilist/libdl.abilist: Remove.
64561         * abilist/librt.abilist: Remove.
64562         * abilist/libthread_db.abilist: Remove.
64563         * abilist/libutil.abilist: Remove.
64564         * scripts/extract-abilist.awk: Remove.
64565         * scripts/merge-abilist.awk: Remove.
64566         * sysdeps/generic/libcidn.abilist: New file.
64567         * sysdeps/generic/libnss_compat.abilist: New file.
64568         * sysdeps/generic/libnss_db.abilist: New file.
64569         * sysdeps/generic/libnss_dns.abilist: New file.
64570         * sysdeps/generic/libnss_files.abilist: New file.
64571         * sysdeps/generic/libnss_hesiod.abilist: New file.
64572         * sysdeps/generic/libnss_nis.abilist: New file.
64573         * sysdeps/generic/libnss_nisplus.abilist: New file.
64574         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
64575         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
64576         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
64577         file.
64578         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
64579         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
64580         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
64581         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
64582         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
64583         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
64584         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
64585         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
64586         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
64587         file.
64588         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
64589         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
64590         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
64591         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
64592         file.
64593         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
64594         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
64595         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
64596         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
64597         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
64598         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
64599         file.
64600         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
64601         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
64602         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
64603         file.
64604         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
64605         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
64606         New file.
64607         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
64608         New file.
64609         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
64610         New file.
64611         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
64612         New file.
64613         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
64614         New file.
64615         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
64616         New file.
64617         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
64618         New file.
64619         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
64620         New file.
64621         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
64622         New file.
64623         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
64624         New file.
64625         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
64626         New file.
64627         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
64628         New file.
64629         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
64630         New file.
64631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
64632         file.
64633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
64634         New file.
64635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
64636         New file.
64637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
64638         file.
64639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
64640         New file.
64641         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
64642         New file.
64643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
64644         file.
64645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
64646         New file.
64647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64648         New file.
64649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
64650         New file.
64651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
64652         New file.
64653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
64654         New file.
64655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
64656         New file.
64657         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
64658         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
64659         file.
64660         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
64661         New file.
64662         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
64663         file.
64664         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
64665         file.
64666         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
64667         file.
64668         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
64669         file.
64670         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
64671         file.
64672         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
64673         New file.
64674         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
64675         file.
64676         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
64677         file.
64678         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
64679         New file.
64680         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
64681         file.
64682         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
64683         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
64684         file.
64685         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
64686         New file.
64687         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
64688         file.
64689         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
64690         file.
64691         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
64692         file.
64693         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
64694         file.
64695         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
64696         file.
64697         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
64698         New file.
64699         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
64700         file.
64701         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
64702         file.
64703         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
64704         New file.
64705         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
64706         file.
64707         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
64708         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
64709         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
64710         file.
64711         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
64712         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
64713         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
64714         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
64715         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
64716         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
64717         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
64718         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
64719         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
64720         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
64721         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
64722         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
64723         file.
64724         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
64725         New file.
64726         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
64727         file.
64728         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
64729         file.
64730         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
64731         file.
64732         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
64733         file.
64734         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
64735         file.
64736         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
64737         New file.
64738         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
64739         New file.
64740         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
64741         file.
64742         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
64743         New file.
64744         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
64745         file.
64746         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
64747         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
64748         file.
64749         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
64750         New file.
64751         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
64752         file.
64753         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
64754         file.
64755         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
64756         file.
64757         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
64758         file.
64759         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
64760         file.
64761         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
64762         New file.
64763         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
64764         New file.
64765         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
64766         file.
64767         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
64768         New file.
64769         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
64770         file.
64771
64772 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64773
64774         * conform/conformtest.pl: Fix typo in handling typed-constant from
64775         allow-header.
64776
64777 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
64778
64779         * README: Cut down references to pre-2.6 Linux kernels and
64780         Linuxthreads.  Update lists of configurations in libc and ports
64781         and sort alphabetically.  Say "or newer" with Linux kernel version
64782         requirements.
64783
64784         * config.h.in [IS_IN_build]: Allow compiling without optimization.
64785
64786 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
64787
64788         [BZ #887]
64789         * math/libm-test.inc (logb_test_downward): New test to expose
64790         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
64791         rounding mode.
64792
64793 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
64794
64795         [BZ #14027]
64796         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
64797         to be done.
64798         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
64799         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
64800
64801 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
64802
64803         * sysdeps/unix/i386/brk.S: Remove file.
64804         * sysdeps/unix/i386/dl-brk.S: Likewise.
64805         * sysdeps/unix/i386/pipe.S: Likewise.
64806         * sysdeps/unix/i386/sigreturn.S: Likewise.
64807         * sysdeps/unix/i386/syscall.S: Likewise.
64808         * sysdeps/unix/i386/vfork.S: Likewise.
64809         * sysdeps/unix/i386/wait.S: Likewise.
64810
64811         * sysdeps/unix/common/tcsendbrk.c: Move to ...
64812         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
64813
64814         * configure.in (arm*-none*): Do not allow without
64815         --enable-hacker-mode.
64816         (netbsd*): Remove case setting base_os.
64817         (386bsd*): Likewise.
64818         (freebsd*): Likewise.
64819         (bsdi*): Likewise.
64820         (osf*): Likewise.
64821         (sunos*): Likewise.
64822         (ultrix*): Likewise.
64823         (newsos*): Likewise.
64824         (dynix*): Likewise.
64825         (*bsd*): Likewise.
64826         (sysv*): Likewise.
64827         (isc*): Likewise.
64828         (esix*): Likewise.
64829         (sco*): Likewise.
64830         (minix*): Likewise.
64831         (irix4*): Likewise.
64832         (irix6*): Likewise.
64833         (solaris[2-9]*): Likewise.
64834         (none): Likewise.
64835         * configure: Regenerated.
64836
64837 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64838
64839         [BZ #11521]
64840         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
64841         overflow or cancellation in calculating denominator.
64842         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
64843         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
64844         down expression to avoid unexpected rounding in newer GCCs.
64845         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
64846
64847 2012-04-26  David S. Miller  <davem@davemloft.net>
64848
64849         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
64850         long-double compat symbols.
64851         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
64852         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
64853         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
64854         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
64855         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
64856         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
64857         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
64858         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
64859         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
64860         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
64861         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
64862         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
64863         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
64864
64865 2012-04-25  David S. Miller  <davem@davemloft.net>
64866
64867         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
64868         HWCAP_* values only after the memory barriers have been defined.
64869         (atomic_full_barrier): Define.
64870         (atomic_read_barrier): Define.
64871         (atomic_write_barrier): Define.
64872
64873 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
64874
64875         * shlib-versions: Add libgcc_s version information.
64876         * sysdeps/generic/libgcc_s.h: Remove.
64877         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
64878         libgcc_s.h.
64879         * sysdeps/gnu/unwind-resume.c: Likewise.
64880         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
64881
64882 2012-04-25  David S. Miller  <davem@davemloft.net>
64883
64884         * sysdeps/unix/sparc/brk.S: Delete.
64885         * sysdeps/unix/sparc/dl-brk.S: Delete.
64886         * sysdeps/unix/sparc/pipe.S: Delete.
64887         * sysdeps/unix/sparc/sysdep.S: Delete.
64888         * sysdeps/unix/sparc/sysdep.h: Delete.
64889         * sysdeps/unix/sparc/vfork.S: Delete.
64890         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
64891         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
64892         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
64893         (ret_ERRVAL, r0, r1, MOVE): Define.
64894         (JUMPTARGET): Remove.
64895         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
64896         sysdeps/unix/sparc/sysdep.h
64897         (ENTRY, END): Remove.
64898         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
64899
64900 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
64901
64902         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
64903         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
64904         -DIS_IN_build.
64905
64906         * timezone/README: Update upstream location and email address for
64907         tzcode and tzdata.
64908         * timezone/zdump.c: Update from tzcode 2012b.
64909         * timezone/zic.c: Likewise.
64910
64911         * configure.in (libc_cv_as_needed): Remove test.
64912         * configure: Regenerated.
64913         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
64914         conditional definition.
64915         [$(have-as-needed) != yes] (no-as-needed): Likewise.
64916         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
64917         * config.make.in (have-as-needed): Remove variable.
64918
64919 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
64920             Paul Pluzhnikov  <ppluzhnikov@google.com>
64921
64922         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
64923         strings correctly.
64924
64925 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
64926
64927         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
64928         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
64929         * sysdeps/sh/strlen.S: Likewise.
64930
64931 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
64932
64933         * sysdeps/unix/fork.S: Remove file.
64934         * sysdeps/unix/i386/fork.S: Likewise.
64935         * sysdeps/unix/sparc/fork.S: Likewise.
64936
64937         * sysdeps/unix/system.c: Remove file.
64938         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
64939
64940         * sysdeps/unix/getegid.S: Remove file.
64941         * sysdeps/unix/geteuid.S: Likewise.
64942
64943 2012-04-24  Roland McGrath  <roland@hack.frob.com>
64944
64945         * scripts/check-localplt.awk: New file.
64946         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
64947         of diff.
64948         * scripts/data/localplt-generic.data: Add a comment.
64949
64950         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
64951         NODE when __dir_mkfile failed.
64952         * sysdeps/mach/hurd/symlinkat.c: Likewise.
64953         Reported by Ludovic Courtès <ludo@gnu.org>.
64954
64955 2012-04-24  Andreas Jaeger  <aj@suse.de>
64956
64957         * Makerules (common-clean): Also remove gen-as-const-headers
64958         files.
64959
64960 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
64961
64962         * Makerules (native-compile): Do not change working directory for
64963         build.  Use $(OUTPUT_OPTION) in command.
64964         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
64965
64966 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64967
64968         [BZ #13886]
64969         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
64970         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
64971         * math/libm-test.inc (floor_test): Add more tests.
64972         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
64973
64974 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
64975
64976         * sysdeps/unix/getdents.c: Remove file.
64977         * sysdeps/unix/sysv/getdents.c: Likewise.
64978         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
64979
64980         * sysdeps/unix/syscalls.list (madvise): Add syscall from
64981         sysdeps/unix/mman/syscalls.list.
64982         (mmap): Likewise.
64983         (mprotect): Likewise.
64984         (msync): Likewise.
64985         (munmap): Likewise.
64986         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
64987         * sysdeps/unix/mman/syscalls.list: Remove.
64988         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
64989
64990         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
64991         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
64992         * configure: Regenerated.
64993         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
64994         $(libgcc_s_suffix).
64995         * config.make.in (libgcc_s_suffix): Remove variable.
64996
64997 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
64998
64999         * sysdeps/unix/sysv/gethostname.c: Move to ...
65000         * sysdeps/posix/gethostname.c: ... here.
65001
65002         * sysdeps/unix/execve.S: Remove file.
65003
65004         * sysdeps/unix/_exit.S: Remove file.
65005
65006 2012-04-23  Andreas Jaeger  <aj@suse.de>
65007
65008         [BZ #13739]
65009         * manual/Makefile: Remove make dist support, there's no
65010         need for a stand-alone documentation tar ball.
65011         (TEXI2DVI): Define always, it's not in Makeconfig.
65012         (dist): Removed.
65013         (tar-it): Removed.
65014         (edition): Removed.
65015         (glibc-doc-$(edition).tar): Removed
65016         (%.Z): Removed.
65017         (%.gz): Removed.
65018         (%.uu): Removed.
65019         (ETAGS): Remove, it's in Makeconfig.
65020         (move-if-change): Remove, it's in Makeconfig.
65021
65022 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
65023
65024         [BZ #13970]
65025         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
65026         (strtod, strtof, strtold, strtol, strtoul, strtoq)
65027         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
65028         (strtod_l, strtof_l, strtold_l): Remove __wur.
65029         It is not necessarily an error to ignore strtol's return value.
65030         One can reliably look at the stored endptr to decide whether
65031         the number had valid syntax.
65032
65033 2012-04-21  Andreas Jaeger  <aj@suse.de>
65034
65035         [BZ #13739]
65036         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
65037
65038 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
65039
65040         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
65041         * sysdeps/unix/sysv/Versions: Remove file.
65042
65043 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
65044
65045         [BZ #13927]
65046         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65047
65048 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
65049
65050         [BZ #7064]
65051         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
65052         version from __vm86.
65053
65054 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
65055
65056         * sysdeps/unix/common/lxstat.c: Remove file.
65057         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
65058
65059         * sysdeps/unix/sysv/Makefile: Remove file.
65060
65061         * sysdeps/unix/sysv/direct.h: Remove file.
65062
65063         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
65064         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
65065         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
65066         * sysdeps/unix/sysv/bits/signum.h: Likewise.
65067         * sysdeps/unix/sysv/bits/stat.h: Likewise.
65068         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
65069         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
65070
65071         * sysdeps/unix/sysv/setrlimit.c: Remove file.
65072
65073         * sysdeps/unix/xmknod.c: Remove file.
65074         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
65075
65076         * sysdeps/unix/sysv/settimeofday.c: Remove file.
65077
65078         * sysdeps/unix/sysv/i386/time.S: Remove file.
65079
65080         * sysdeps/unix/fxstat.c: Remove file.
65081         * sysdeps/unix/xstat.c: Likewise.
65082         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
65083
65084         * sysdeps/unix/sysv/sigaction.c: Remove file.
65085
65086         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
65087         (sysdep_headers): Remove variable.
65088         [termio.h not in sysdep_headers] (generated): Likewise.
65089         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
65090         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
65091         * sysdeps/unix/sysv/tcdrain.c: Likewise.
65092         * sysdeps/unix/sysv/tcflow.c: Likewise.
65093         * sysdeps/unix/sysv/tcflush.c: Likewise.
65094         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
65095         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
65096         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
65097         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
65098         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
65099
65100         * sysdeps/unix/siglist.c: Remove file.
65101
65102         * sysdeps/unix/getppid.S: Remove file.
65103
65104         * sysdeps/unix/mkdir.c: Remove file.
65105         * sysdeps/unix/rmdir.c: Likewise.
65106
65107 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
65108
65109         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
65110         ERR_MAX value.
65111         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
65112         errlist-compat value.
65113
65114 2012-04-18  David S. Miller  <davem@davemloft.net>
65115
65116         * sysdeps/generic/memcopy.h (reg_char): Delete.
65117         * debug/strcat_chk.c: Use char, not reg_char.
65118         * debug/strcpy_chk.c: Likewise.
65119         * debug/strncat_chk.c: Likewise.
65120         * debug/strncpy_chk.c: Likewise.
65121         * string/memchr.c: Likewise.
65122         * string/memrchr.c: Likewise.
65123         * string/rawmemchr.c: Likewise.
65124         * string/strcat.c: Likewise.
65125         * string/strchr.c: Likewise.
65126         * string/strchrnul.c: Likewise.
65127         * string/strcmp.c: Likewise.
65128         * string/strcpy.c: Likewise.
65129         * string/strncat.c: Likewise.
65130         * string/strncmp.c: Likewise.
65131         * string/strncpy.c: Likewise.
65132
65133 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65134
65135         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
65136         __builtin_memcopy is called when src and dest ranges are known to not
65137         overlap.
65138
65139 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65140
65141         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
65142         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
65143         fwd_align_merge macro call.
65144         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
65145         bwd_align_merge macro call.
65146         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65147
65148 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65149
65150         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
65151         bwd_align_merge macros.
65152         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
65153         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
65154         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65155
65156 2012-04-18  David S. Miller  <davem@davemloft.net>
65157
65158         * sysdeps/sparc/sparc64/memcopy.h: Delete.
65159
65160 2012-04-18  Andreas Jaeger  <aj@suse.de>
65161
65162         [BZ# 6794]
65163         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
65164         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
65165         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65166
65167         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
65168         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
65169         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65170
65171         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
65172         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
65173         Adjust for changed ldbl-128 files.
65174
65175         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
65176         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
65177         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65178
65179 2012-04-17  David S. Miller  <davem@davemloft.net>
65180
65181         * sysdeps/sparc/sparc32/memcopy.h: Delete.
65182
65183 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
65184
65185         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
65186         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
65187         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
65188         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
65189         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
65190         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
65191
65192 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65193
65194         [BZ #6794]
65195         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
65196         * math/libm-test.inc: Add ilogb errno and exception tests.
65197         * math/w_ilogb.c: New file: ilogb wrapper.
65198         * math/w_ilogbf.c: New file: ilogbf wrapper.
65199         * math/w_ilogbl.c: New file: ilogbl wrapper.
65200         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
65201         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
65202         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
65203         exception being thrown with 0.0 as argument.
65204         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
65205         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
65206         exception being thrown with 0.0 as argument.
65207         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
65208         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65209         exception being thrown with 0.0 as argument.
65210         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
65211         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65212         exception being thrown with 0.0 as argument.
65213         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
65214         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
65215         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
65216         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
65217         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
65218         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
65219         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
65220         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
65221         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
65222
65223 2012-04-17  Petr Baudis  <pasky@ucw.cz>
65224
65225         * include/sys/uio.h: Change __vector to __iovec to avoid clash
65226         with altivec.
65227
65228 2012-04-16  Marek Polacek  <polacek@redhat.com>
65229
65230         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
65231
65232 2012-04-16  Marek Polacek  <polacek@redhat.com>
65233
65234         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
65235         operands of fdivp instruction.
65236
65237 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65238
65239         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
65240         * elf/tst-auditmod3b.c: Likewise.
65241         * elf/tst-auditmod4b.c: Likewise.
65242         * elf/tst-auditmod5b.c: Likewise.
65243         * elf/tst-auditmod6b.c: Likewise.
65244         * elf/tst-auditmod6c.c: Likewise.
65245         * elf/tst-auditmod7b.c: Likewise.
65246         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
65247         * sysdeps/x86_64/preconfigure.in: Likewise.
65248         * sysdeps/x86_64/preconfigure: Regenerated.
65249
65250 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65251
65252         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
65253         __ILP32__.
65254
65255 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
65256
65257         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
65258         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
65259
65260 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
65261
65262         [BZ #13973]
65263         * locale/iso-639.def: Fix gl language name. Spotted by
65264         Yaron Shahrabani.
65265
65266 2012-04-12  Roland McGrath  <roland@hack.frob.com>
65267
65268         [BZ #2074]
65269         * libio/libio.h (__io_write_fn): Update comment.
65270
65271 2012-04-12  Petr Baudis  <pasky@ucw.cz>
65272
65273         [BZ #2074]
65274         * stdio.texi (Hook Functions): The user provided writer function
65275         is not allowed to return -1.
65276
65277 2012-04-11  David S. Miller  <davem@davemloft.net>
65278
65279         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65280
65281 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
65282
65283         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
65284         Add a leading slash to rtkaio.
65285
65286 2012-04-11  Jim Meyering  <meyering@redhat.com>
65287
65288         [BZ #11959]
65289         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
65290         It is not necessarily an error to ignore fwrite's return
65291         value.  One can reliably use ferror to test for errors after
65292         the fact.
65293
65294 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65295
65296         * bits/types.h (__snseconds_t): New type.
65297         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
65298
65299         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
65300         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65301         (__SNSECONDS_T_TYPE): Likewise.
65302         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65303         (__SNSECONDS_T_TYPE): Likewise.
65304         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65305         (__SNSECONDS_T_TYPE): Likewise.
65306
65307 2012-04-10  Andreas Jaeger  <aj@suse.de>
65308
65309         [BZ #2636]
65310         * manual/time.texi (Processor Time): Return type of times is
65311         elapsed real time since an arbitrary point in the past.
65312         (CPU Time): Move CLK_TCK from here...
65313         (Processor Time): ...to here.  Correct description.
65314         * manual/conf.texi (Constants for Sysconf): Correct description of
65315         _SC_CLK_TCK.
65316
65317 2012-04-10  David S. Miller  <davem@davemloft.net>
65318
65319         [BZ #13967]
65320         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
65321         where the is a gap between DT_REL(A) and DT_JMPREL.
65322
65323 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65324
65325         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
65326         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65327         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65328
65329 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
65330
65331         * elf/dl-support.c (_dl_inhibit_cache): New variable.
65332         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
65333         (dl_main): Handle --inhibit-cache.
65334         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
65335         _dl_inhibit_cache.
65336         * elf/dl-load.c (_dl_map_object): Use it.
65337         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
65338
65339 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65340
65341         [BZ #13872]
65342         * sysdeps/i386/fpu/e_powl.S (p78): New object.
65343         (__ieee754_powl): Saturate large exponents rather than testing for
65344         overflow of y*log2(x).
65345         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65346         * math/libm-test.inc (pow_test): Do not permit spurious overflow
65347         exceptions.
65348
65349         [BZ #11521]
65350         * math/s_ctan.c: Include <float.h>.
65351         (__ctan): Avoid internal overflow or cancellation in calculating
65352         denominator.
65353         * math/s_ctanf.c: Likewise.
65354         * math/s_ctanl.c: Likewise.
65355         * math/s_ctanh.c: Likewise.
65356         * math/s_ctanhf.c: Likewise.
65357         * math/s_ctanhl.c: Likewise.
65358         * math/libm-test.inc (ctan_test): Add more tests.
65359         (ctanh_test): Likewise.
65360         * sysdeps/i386/fpu/libm-test-ulps: Update.
65361         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65362
65363 2012-04-09  Andreas Jaeger  <aj@suse.de>
65364
65365         [BZ #6894]
65366         * manual/filesys.texi (Directory Entries): Mention that d_namlen
65367         is an optional BSD extension.
65368
65369         [BZ #10254]
65370         * manual/stdio.texi (Opening Streams): Document additional fopen
65371         parameters.
65372
65373 2012-04-09  Roland McGrath  <roland@hack.frob.com>
65374
65375         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
65376         %eax without telling the compiler.
65377
65378 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
65379
65380         [BZ # 13963]
65381         * manual/install.texi: Use sourceware.org.
65382
65383 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65384
65385         [BZ #13873]
65386         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
65387         (__ieee754_pow): Generate overflow and underflow using huge*huge
65388         and tiny*tiny rather than just returning constant infinity or zero
65389         for large exponents.
65390         * math/libm-test.inc (pow_test): Require overflow exceptions for
65391         applicable cases of large exponents.
65392
65393         [BZ #706]
65394         * sysdeps/i386/fpu/e_pow.S (p10): New object.
65395         (__ieee754_pow): Use iterative multiplication algorithm only for
65396         integer exponents with absolute value below 1024.  Check for odd
65397         integer exponents when using algorithm for real exponents.
65398         * math/libm-test.inc (pow_test): Add more tests.
65399         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65400
65401 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
65402
65403         [BZ #13705]
65404         * math/libm-test.inc (exp_test): Do not allow overflow exception
65405         on underflow test.
65406
65407 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
65408
65409         [BZ #13705]
65410         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
65411         instead of __kernel_standard_f.
65412
65413 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
65414
65415         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
65416         * sysdeps/x86_64/memset_chk.S: Likewise.
65417
65418 2012-04-08  Andreas Jaeger  <aj@suse.de>
65419
65420         [BZ #10153]
65421         * manual/startup.texi (Environment Access): Describe return value
65422         for putenv and setenv.
65423
65424         [BZ #6895]
65425         * manual/filesys.texi (Directory Entries): Add description for
65426         DT_LNK.
65427
65428         [BZ #6890]
65429         * manual/filesys.texi (Directory Entries): Clarify that it's file
65430         system not operating system in the description of DT_UNKNOWN.
65431
65432         [BZ #6578]
65433         * manual/syslog.texi (closelog): Fix reference, it's openlog.
65434
65435 2012-04-08  Stephen Compall  <s11@member.fsf.org>
65436
65437         [BZ #6649]
65438         * manual/llio.texi (Opening and Closing Files): Add cross
65439         reference to explain mode argument.
65440
65441 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
65442
65443         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
65444         * sysdeps/x86_64/memset_chk.S: Likewise.
65445
65446 2012-04-07  David S. Miller  <davem@davemloft.net>
65447
65448         * elf/elf.h (R_SPARC_WDISP10): Define.
65449         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
65450         R_SPARC_SIZE32.
65451         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
65452         R_SPARC_SIZE64 and R_SPARC_H34.
65453
65454 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
65455
65456         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
65457         conditions and remove no longer applicable assertion.
65458
65459 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65460
65461         * bits/byteswap.h: Include <features.h>.
65462         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65463         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65464
65465 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65466
65467         * bits/byteswap.h (__bswap_16): Removed.
65468         Include <bits/byteswap-16.h> to get __bswap_16.
65469         * sysdeps/i386/bits/byteswap.h: Likewise.
65470         * sysdeps/s390/bits/byteswap.h: Likewise.
65471         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65472         * bits/byteswap-16.h: New file.
65473         * sysdeps/i386/bits/byteswap-16.h: Likewise.
65474         * sysdeps/s390/bits/byteswap-16.h: Likewise.
65475         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
65476         * string/Makefile (headers): Add bits/byteswap-16.h.
65477
65478 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
65479
65480         [BZ #13895]
65481         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
65482         extra indirection.
65483         * nss/Makefile (tests-static, tests): Add tst-nss-static.
65484         * nss/tst-nss-static.c: New.
65485
65486 2012-04-06  Robert Millan  <rmh@gnu.org>
65487
65488         [BZ #6486]
65489         * manual/llio.texi (File Position Primitive): lseek
65490         refers to WHENCE when it really means OFFSET.
65491
65492 2012-04-06  Andreas Jaeger  <aj@suse.de>
65493
65494         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
65495         strncmp declarations.
65496
65497         * abilist/libc.abilist: Add __poll and __ppoll.
65498
65499 2012-04-05  David S. Miller  <davem@davemloft.net>
65500
65501         * scripts/check-local-headers.sh: Accept a host triplet in the
65502         path matched by the exclude regexp.
65503
65504         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
65505         definition.
65506         * sysdeps/powerpc/powerpc32/dl-machine.h
65507         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
65508         * sysdeps/s390/s390-32/dl-machine.h
65509         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65510         * sysdeps/sparc/sparc32/dl-machine.h
65511         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65512         * sysdeps/sparc/sparc64/dl-machine.h
65513         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65514
65515         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
65516         lazy binding.
65517         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
65518         undefined symbol errors.
65519
65520         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
65521         DT_NEEDED entries.
65522
65523 2012-04-05  Michael Matz  <matz@suse.de>
65524
65525         [BZ #13592]
65526         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
65527
65528 2012-04-05  Andreas Jaeger  <aj@suse.de>
65529
65530         [BZ #13908]
65531         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
65532         comment.
65533
65534 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65535
65536         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
65537         which ROUND is no valid rounding mode.
65538
65539 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65540
65541         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
65542         read again.
65543         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
65544
65545 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65546
65547         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
65548         an exception using FPU order intentionally.
65549
65550 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65551
65552         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
65553         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
65554         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
65555         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
65556
65557 2012-04-05  Simon Josefsson  <simon@josefsson.org>
65558
65559         [BZ #12340]
65560         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
65561         EINVAL when BUFLEN is too smal.
65562
65563 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
65564
65565         [BZ #13553]
65566         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
65567         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
65568
65569 2012-04-03  Andreas Jaeger  <aj@suse.de>
65570
65571         [BZ #13938]
65572         * manual/setjmp.texi (System V contexts): Fix sentence.
65573
65574         [BZ #13926]
65575         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
65576         New macro for this case.
65577         [!__GNUC__] (__bswap_64): New inline function for this case.
65578         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65579         * bits/byteswap.h: Likewise.
65580         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
65581         ull, guard with __GLIBC_HAVE_LONG_LONG.
65582
65583         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
65584         __GLIBC_HAVE_LONG_LONG.
65585
65586         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
65587         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
65588
65589 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
65590
65591         [BZ #13691]
65592         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
65593         inptr and inend, rather than using last_ch.
65594
65595 2012-04-02  David S. Miller  <davem@davemloft.net>
65596
65597         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
65598         * stdio-common/printf-parse.h (read_int): Change return type to
65599         'int', return -1 on INT_MAX overflow.
65600         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
65601         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
65602         overflows INT_MAX.  Check for overflow of in-format-string precision
65603         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
65604         SIZE_MAX not INT_MAX for integer overflow test.
65605         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
65606         skip the construct in the format string but do not record anything.
65607         * stdio-common/bug22.c: Adjust to test both width/prevision
65608         INT_MAX overflow as well as total length INT_MAX overflow.  Check
65609         explicitly for proper errno values.
65610
65611 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
65612
65613         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
65614         CHAR_MAX.
65615         * string/test-strcmp.c [! WIDE]: Likewise.
65616         * time/tst-mktime2.c: Likewise for INT_MAX.
65617         * string/test-string.h: #include <sys/param.h> for MIN.
65618
65619         * csu/init-first.c (__libc_init_first): Call __ctype_init.
65620         * sysdeps/i386/init-first.c (init): Likewise.
65621         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
65622         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
65623         * sysdeps/sh/init-first.c (init): Likewise.
65624
65625 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
65626
65627         * po/ru.po: Update from translation team.
65628         * po/vi.po: Likewise.
65629
65630 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
65631
65632         * resolv/nss_dns/dns-host.c: Merge copyright years.
65633
65634 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
65635
65636         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
65637         Optimize memcpy with prefetch if
65638         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
65639         src, dst pointers have unequal 16 byte alignments.
65640
65641 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
65642
65643         [BZ #13928]
65644         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
65645         from a CNAME entry and return the minimum ttl for the query.
65646         (gaih_getanswer_slice): Likewise.
65647
65648 2012-03-30  Jeff Law  <law@redhat.com>
65649
65650         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
65651         due to long keys.
65652         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
65653         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
65654
65655         * resolv/nss_dns/dns-host.c: Update copyright year.
65656
65657 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
65658
65659         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
65660         requests to save a system call.  Fix check that all bytes are sent.
65661
65662         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
65663         comments for sendmmsg.
65664
65665 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
65666
65667         [BZ #13691]
65668         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
65669         with only 1 character between 0x0041 and 0x01b0.
65670         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
65671         * wcsmbs/tst-mbsnrtowcs.c: New file.
65672
65673 2012-03-29  David S. Miller  <davem@davemloft.net>
65674
65675         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
65676         small copies by hand.
65677
65678 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
65679
65680         [BZ #13761]
65681         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
65682         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
65683         group memberships.
65684
65685 2012-03-28  David S. Miller  <davem@davemloft.net>
65686
65687         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
65688         that branches into memcpy.
65689         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
65690         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
65691         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
65692         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
65693         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
65694         bits.
65695         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
65696         implementation too.
65697         * sysdeps/sparc/mempcpy.S: New file.
65698
65699         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
65700         the IFUNC routine in the libc case.
65701         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
65702
65703         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
65704         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
65705         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
65706         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
65707         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
65708         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
65709         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
65710         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
65711
65712         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
65713         loop to 256 bytes instead of 64 bytes and fix test signedness.
65714
65715         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
65716         * sysdeps/sparc/sparc32/Makefile: rather than here...
65717         * sysdeps/sparc/sparc64/Makefile: and here.
65718
65719 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
65720
65721         * malloc/mallocbug.c: Avoid warnings about unused variables.
65722
65723 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
65724
65725         [BZ #13760]
65726         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
65727         in the right place. Discard and retry query if response is
65728         larger than input buffer size.
65729
65730 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
65731
65732         [BZ #369]
65733         [BZ #2678]
65734         [BZ #3866]
65735         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
65736         x for large integer exponent.
65737         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
65738         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
65739         sign of result as needed afterwards.
65740         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
65741         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
65742         result for underflowing pow the same as for overflow.
65743         (__kernel_standard_l): Handle powl overflow and underflow here
65744         rather than calling __kernel_standard.
65745         * math/libm-test.inc (pow_test): Add more tests.
65746
65747         [BZ #3868]
65748         [BZ #13879]
65749         [BZ #13910]
65750         [BZ #13911]
65751         [BZ #13912]
65752         [BZ #13913]
65753         [BZ #13915]
65754         [BZ #13916]
65755         [BZ #13917]
65756         [BZ #13918]
65757         [BZ #13919]
65758         [BZ #13920]
65759         [BZ #13921]
65760         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
65761         * sysdeps/ieee754/k_standard.c: Include <float.h>.
65762         (__kernel_standard_l): New function.
65763         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
65764         __kernel_standard.
65765         * math/w_acosl.c (__acosl): Likewise.
65766         * math/w_asinl.c (__asinl): Likewise.
65767         * math/w_atan2l.c (__atan2l): Likewise.
65768         * math/w_atanhl.c (__atanhl): Likewise.
65769         * math/w_coshl.c (__coshl): Likewise.
65770         * math/w_exp10l.c (__exp10l): Likewise.
65771         * math/w_exp2l.c (__exp2l): Likewise.
65772         * math/w_fmodl.c (__fmodl): Likewise.
65773         * math/w_hypotl.c (__hypotl): Likewise.
65774         * math/w_j0l.c (__j0l, __y0l): Likewise.
65775         * math/w_j1l.c (__j1l, __y1l): Likewise.
65776         * math/w_jnl.c (__jnl, __ynl): Likewise.
65777         * math/w_lgammal.c (__lgammal): Likewise.
65778         * math/w_log10l.c (__log10l): Likewise.
65779         * math/w_log2l.c (__log2l): Likewise.
65780         * math/w_logl.c (__logl): Likewise.
65781         * math/w_powl.c (__powl): Likewise.
65782         * math/w_remainderl.c (__remainderl): Likewise.
65783         * math/w_scalbl.c (sysv_scalbl): Likewise.
65784         * math/w_sinhl.c (__sinhl): Likewise.
65785         * math/w_sqrtl.c (__sqrtl): Likewise.
65786         * math/w_tgammal.c (__tgammal): Likewise.
65787         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
65788         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
65789         * math/libm-test.inc (acos_test): Add more tests.
65790         (acosh_test): Likewise.
65791         (asin_test): Likewise.
65792         (atanh_test): Likewise.
65793         (exp_test): Likewise.
65794         (exp10_test): Likewise.
65795         (exp2_test): Likewise.
65796         (expm1_test): Likewise.
65797         (lgamma_test): Likewise.
65798         (log_test): Likewise.
65799         (log10_test): Likewise.
65800         (log1p_test): Likewise.
65801         (log2_test): Likewise.
65802         (pow_test): Do not allow some spurious overflow exceptions.
65803         (sqrt_test): Add more tests.
65804         (tgamma_test): Likewise.
65805         (y0_test): Likewise.
65806         (y1_test): Likewise.
65807         (yn_test): Likewise.
65808
65809 2012-03-27  Anton Blanchard  <anton@samba.org>
65810
65811         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
65812         MAP_HUGETLB.
65813         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
65814         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
65815         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
65816
65817 2012-03-27  David S. Miller  <davem@davemloft.net>
65818
65819         * conform/Makefile: Run run-conformtest.sh using $(BASH).
65820
65821         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
65822         have-as-vis3 check.
65823
65824 2012-03-27  Andreas Jaeger  <aj@suse.de>
65825
65826         * sysdeps/x86_64/elf/configure.in: Moved to ...
65827         * sysdeps/x86_64/configure.in: ... here.
65828         * sysdeps/x86_64/elf/start.S: Moved to ...
65829         * sysdeps/x86_64/start.S: ... here.
65830         * sysdeps/x86_64/elf/configure: Delete.
65831
65832         * sysdeps/x86_64/configure.in: Merge contents from
65833         sysdeps/i386/configure.in (without i686 check).
65834
65835         * sysdeps/i386/elf/Versions: Merge into ...
65836         * sysdeps/i386/Versions: ... this.
65837         * sysdeps/i386/elf/Versions: Delete file.
65838         * sysdeps/i386/elf/start.S: Moved to ...
65839         * sysdeps/i386/start.S: ...here.
65840         * sysdeps/i386/elf/configure.in: Merge into...
65841         * sysdeps/i386/configure.in: ...here.
65842         * sysdeps/i386/elf/configure.in: Delete file.
65843         * sysdeps/i386/elf/configure: Delete file.
65844
65845         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
65846         * debug/backtracesyms.c: ... here.
65847         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
65848         * debug/backtracesymsfd.c: ... here.
65849         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
65850         * sysdeps/generic/ifunc-sel.h: ... here.
65851
65852         * sysdeps/unix/i386/start.c: Delete file.
65853         * sysdeps/unix/sparc/start.c: Delete file.
65854         * sysdeps/unix/start.c: Delete file.
65855
65856         * sysdeps/sh/elf/configure.in: Moved to ...
65857         * sysdeps/sh/configure.in: ... here.
65858         * sysdeps/sh/elf/start.S: Moved to ...
65859         * sysdeps/sh/start.S: ... here.
65860         * sysdeps/sh/elf/configure: Delete file.
65861
65862         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
65863         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
65864         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
65865         * sysdeps/powerpc/powerpc64/entry.h: ... here.
65866         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
65867         * sysdeps/powerpc/powerpc64/start.S: here.
65868         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
65869         * sysdeps/powerpc/powerpc64/Makefile: ... this.
65870         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
65871         * sysdeps/powerpc/powerpc64/configure.in: ... this.
65872         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
65873
65874         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
65875         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
65876         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
65877         * sysdeps/powerpc/powerpc32/start.S: ... here.
65878         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
65879         * sysdeps/powerpc/powerpc32/configure.in: ... this.
65880         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
65881
65882         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
65883         * sysdeps/powerpc/ifunc-sel.h: ... here.
65884         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
65885         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
65886
65887         * sysdeps/sparc/elf/configure.in: Moved to ...
65888         * sysdeps/sparc/configure.in: ... here.
65889         * sysdeps/sparc/elf/configure: Delete file.
65890         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
65891         * sysdeps/sparc/sparc32/start.S: ... here.
65892         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
65893         * sysdeps/sparc/sparc64/start.S: ... here.
65894         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
65895         * sysdeps/sparc/sparc32/Makefile: ... this.
65896         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
65897         * sysdeps/sparc/sparc64/Makefile: ... this.
65898
65899         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
65900         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
65901         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
65902         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
65903         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
65904         * sysdeps/s390/s390-32/setjmp.S: ... here.
65905         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
65906         * sysdeps/s390/s390-32/configure.in: ... here.
65907         * sysdeps/s390/s390-32/elf/configure: Delete file.
65908         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
65909         * sysdeps/s390/s390-32/start.S: ... here.
65910
65911         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
65912         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
65913         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
65914         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
65915         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
65916         * sysdeps/s390/s390-64/setjmp.S: ... here.
65917         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
65918         * sysdeps/s390/s390-64/configure.in: ... here
65919         * sysdeps/s390/s390-64/elf/configure: Delete file.
65920         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
65921         * sysdeps/s390/s390-64/start.S: ... here.
65922         * sysdeps/s390/s390-64/elf/configure: Delete.
65923
65924         * configure.in: Remove support for elf directories in sysdeps.
65925
65926         * configure: Regenerated.
65927         * sysdeps/i386/configure: Regenerated.
65928         * sysdeps/powerpc/powerpc32/configure: Regenerated.
65929         * sysdeps/powerpc/powerpc64/configure: Regenerated.
65930         * sysdeps/s390/s390-32/configure: Regenerated.
65931         * sysdeps/s390/s390-64/configure: Regenerated.
65932         * sysdeps/sh/configure: Regenerated.
65933         * sysdeps/sparc/configure: Regenerated.
65934         * sysdeps/x86_64/configure: Regenerated.
65935
65936 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
65937
65938         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
65939
65940         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
65941         denormal result into account.
65942
65943 2012-03-25  Roland McGrath  <roland@hack.frob.com>
65944
65945         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
65946         Reported by Allan McRae <allan@archlinux.org>.
65947
65948 2012-03-23  Jeff Law  <law@redhat.com>
65949
65950         * nss/getnssent.c (__nss_getent): Fix typo.
65951
65952 2012-03-23  David S. Miller  <davem@davemloft.net>
65953
65954         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65955
65956 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
65957
65958         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
65959         to pad to uint64_t for each field.
65960         (dl_tls_index): Replace unsigned long with uint64_t.
65961
65962 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
65963         Paul Pluzhnikov  <ppluzhnikov@google.com>
65964
65965         [BZ #6528]
65966         * grp/Makefile (otherlibs): Don't set it.
65967         * inet/Makefile (otherlibs): Likewise.
65968         * login/Makefile (otherlibs): Likewise.
65969         * nscd/Makefile (otherlibs): Likewise.
65970         * posix/Makefile (otherlibs): Likewise.
65971         * pwd/Makefile (otherlibs): Likewise.
65972         * rt/Makefile (otherlibs): Likewise.
65973         * sunrpc/Makefile (otherlibs): Likewise.
65974         * nss/Makefile (otherlibs): Likewise.
65975         Add libnss_files to routines and static-only-routines.
65976         ($(objpfx)getent): Remove rule.
65977         * resolv/Makefile: Add libnss_dns and libresolv to routines and
65978         static-only-routines.
65979
65980 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
65981
65982         [BZ #13892]
65983         * math/s_cexp.c: Include <float.h>.
65984         (__cexp): Handle exp result overflowing not necessarily
65985         overflowing both real and imaginary parts of result.
65986         * math/s_cexpf.c: Likewise.
65987         * math/s_cexpl.c: Likewise.
65988         * math/libm-test.inc (cexp_test): Add more tests.
65989         * sysdeps/i386/fpu/libm-test-ulps: Update.
65990         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65991
65992 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65993
65994         * include/link.h (ELFW): New macro.
65995         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
65996         Replace ELF64_R_TYPE with ELFW(R_TYPE).
65997
65998 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65999
66000         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
66001         with uint64_t.
66002
66003 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66004
66005         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
66006         declaration.
66007         (struct La_x32_retval): Likewise.
66008
66009 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66010
66011         * sysdeps/x86_64/preconfigure.in: New file.
66012         * sysdeps/x86_64/preconfigure: New generated file.
66013
66014 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66015
66016         [BZ #13824]
66017         * math/e_exp2l.c: Include <float.h>.
66018         (__ieee754_exp2l): Handle overflow and underflow cases
66019         separately.  Only pass fractional part of argument to
66020         __ieee754_expl.
66021         * math/libm-test.inc (exp2_test): Add more tests.
66022
66023         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
66024         negating x to take absolute value.
66025         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
66026         Likewise.
66027         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
66028         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
66029         Likewise.
66030         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
66031         computing low part if x was negated.
66032         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
66033
66034 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66035
66036         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
66037         la_x32_gnu_pltexit.
66038         (pltexit): Cast int_retval to ptrdiff_t.
66039         * elf/tst-auditmod3b.c: Likewise.
66040         * elf/tst-auditmod4b.c: Likewise.
66041         * elf/tst-auditmod5b.c: Likewise.
66042         * elf/tst-auditmod6b.c: Likewise.
66043         * elf/tst-auditmod6c.c: Likewise.
66044         * elf/tst-auditmod7b.c: Likewise.
66045
66046         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
66047         and x32_gnu_pltexit.
66048
66049         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
66050         __ELF_NATIVE_CLASS.
66051         (La_x32_regs): New macro.
66052         (La_x32_retval): Likewise.
66053         (la_x32_gnu_pltenter): New function prototype.
66054         (la_x32_gnu_pltexit): Likewise.
66055
66056 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
66057
66058         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
66059         exponent.
66060
66061         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66062
66063         * configure.in (libc_cv_cc_nofma): Check for option to disable
66064         generation of FMA instructions.
66065         * configure: Regenerate.
66066         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
66067         * sysdeps/ieee754/dbl-64/Makefile: New file.
66068         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
66069         Remove brandred-fma4.
66070         (CFLAGS-brandred-fma4.c): Remove.
66071         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
66072         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
66073         define.
66074         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
66075         define.
66076
66077 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66078
66079         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
66080         LLONG_MAX != LONG_MAX.
66081         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66082         (_fitoa_word): Likewise.
66083         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
66084         LLONG_MAX != LONG_MAX.
66085         * stdio-common/_itowa.h: Include <_itoa.h>.
66086         (_itowa_word): Use _ITOA_WORD_TYPE on value.
66087         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
66088         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
66089         only if not defined.
66090         (_ITOA_WORD_TYPE): Likewise.
66091         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66092         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
66093
66094 2012-03-21  David S. Miller  <davem@davemloft.net>
66095
66096         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66097
66098 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66099
66100         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
66101         of x86_64 when setting libc_cv_slibdir, libdir and
66102         libc_cv_localedir.
66103         * sysdeps/unix/sysv/linux/configure: Regenerated.
66104
66105 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66106
66107         * manual/lang.texi (Old Varargs): Remove section.
66108         (How Variadic): Update menu.
66109         (va_start): Do not mention varargs.h.
66110
66111 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66112             Joseph Myers  <joseph@codesourcery.com>
66113
66114         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
66115         link test.
66116         * configure: Regenerated.
66117
66118 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66119
66120         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
66121         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
66122         conformtest.pl
66123
66124 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66125
66126         * NOTES: Remove.
66127         * Makefile (files-for-dist): Remove NOTES.
66128         (NOTES): Remove rule.
66129         * README: Don't refer to NOTES.
66130         * manual/creature.texi: Don't include macros.texi.
66131         * manual/intro.texi (creature.texi): Remove comment referring to
66132         NOTES.
66133
66134         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
66135         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
66136         * configure: Regenerated.
66137         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
66138         LIBC_TRY_CC_OPTION.
66139         (libc_cv_as_i686): Likewise.
66140         (libc_cv_cc_avx): Likewise.
66141         (libc_cv_cc_sse2avx): Likewise.
66142         (libc_cv_cc_fma4): Likewise.
66143         (libc_cv_cc_novzeroupper): Likewise.
66144         * sysdeps/i386/configure: Regenerated.
66145
66146         [BZ #13883]
66147         * sysdeps/i386/fpu/s_cexp.S: Remove.
66148         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
66149         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
66150         * math/libm-test.inc (cexp_test): Add more tests.
66151         * sysdeps/i386/fpu/libm-test-ulps: Update.
66152         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66153
66154 2012-03-21  Allan McRae  <allan@archlinux.org>
66155
66156         * timezone/Makefile: Do not install iso3166.tab and zone.tab
66157
66158 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66159
66160         [BZ #13871]
66161         * math/w_exp2.c: Do not include <float.h>.
66162         (o_threshold, u_threshold): Remove.
66163         (__exp2): Calculate result before checking finiteness and calling
66164         __kernel_standard.
66165         * math/w_exp2f.c: Likewise.
66166         * math/w_exp2l.c: Likewise.
66167         * math/libm-test.inc (exp2_test): Require overflow exception for
66168         1e6 input.
66169
66170         [BZ #3866]
66171         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
66172         range of signed 64-bit integers before using fistpll.  Remove
66173         checks for whether integers fit in mantissa bits.
66174         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
66175         the range of signed 32-bit integers before using fistpl.  Remove
66176         checks for whether integers fit in mantissa bits.
66177         * sysdeps/i386/fpu/e_powl.S (p64): New object.
66178         (__ieee754_powl): Test for y outside the range of signed 64-bit
66179         integers before using fistpll.  Reduce 64-bit values to 63-bit
66180         ones as needed.
66181         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
66182         divide-by-zero is raised for zero to large negative powers.
66183         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
66184         (__ieee754_powl): Test for y outside the range of signed 64-bit
66185         integers before using fistpll.  Reduce 64-bit values to 63-bit
66186         ones as needed.
66187         * math/libm-test.inc (pow_test): Add more tests.
66188
66189 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66190
66191         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
66192         <stdio-common/_itoa.h>.
66193         * debug/segfault.c: Likewise.
66194         * elf/dl-cache.c: Likewise.
66195         * elf/dl-minimal.c: Likewise.
66196         * elf/dl-misc.c: Likewise.
66197         * elf/dl-sysdep.c: Likewise.
66198         * elf/dl-version.c: Likewise.
66199         * elf/rtld.c: Likewise.
66200         * hurd/hurdsock.c: Likewise.
66201         * hurd/lookup-retry.c: Likewise.
66202         * malloc/malloc.c: Likewise.
66203         * malloc/mtrace.c: Likewise.
66204         * nscd/nscd_getgr_r.c: Likewise.
66205         * nscd/nscd_getpw_r.c: Likewise.
66206         * nscd/nscd_getserv_r.c: Likewise.
66207         * posix/getopt_init.c: Likewise.
66208         * posix/wordexp.c: Likewise.
66209         * stdio-common/_itoa.c: Likewise.
66210         * stdio-common/printf_fphex.c: Likewise.
66211         * stdio-common/vfprintf.c: Likewise.
66212         * string/_strerror.c: Likewise.
66213         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
66214         * sysdeps/i386/i686/hp-timing.h: Likewise.
66215         * sysdeps/mach/_strerror.c: Likewise.
66216         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
66217         * sysdeps/mach/hurd/sethostid.c: Likewise.
66218         * sysdeps/mach/hurd/xmknodat.c: Likewise.
66219         * sysdeps/mach/xpg-strerror.c: Likewise.
66220         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
66221         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
66222         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
66223         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
66224         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
66225         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
66226         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
66227         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
66228         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
66229         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
66230         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
66231         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
66232         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
66233         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
66234         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
66235         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
66236         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
66237         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
66238         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
66239         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
66240         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
66241
66242         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
66243
66244         * stdio-common/_itoa.h: Moved to ...
66245         * sysdeps/generic/_itoa.h: Here.
66246
66247         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
66248
66249         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
66250         instead of "_itoa.h" and "_itowa.h".
66251         * stdio-common/vfprintf.: Likewise.
66252
66253 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66254
66255         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
66256         <bits/wordsize.h>.
66257         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
66258         (__signbit): Likwise.
66259         (llrintf): Likwise.
66260         (llrint): Likwise.
66261
66262 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66263
66264         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
66265         __WORDSIZE != 64.
66266
66267 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
66268
66269         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
66270         OVERFLOW_EXCEPTION_OK.
66271         * math/libm-test.inc ("Philosophy"): Update comment about
66272         exception testing.
66273         (OVERFLOW_EXCEPTION): Define.
66274         (OVERFLOW_EXCEPTION_OK): Likewise.
66275         (INVALID_EXCEPTION_OK): Renumber.
66276         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
66277         (IGNORE_ZERO_INF_SIGN): Likewise.
66278         (test_exceptions): Handle FE_OVERFLOW.
66279         (exp10_test): Expect overflow exceptions.
66280         (exp2_test): Likewise.
66281         (expm1_test): Likewise.
66282         (nextafter_test): Likewise.
66283         (pow_test): Likewise.
66284         (scalbn_test): Likewise.
66285         (scalbln_test): Likewise.
66286
66287 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66288
66289         * sysdeps/x86_64/bits/atomic.h
66290         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
66291         64bit integer.
66292         (atomic_exchange_acq): Likewise.
66293         (__arch_exchange_and_add_body): Likewise.
66294         (__arch_add_body): Likewise.
66295         (atomic_add_negative): Likewise.
66296         (atomic_add_zero): Likewise.
66297
66298 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66299
66300         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
66301         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
66302
66303 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66304
66305         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
66306         Check __x86_64__ instead of __WORDSIZE.
66307
66308 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66309
66310         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
66311
66312 2012-03-19  David S. Miller  <davem@davemloft.net>
66313
66314         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66315
66316         * sysdeps/sparc/fpu/fenv_private.h: New file.
66317         * sysdeps/sparc/fpu/math_private.h: Use it.
66318         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
66319         Remove.
66320         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
66321         (libc_feholdexcept_setroundl): Remove.
66322         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
66323         Remove.
66324         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
66325         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
66326
66327 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66328
66329         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
66330         int64_t instead of long int.
66331         (INSERT_WORDS64): Likwise.
66332
66333 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66334
66335         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
66336         _Unwind_GetCFA return to _Unwind_Ptr first.
66337
66338 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
66339
66340         [BZ #13629]
66341         * math/s_clog.c: Include <float.h>.
66342         (__clog): Scale large or subnormal inputs.
66343         * math/s_clogf.c: Likewise.
66344         * math/s_clogl.c: Likewise.
66345         * math/s_clog10.c: Include <float.h>.
66346         (M_LOG10_2): Define.
66347         (__clog10): Scale large or subnormal inputs.
66348         * math/s_clog10f.c: Likewise.
66349         * math/s_clog10l.c: Likewise.
66350         * math/libm-test.inc (clog_test): Add more tests.
66351         (clog10_test): Likewise.
66352         * sysdeps/i386/fpu/libm-test-ulps: Update.
66353         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66354
66355         [BZ #11451]
66356         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
66357         x and y.
66358         * math/libm-test.inc (atan2_test): Add another test.
66359
66360         * Makerules (common-objdir-compile): Remove.
66361         * sysdeps/unix/Makefile (config-generated): Do not add
66362         $(unix-generated) to variable.
66363         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
66364         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
66365         Remove rule.
66366         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
66367         Likewise.
66368         [generic bits/local_lim.h] (before-compile): Do not append to
66369         variable.
66370         [generic bits/local_lim.h] (common-generated): Likewise.
66371         [generic sys/param.h] (before-compile): Do not append to variable.
66372         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
66373         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
66374         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
66375         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
66376         include.
66377         [generic sys/param.h] (sys/param.h-includes): Remove variable.
66378         [generic sys/param.h] (sys/param.h-includes): Remove rule.
66379         [generic sys/param.h] ($(addprefix
66380         $(common-objpfx),$(sys/param.h-includes))): Likewise.
66381         [generic sys/param.h] (common-generated): Do not append to
66382         variable.
66383         [generic sys/param.h] (sysdep_headers): Likewise.
66384         [generic bits/errno.h] (before-compile): Do not append to
66385         variable.
66386         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
66387         rule.
66388         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
66389         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
66390         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
66391         [generic bits/errno.h] (common-generated): Do not append to
66392         variable.
66393         [generic bits/ioctls.h] (before-compile): Do not append to
66394         variable.
66395         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
66396         rule.
66397         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
66398         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
66399         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
66400         rule.
66401         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
66402         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
66403         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
66404         [generic bits/ioctls.h] (common-generated): Do not append to
66405         variable.
66406         [generic sys/syscall.h] (syscall.h): Remove variable.
66407         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
66408         rule.
66409         [generic sys/syscall.h] (before-compile): Do not append to
66410         variable.
66411         [generic sys/syscall.h] (common-generated): Likewise.
66412         * sysdeps/unix/errnos-tmpl.c: Remove file.
66413         * sysdeps/unix/errnos.awk: Likewise.
66414         * sysdeps/unix/ioctls-tmpl.c: Likewise.
66415         * sysdeps/unix/ioctls.awk: Likewise.
66416         * sysdeps/unix/mk-local_lim.c: Likewise.
66417         * sysdeps/unix/snarf-ioctls: Likewise.
66418
66419 2012-03-19  Richard Henderson  <rth@twiddle.net>
66420
66421         * sysdeps/i386/fpu/fenv_private.h: New file.
66422         * sysdeps/i386/fpu/math_private.h: Use it.
66423         (math_opt_barrier, math_force_eval): Remove.
66424         (libc_feholdexcept_setround_53bit): Remove.
66425         (libc_feupdateenv_53bit): Remove.
66426         * sysdeps/x86_64/fpu/math_private.h: Likewise.
66427         (math_opt_barrier, math_force_eval): Remove.
66428         (libc_feholdexcept): Remove.
66429         (libc_feholdexcept_setround): Remove.
66430         (libc_fetestexcept, libc_fesetenv): Remove.
66431         (libc_feupdateenv_test): Remove.
66432         (libc_feupdateenv, libc_feholdsetround): Remove.
66433         (libc_feresetround): Remove.
66434
66435         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
66436         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
66437
66438         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
66439         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
66440         (libc_feupdateenv_testl): New.
66441         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
66442         (libc_feupdateenv_testf): New.
66443         (libc_feupdateenv): Use libc_feupdateenv_test.
66444         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
66445         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
66446
66447         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
66448         (libc_feholdsetroundf, libc_feholdsetroundl): New.
66449         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
66450         (libc_feresetround_noex): New.
66451         (libc_feresetround_noexf): New.
66452         (libc_feresetround_noexl): New.
66453         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
66454         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
66455         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
66456         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
66457         SET_RESTORE_ROUND.
66458         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
66459         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
66460         (__cos): Likewise.
66461         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
66462         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
66463         SET_RESTORE_ROUND_NOEX.
66464         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
66465         SET_RESTORE_ROUND_NOEXF.
66466         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
66467         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
66468         (libc_feholdsetroundf): New.
66469         (libc_feresetround, libc_feresetroundf): New.
66470
66471         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
66472         (libc_feholdexcept_setround_53bit): Convert from macro to function.
66473         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
66474
66475         * sysdeps/generic/math_private.h: Include <fenv.h>.
66476         (default_libc_feholdexcept): New.
66477         (default_libc_feholdexcept_setround): New.
66478         (default_libc_fesetenv, default_libc_feupdateenv): New.
66479         (libc_feholdexcept): Only define if undefined.
66480         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
66481         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
66482         (libc_feholdexcept_setroundl): Likewise.
66483         (libc_feholdexcept_setround_53bit): Likewise.
66484         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
66485         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
66486         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
66487         (libc_feupdateenv_53bit): Likewise.
66488         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
66489         (libc_feholdexcept): Convert from macro to inline function.
66490         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
66491         (libc_fesetenv, libc_feupdateenv): Likewise.
66492
66493         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
66494         not previously defined.
66495         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
66496         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
66497         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
66498         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
66499         * sysdeps/ieee754/flt-32/math_private.h: New file.
66500         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
66501         math_private.h below SET_FLOAT_WORD.
66502         (__isnan, __isinf_ns, __finite): Remove.
66503         (__isnanf, __isinf_nsf, __finitef): Remove.
66504
66505 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
66506
66507         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66508
66509 2012-03-17  David S. Miller  <davem@davemloft.net>
66510
66511         [BZ #6471]
66512         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
66513         for 2.16.
66514
66515 2012-03-16  David S. Miller  <davem@davemloft.net>
66516
66517         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
66518         warnings.
66519
66520         [BZ #6471]
66521         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
66522         properly.
66523         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
66524         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
66525         sysdep_routines when subdir is sysvipc.
66526         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
66527         __getshmlba helper.
66528
66529         * sysdeps/sparc/fpu/libm-test/ulps: Update.
66530
66531 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66532
66533         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
66534         [__LP64__].
66535
66536 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66537
66538         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
66539         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
66540         (__lround): Renamed to ...
66541         (__llround): This.  Replace long int with long long int.
66542         Define lround functions as aliases of llround functions.
66543         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
66544
66545 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66546
66547         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
66548         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
66549         adresses to uintptr_t.  Replace "long int" and "unsigned long
66550         int" with "greg_t" on va_arg.
66551
66552 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66553
66554         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
66555         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
66556
66557         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
66558         Move e_machine check before EI_CLASS check.  Handle x32
66559         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
66560         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
66561         SKIP_EM_IA_64 and include
66562         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
66563
66564         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
66565         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
66566         (add_system_dir): New macro.
66567
66568         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
66569         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
66570
66571 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66572
66573         [BZ #2551]
66574         [BZ #2552]
66575         [BZ #2553]
66576         [BZ #2554]
66577         [BZ #2562]
66578         [BZ #2563]
66579         [BZ #2565]
66580         [BZ #2566]
66581         [BZ #2576]
66582         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
66583         (y0): Likewise.
66584         * math/w_j0f.c (j0f): Likewise.
66585         (y0f): Likewise.
66586         * math/w_j0l.c (__j0l): Likewise.
66587         (__y0l): Likewise.
66588         * math/w_j1.c (j1): Likewise.
66589         (y1): Likewise.
66590         * math/w_j1f.c (j1f): Likewise.
66591         (y1f): Likewise.
66592         * math/w_j1l.c (__j1l): Likewise.
66593         (__y1l): Likewise.
66594         * math/w_jn.c (jn): Likewise.
66595         (yn): Likewise.
66596         * math/w_jnf.c (jnf): Likewise.
66597         (ynf): Likewise.
66598         * math/w_jnl.c (__jnl): Likewise.
66599         (__ynl): Likewise.
66600         * math/libm-test.inc (j0_test): Add more tests.
66601         (j1_test): Likewise.
66602         (jn_test): Likewise.  Add trailing semicolon to existing test.
66603         (y0_test): Likewise.
66604         (y1_test): Likewise.
66605         * sysdeps/i386/fpu/libm-test-ulps: Update.
66606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66607
66608         [BZ #13851]
66609         [BZ #13854]
66610         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
66611         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
66612         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
66613         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
66614         (__tanl): Set errno for infinite argument.
66615         * sysdeps/i386/fpu/mptan.c: Remove.
66616         * sysdeps/i386/fpu/s_tan.S: Likewise.
66617         * sysdeps/i386/fpu/s_tanl.S: Likewise.
66618         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
66619         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
66620         * math/libm-test.inc (tan_test): Add more tests and enable more
66621         tests for double and long double.
66622         * sysdeps/i386/fpu/libm-test-ulps: Update.
66623         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66624
66625 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
66626
66627         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
66628         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
66629
66630 2012-03-16  Roland McGrath  <roland@hack.frob.com>
66631
66632         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
66633         * configure.in: Use it for both main tree and add-ons.
66634         * configure: Regenerated.
66635
66636 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66637
66638         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
66639
66640 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66641
66642         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
66643         in comment.
66644
66645         [BZ #13851]
66646         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
66647         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
66648         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
66649         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
66650         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
66651         infinite argument.
66652         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
66653         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
66654         != 0 for prec == 2.
66655         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
66656         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
66657         * sysdeps/i386/fpu/s_cosl.S: Likewise.
66658         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
66659         * sysdeps/i386/fpu/s_sinl.S: Likewise.
66660         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
66661         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
66662         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
66663         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
66664         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
66665         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
66666         * math/libm-test.inc (cos_test): Add more tests and enable more
66667         tests for long double.
66668         (sin_test): Likewise.
66669         (sincos_test): Likewise.
66670         * sysdeps/i386/fpu/libm-test-ulps: Update.
66671         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66672
66673 2012-03-16  David S. Miller  <davem@davemloft.net>
66674
66675         * sysdeps/sparc/fpu/math_private.h: New file.
66676
66677 2012-03-15  David S. Miller  <davem@davemloft.net>
66678
66679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
66680         file.
66681         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
66682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
66683         file.
66684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
66685         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
66686         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
66687         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
66688         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
66689         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
66690         sysdep routines.
66691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
66692
66693         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
66694         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
66695
66696         * sysdeps/sparc/sparc-ifunc.h: New file.
66697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
66698         sparc-ifunc.h
66699         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
66700         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
66701         Likewise.
66702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
66703         Likewise.
66704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
66705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
66706         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
66707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
66708         Likewise.
66709         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
66710         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
66711         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
66712         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
66713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
66714         Likewise.
66715         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
66716         Likewise.
66717         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
66718         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
66719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
66720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
66721         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
66722         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
66723         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
66724         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
66725         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
66726         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
66727         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
66728         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
66729         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
66730         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
66731         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
66732         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
66733         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
66734         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
66735         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
66736         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
66737         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
66738         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
66739         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
66740         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
66741
66742 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
66743
66744         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
66745         scaling.
66746         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66747
66748 2012-03-15  Andreas Jaeger  <aj@suse.de>
66749
66750         [BZ #13852]
66751         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
66752         ieee754/flt-32 implementation for sin, cos and sincos.
66753         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
66754         * sysdeps/i386/fpu/s_cosf.S: Likewise.
66755         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
66756         * sysdeps/i386/fpu/s_sinf.S: Likewise.
66757         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
66758         ieee754/flt-32 implementation for tan.
66759
66760         * math/libm-test.inc (cos_test): Enable some large input tests for
66761         float as well
66762         (sin_test): Likewise.
66763         (sincos_test): Likewise.
66764         (tan_test): Add tests for large input.
66765
66766         * sysdeps/i386/fpu/libm-test-ulps: Update.
66767
66768 2012-03-15  Andreas Jaeger  <aj@suse.de>
66769
66770         [BZ #13658]
66771         * math/libm-test.inc (cos_test): Add more test cases.
66772         (sin_test): Likewise.
66773         (sincos_test): Likewise.
66774
66775 2012-03-15  Andreas Jaeger  <aj@suse.de>
66776
66777         [BZ #13837]
66778         * math/libm-test.inc (cos_test): Add a test case for large input
66779         value.
66780         (sin_test): Likewise.
66781         (sincos_test): Likewise.
66782
66783 2012-03-15  Andreas Jaeger  <aj@suse.de>
66784             Joseph Myers  <joseph@codesourcery.com>
66785
66786         [BZ #13658]
66787         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
66788         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
66789         * sysdeps/i386/fpu/branred.c: Likewise.
66790         * sysdeps/i386/fpu/dosincos.c: Likewise.
66791         * sysdeps/i386/fpu/mpa.c: Likewise.
66792         * sysdeps/i386/fpu/s_cos.S: Likewise.
66793         * sysdeps/i386/fpu/s_sin.S: Likewise.
66794         * sysdeps/i386/fpu/s_sincos.S: Likewise.
66795         * sysdeps/i386/fpu/sincos32.c: Likewise.
66796
66797         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
66798         Define.
66799         (libc_feupdateenv_53bit): Define.
66800         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
66801         Define.
66802         (libc_feupdateenv_53bit): Define.
66803
66804         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
66805         53 bit (without extend i386 double precision).
66806
66807         * math/libm-test.inc (sincos_test): Add tests for large input.
66808         (sin): Likewise.
66809         (cos): Likewise.
66810
66811         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
66812
66813 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
66814
66815         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66816
66817 2012-03-15  David S. Miller  <davem@davemloft.net>
66818
66819         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
66820         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
66821         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
66822         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
66823         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
66824         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
66825         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
66826         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
66827         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
66828         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
66829         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
66830         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
66831         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
66832         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
66833         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
66834         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
66835         file.
66836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
66837         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
66838         file.
66839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
66840         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
66841         file.
66842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
66843         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
66844         file.
66845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
66846         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
66847         fmin/fmax sysdep routines.
66848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
66849
66850 2012-03-14  David S. Miller  <davem@davemloft.net>
66851
66852         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
66853         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
66854         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
66855         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
66856         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
66857         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
66858         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
66859         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
66860         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
66861         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
66862         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
66863         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
66864         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
66865         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
66866         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
66867         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
66868         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
66869         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
66870         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
66871         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
66872         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
66873         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
66874         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
66875         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
66876         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
66877         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
66878         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
66879         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
66880         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
66881         routines.
66882         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
66883         file.
66884         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
66885         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
66886         file.
66887         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
66888         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
66889         file.
66890         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
66891         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
66892         file.
66893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
66894         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
66895         file.
66896         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
66897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
66898         file.
66899         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
66900         file.
66901         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
66902         file.
66903         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
66904         file.
66905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
66906         New file.
66907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
66908         file.
66909         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
66910         file.
66911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
66912         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
66913         file.
66914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
66915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
66916         file.
66917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
66918         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
66919         file.
66920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
66921         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
66922         VIS3 routines.
66923
66924         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
66925         New file.
66926
66927         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66928
66929         * sysdeps/sparc/configure.in: New file.
66930         * sysdeps/sparc/configure: Generate.
66931         * configure.in (libc_cv_sparc_as_vis3): Substitute.
66932         * configure: Regenerate.
66933         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
66934         * config.make.in (have-as-vis3): New.
66935         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
66936         available use -Av9d instead of -Av9a.
66937         * sysdeps/sparc/sparc64/Makefile: Likewise.
66938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
66939         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
66940         New file.
66941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
66942         file.
66943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
66944         New file.
66945         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
66946         file.
66947         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
66948         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
66949         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
66950         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
66951         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
66952
66953         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
66954         fzeros/fnegs to load 0x80000000 into a float register instead of
66955         using the stack.
66956         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
66957
66958 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
66959
66960         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
66961         bits/syscall.h.
66962         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
66963         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
66964         ($(inst_includedir)/bits/syscall.h): Remove rule.
66965         ($(objpfx)bits/syscall.d): Include instead of
66966         $(objpfx)syscall-list.d.
66967         (generated): Change syscall-list.h and syscall-list.d to
66968         bits/syscall.h and bits/syscall.d.
66969
66970 2012-03-14  Roland McGrath  <roland@hack.frob.com>
66971
66972         [BZ #13846]
66973         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
66974
66975 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
66976
66977         [BZ #13841]
66978         * math/s_csqrt.c: Include <float.h>.
66979         (__csqrt): Scale large or subnormal inputs.
66980         * math/s_csqrtf.c: Likewise.
66981         * math/s_csqrtl.c: Likewise.
66982         * math/libm-test.inc (csqrt_test): Add more tests.
66983         * sysdeps/i386/fpu/libm-test-ulps: Update.
66984         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66985
66986         [BZ #13840]
66987         * math/libm-test.inc (hypot_test): Add more tests.
66988
66989 2012-03-13  David S. Miller  <davem@davemloft.net>
66990
66991         [BZ #13840]
66992         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
66993         double-precision for the calculation instead of scaling.
66994
66995 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
66996
66997         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
66998         manipulate bits before adding and subtracting TWO52[sx].
66999         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
67000         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
67001         Likewise.
67002         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
67003
67004 2012-03-13  David S. Miller  <davem@davemloft.net>
67005
67006         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
67007         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
67008         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
67009         rtld-global-offsets.h
67010         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
67011
67012         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
67013         large parameters.
67014
67015         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
67016
67017         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
67018         'err' in the ifdef scope in which it is actually used.
67019
67020         * nss/nss_db/db-init.c: Include string.h
67021
67022 2012-03-12  David S. Miller  <davem@davemloft.net>
67023
67024         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
67025         masking out of the most significant byte of random value used.
67026         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67027         Fix coding style in previous change.
67028
67029         * sysdeps/unix/sysv/linux/kernel-features.h
67030         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
67031         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
67032         expression.
67033         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
67034         later.
67035
67036 2012-03-11  David S. Miller  <davem@davemloft.net>
67037
67038         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
67039         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
67040         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
67041         for 'resultvar' otherwise things get truncated on 64-bit.
67042
67043         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67044         Fix masking out of the most significant byte of random value used.
67045
67046         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67047
67048 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
67049
67050         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67051
67052 2012-03-09  David S. Miller  <davem@davemloft.net>
67053
67054         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
67055         variables with appropriate CPP guards.
67056         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
67057         from the frame pointer, not the stack pointer.  Correct layout
67058         comments.  Fix test on resulting framesize and the management of
67059         the outregs buffer for pltexit.  Preserve floating point return
67060         values across _dl_call_pltexit call.
67061         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
67062         framesize and the management of the outregs buffer for pltexit.
67063         Preserve floating point return values across _dl_call_pltexit
67064         call.
67065         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
67066         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
67067         (la_sparc64_gnu_pltexit): New functions.
67068         (print_exit): Fix format string for return register value.
67069
67070 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
67071
67072         * sunrpc/Makefile (others): Add rpcgen.
67073         ($(objpfx)rpcgen): Remove special build rule and dependency on
67074         libc.
67075         * sunrpc/rpcgen.c: New file.
67076
67077 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67078
67079         [BZ #13673]
67080         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
67081         * stdio-common/bug-vfprintf-nargs.c: Likewise.
67082         * sysdeps/i386/crti.S: Likewise.
67083         * sysdeps/i386/crtn.S: Likewise.
67084         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
67085         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
67086         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
67087         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
67088         * sysdeps/sh/crti.S: Likewise.
67089         * sysdeps/sh/crtn.S: Likewise.
67090         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
67091
67092         [BZ #13673]
67093         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
67094         with URL.
67095         * locale/programs/locfile-kw.gperf: Likewise.
67096         * locale/programs/charmap-kw.h: Regenerated.
67097         * locale/programs/locfile-kw.h: Likewise.
67098
67099         [BZ #13673]
67100         * intl/plural.y: Replace FSF snail mail address with URL.
67101         * intl/plural.c: Regenerated.
67102
67103 2012-03-09  Richard Henderson  <rth@twiddle.net>
67104
67105         * include/math_private.h: Remove file.
67106         * math/math_private.h: Move file ...
67107         * sysdeps/generic/math_private.h: ... here.
67108
67109         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
67110         * sysdeps/powerpc/fpu/math_private.h: Likewise.
67111         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67112
67113         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
67114         and <math_private.h>.
67115         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
67116         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
67117         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
67118         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
67119         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
67120         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
67121         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67122         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67123         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
67124         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67125         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67126         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
67127         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
67128         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67129         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
67130         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
67131         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
67132         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
67133         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
67134         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
67135         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67136         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
67137         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
67138         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67139         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
67140         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67141         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
67142         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67143         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67144         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
67145         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
67146         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67147         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
67148         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
67149         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
67150         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
67151         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
67152         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
67153         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
67154         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
67155         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
67156         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
67157         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
67158         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
67159         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
67160         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
67161         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
67162         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
67163         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
67164         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
67165         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
67166         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
67167         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
67168         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
67169         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
67170         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
67171         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
67172         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
67173         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
67174         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
67175         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67176         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
67177         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67178         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
67179         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
67180         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67181         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67182         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67183         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
67184         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
67185         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
67186         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
67187         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
67188         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
67189         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
67190         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
67191         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
67192         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
67193         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
67194         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
67195         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
67196         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
67197         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
67198         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
67199         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
67200         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
67201         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
67202         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
67203         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
67204         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
67205         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
67206         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
67207         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
67208         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
67209         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
67210         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
67211         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
67212         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
67213         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
67214         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
67215         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
67216         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
67217         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
67218         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
67219         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
67220         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
67221         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
67222         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
67223         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
67224         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
67225         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
67226         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
67227         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
67228         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
67229         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
67230         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
67231         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
67232         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
67233         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
67234         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
67235         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
67236         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
67237         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
67238         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
67239         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
67240         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
67241         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
67242         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
67243         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
67244         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
67245         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
67246         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
67247         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
67248         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
67249         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
67250         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
67251         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
67252         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
67253         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
67254         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
67255         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
67256         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
67257         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
67258         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
67259         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
67260         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
67261         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
67262         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
67263         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
67264         * sysdeps/ieee754/k_standard.c: Likewise.
67265         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
67266         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
67267         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
67268         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
67269         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
67270         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
67271         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
67272         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
67273         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
67274         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
67275         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
67276         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
67277         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
67278         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
67279         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
67280         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
67281         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
67282         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
67283         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
67284         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
67285         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
67286         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
67287         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
67288         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
67289         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
67290         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
67291         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
67292         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
67293         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
67294         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
67295         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
67296         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
67297         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
67298         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
67299         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
67300         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
67301         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
67302         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
67303         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
67304         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
67305         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
67306         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
67307         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
67308         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
67309         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
67310         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
67311         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
67312         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
67313         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
67314         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
67315         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
67316         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
67317         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
67318         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
67319         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
67320         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
67321         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
67322         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
67323         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
67324         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
67325         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
67326         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
67327         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
67328         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
67329         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
67330         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
67331         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
67332         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
67333         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
67334         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
67335         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
67336         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
67337         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
67338         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
67339         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
67340         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
67341         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
67342         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
67343         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67344         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
67345         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
67346         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
67347         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
67348         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
67349         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
67350         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
67351         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
67352         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
67353         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
67354         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
67355         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
67356         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
67357         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
67358         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
67359         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
67360         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
67361         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
67362         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
67363         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
67364         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
67365         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
67366         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
67367         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
67368         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
67369         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
67370         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
67371         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
67372         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
67373         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
67374         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
67375         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
67376         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
67377         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
67378         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
67379         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
67380         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
67381         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
67382         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
67383         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
67384         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
67385         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
67386         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
67387         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
67388         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
67389         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
67390         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
67391         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
67392         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
67393         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
67394         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
67395         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
67396         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
67397         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
67398         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
67399         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
67400         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
67401         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
67402         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
67403         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
67404         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
67405         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
67406         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
67407         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
67408         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
67409         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
67410         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
67411         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
67412         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
67413         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
67414         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
67415         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
67416         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
67417         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
67418         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
67419         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
67420         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
67421         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
67422         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
67423         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
67424         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
67425         * sysdeps/ieee754/s_lib_version.c: Likewise.
67426         * sysdeps/ieee754/s_matherr.c: Likewise.
67427         * sysdeps/ieee754/s_signgam.c: Likewise.
67428         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
67429         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
67430         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
67431         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
67432         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
67433         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
67434         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
67435         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
67436         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
67437         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
67438         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
67439         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
67440         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
67441         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
67442         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
67443         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
67444         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67445         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
67446         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67447         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
67448         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
67449
67450 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67451
67452         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
67453         * sunrpc/rpc_main.c: Likewise.
67454         * sunrpc/rpc_svcout.c: Likewise.
67455
67456 2012-03-09  David S. Miller  <davem@davemloft.net>
67457
67458         * include/math_private.h: New file.
67459
67460 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67461
67462         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
67463         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
67464         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
67465         from <bits/socket_type.h>.
67466         (enum __socket_type): Don't define here.
67467         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
67468         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67469         bits/socket_type.h.
67470
67471         [BZ #13566]
67472         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
67473         checking __USE_GNU.
67474
67475         * Makerules ($(inst_includedir)/%.h): New rule.
67476         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
67477         (install-others): Remove variable setting.
67478         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
67479
67480 2012-03-08  Richard Henderson  <rth@twiddle.net>
67481
67482         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
67483         from macro to inline function; merge with the
67484         !__LIBC_INTERNAL_MATH_INLINES version.
67485         (__ieee754_sqrtf): Likewise.
67486
67487         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
67488         to inline function.
67489         (__rintf, __floor, __floorf): Likewise.
67490
67491         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
67492         macro to inline function.
67493         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
67494
67495         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
67496         not <math/math_private.h>.
67497
67498 2012-03-08  David S. Miller  <davem@davemloft.net>
67499
67500         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
67501         copyright year.
67502         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
67503
67504 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
67505
67506         * resolv/gai_misc.c (handle_requests): Fix struct timespec
67507         normalization.
67508         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
67509         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
67510
67511 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
67512
67513         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
67514         be defined individually, they must be defined as a block.  Define
67515         S for printing a string instead of hidint the different by using a
67516         macro for adding the 'l'.
67517         * stdio-common/tst-fphex-wide.c: Adjust.
67518
67519 2012-03-07  Marek Polacek  <polacek@redhat.com>
67520
67521         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
67522
67523 2012-03-08  Marek Polacek  <polacek@redhat.com>
67524
67525         [BZ #13806]
67526         * stdio-common/Makefile (tests): Add tst-fphex-wide.
67527         * stdio-common/tst-fphex.c: Define a few macros to make the
67528         test reusable.  Use them.
67529         * stdio-common/tst-fphex-wide.c: New file.
67530
67531 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
67532
67533         [BZ #6911]
67534         * manual/macros.texi (gnusystems): New macro.
67535         (nongnusystems): Likewise.
67536         (gnulinuxhurdsystems): Likewise.
67537         (gnuhurdsystems): Likewise..
67538         (gnulinuxsystems): Likewise.
67539         * manual/charset.texi: Use new macros or @theglibc{} to refer to
67540         variants of the GNU system, not "GNU system".
67541         * manual/conf.texi: Likewise.
67542         * manual/errno.texi: Likewise.  Update example of errno macro
67543         expansion.
67544         * manual/filesys.texi: Likewise.
67545         (getumask): Document as specific to GNU/Hurd.
67546         * manual/install.texi: Likewise.  Reword some references to
67547         GNU/Linux.
67548         * manual/intro.texi: Likewise.
67549         * manual/io.texi: Likewise.
67550         (File Name Portability): Detail which constraints are inapplicable
67551         to all GNU systems and which are only inapplicable to GNU/Hurd.
67552         * manual/job.texi: Likewise.
67553         * manual/llio.texi: Likewise.
67554         (O_NOCTTY): Document as present on GNU/Linux.
67555         * manual/maint.texi: Likewise.
67556         * manual/memory.texi: Likewise.
67557         * manual/pattern.texi: Likewise.
67558         * manual/pipe.texi: Likewise.
67559         * manual/process.texi: Likewise.
67560         * manual/resource.texi: Likewise.
67561         (RUSAGE_CHILDREN): Remove statement about specifying a particular
67562         child on GNU/Hurd.
67563         * manual/setjmp.texi: Likewise.
67564         * manual/signal.texi: Likewise.
67565         * manual/startup.texi: Likewise.
67566         * manual/stdio.texi: Likewise.
67567         * manual/terminal.texi: Likewise.
67568         (ONLCR): Document as POSIX.
67569         (OXTABS): Document availability on GNU/Linux as XTABS.
67570         (ONOEOT): Document availability separately from other bits.
67571         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
67572         * manual/time.texi: Likewise.
67573         * manual/users.texi: Likewise.
67574         * INSTALL: Regenerated.
67575         * sysdeps/gnu/errlist.c: Regenerated.
67576
67577         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
67578         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
67579         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
67580         puts.
67581         * configure: Regenerated.
67582
67583 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
67584
67585         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
67586         default includes instead of AC_HEADER_CHECK.
67587         * sysdeps/i386/configure: Regenerated.
67588
67589         [BZ #10716]
67590         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
67591         * math/s_cacoshf.c (__cacoshf): Likewise.
67592         * math/s_cacoshl.c (__cacoshl): Likewise.
67593         * math/s_casinh.c (__casinh): Set signs of result from argument.
67594         * math/s_casinhf.c (__casinhf): Likewise.
67595         * math/s_casinhl.c (__casinhl): Likewise.
67596         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
67597         (casinh_test): Add more tests.
67598         * sysdeps/i386/fpu/libm-test-ulps: Update.
67599         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67600
67601 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
67602
67603         * po/zh_TW.po: Update from translation team.
67604
67605         * login/Makefile (distribute): Remove variable.
67606         * catgets/Makefile: Likewise.
67607         * mach/Makefile: Likewise.
67608         * malloc/Makefile: Likewise.
67609         * misc/Makefile: Likewise.
67610         * iconv/Makefile: Likewise.
67611         * nscd/Makefile: Likewise.
67612         * hurd/Makefile: Likewise.
67613         * manual/Makefile: Likewise.
67614         * locale/Makefile: Likewise.
67615         * intl/Makefile: Likewise.
67616         * conform/Makefile: Likewise.
67617         * nss/Makefile: Likewise.
67618         * time/Makefile: Likewise.
67619         * soft-fp/Makefile: Likewise.
67620         * dirent/Makefile: Likewise.
67621         * gmon/Makefile: Likewise.
67622         * po/Makefile: Likewise.
67623         * rt/Makefile: Likewise.
67624         * socket/Makefile: Likewise.
67625         * math/Makefile: Likewise.
67626         * signal/Makefile: Likewise.
67627         * debug/Makefile: Likewise.
67628         * elf/Makefile: Likewise.
67629         * timezone/Makefile: Likewise.
67630         * stdlib/Makefile: Likewise.
67631         * iconvdata/Makefile: Likewise.
67632         * sunrpc/Makefile: Likewise.
67633         * io/Makefile: Likewise.
67634         * argp/Makefile: Likewise.
67635         * inet/Makefile: Likewise.
67636         * hesiod/Makefile: Likewise.
67637         * grp/Makefile: Likewise.
67638         * csu/Makefile: Likewise.
67639         * wctype/Makefile: Likewise.
67640         * crypt/Makefile: Likewise.
67641         * libio/Makefile: Likewise.
67642         * string/Makefile: Likewise.
67643         * nis/Makefile: Likewise.
67644         * resolv/Makefile: Likewise.
67645         * stdio-common/Makefile: Likewise.
67646         * wcsmbs/Makefile: Likewise.
67647         * dlfcn/Makefile: Likewise.
67648         * posix/Makefile: Likewise.
67649
67650         [BZ #6959]
67651         * timezone/Makefile: Don't install timezone files, just the programs
67652         and scripts.
67653
67654 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
67655
67656         * nss/databases.def: Add missing gshadow entry.
67657
67658         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
67659
67660 2012-03-06  Marek Polacek  <polacek@redhat.com>
67661
67662         [BZ #13726]
67663         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
67664         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
67665         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
67666         * stdio-common/tst-long-dbl-fphex.c: New file.
67667
67668 2012-03-06  David S. Miller  <davem@davemloft.net>
67669
67670         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
67671         (set_obp_int): New function.
67672         (get_obp_int): New function.
67673         (__get_clockfreq_via_dev_openprom): Likewise.
67674         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
67675         Avoid unused variable warnings on 'val' and use builtin_expect.
67676         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
67677         __builtin_expect.
67678         (INLINE_CLONE_SYSCALL): Likewise.
67679
67680 2012-03-05  David S. Miller  <davem@davemloft.net>
67681
67682         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67683
67684 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
67685
67686         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67687
67688         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
67689         only for |x| >= 40.
67690         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67691
67692 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
67693
67694         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
67695         Replace gettimeofday with __vdso_gettimeofday.
67696
67697         * sysdeps/unix/sysv/linux/x86_64/init-first.c
67698         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
67699         __vdso_clock_gettime and __vdso_getcpu.
67700
67701         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
67702         time with __vdso_time.
67703
67704 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67705
67706         * manual/lang.texi (size_t): Note types to which size_t may be
67707         equivalent with the GNU C Library, but do not describe when
67708         differences between them are significant.
67709
67710 2012-03-05  Andreas Jaeger  <aj@suse.de>
67711
67712         * sysdeps/i386/fpu/libm-test-ulps: Update.
67713
67714 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67715
67716         [BZ #3976]
67717         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
67718         (__ieee754_pow): Save and restore rounding mode and use
67719         round-to-nearest for main computations.
67720         * math/libm-test.inc (pow_test_tonearest): New function.
67721         (pow_test_towardzero): Likewise.
67722         (pow_test_downward): Likewise.
67723         (pow_test_upward): Likewise.
67724         (main): Call the new functions.
67725         * sysdeps/i386/fpu/libm-test-ulps: Update.
67726         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67727
67728         [BZ #3976]
67729         * math/libm-test.inc (cosh_test_tonearest): New function.
67730         (cosh_test_towardzero): Likewise.
67731         (cosh_test_downward): Likewise.
67732         (cosh_test_upward): Likewise.
67733         (sinh_test_tonearest): Likewise.
67734         (sinh_test_towardzero): Likewise.
67735         (sinh_test_downward): Likewise.
67736         (sinh_test_upward): Likewise.
67737         (main): Call the new functions.
67738         * sysdeps/i386/fpu/libm-test-ulps: Update.
67739         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67740
67741 2012-03-05  Tom de Vries  <tom@codesourcery.com>
67742
67743         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
67744         default stack guard is set in last bytes.
67745         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
67746
67747 2012-03-05  Kees Cook  <keescook@chromium.org>
67748
67749         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
67750
67751         [BZ #13656]
67752         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
67753         possibly allocate from heap instead of stack.
67754         * stdio-common/bug-vfprintf-nargs.c: New file.
67755         * stdio-common/Makefile (tests): Add nargs overflow test.
67756
67757 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
67758
67759         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67760
67761 2012-03-03  Marek Polacek  <polacek@redhat.com>
67762
67763         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
67764         * math/math_private.h: Likewise.
67765         * stdlib/tst-strtod.c: Likewise.
67766         * sysdeps/i386/i486/bits/atomic.h: Likewise.
67767         * sysdeps/x86_64/bits/atomic.h: Likewise.
67768
67769 2012-03-02  David S. Miller  <davem@davemloft.net>
67770
67771         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
67772         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
67773         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
67774         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
67775         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
67776         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
67777         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
67778         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
67779
67780 2012-03-02  Roland McGrath  <roland@hack.frob.com>
67781
67782         [BZ #13792]
67783         * manual/examples/README: New file, says the example source files
67784         can be used under GPL>=2.
67785         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
67786         line containing just "*/".
67787         * manual/examples/add.c: Add copyright header (GPL>=2).
67788         * manual/examples/argp-ex1.c: Likewise.
67789         * manual/examples/argp-ex2.c: Likewise.
67790         * manual/examples/argp-ex3.c: Likewise.
67791         * manual/examples/argp-ex4.c: Likewise.
67792         * manual/examples/atexit.c: Likewise.
67793         * manual/examples/db.c: Likewise.
67794         * manual/examples/dir.c: Likewise.
67795         * manual/examples/dir2.c: Likewise.
67796         * manual/examples/execinfo.c: Likewise.
67797         * manual/examples/filecli.c: Likewise.
67798         * manual/examples/filesrv.c: Likewise.
67799         * manual/examples/fmtmsgexpl.c: Likewise.
67800         * manual/examples/genpass.c: Likewise.
67801         * manual/examples/inetcli.c: Likewise.
67802         * manual/examples/inetsrv.c: Likewise.
67803         * manual/examples/isockad.c: Likewise.
67804         * manual/examples/longopt.c: Likewise.
67805         * manual/examples/memopen.c: Likewise.
67806         * manual/examples/memstrm.c: Likewise.
67807         * manual/examples/mkfsock.c: Likewise.
67808         * manual/examples/mkisock.c: Likewise.
67809         * manual/examples/mygetpass.c: Likewise.
67810         * manual/examples/pipe.c: Likewise.
67811         * manual/examples/popen.c: Likewise.
67812         * manual/examples/rprintf.c: Likewise.
67813         * manual/examples/search.c: Likewise.
67814         * manual/examples/select.c: Likewise.
67815         * manual/examples/setjmp.c: Likewise.
67816         * manual/examples/sigh1.c: Likewise.
67817         * manual/examples/sigusr.c: Likewise.
67818         * manual/examples/stpcpy.c: Likewise.
67819         * manual/examples/strdupa.c: Likewise.
67820         * manual/examples/strftim.c: Likewise.
67821         * manual/examples/strncat.c: Likewise.
67822         * manual/examples/subopt.c: Likewise.
67823         * manual/examples/swapcontext.c: Likewise.
67824         * manual/examples/termios.c: Likewise.
67825         * manual/examples/testopt.c: Likewise.
67826         * manual/examples/testpass.c: Likewise.
67827         * manual/examples/timeval_subtract.c: Likewise.
67828
67829         [BZ #13792]
67830         * manual/time.texi (Elapsed Time): Move timeval_subtract example
67831         function to ...
67832         * manual/timeval_subtract.c.texi: ... here, new file.
67833
67834 2012-03-02  David S. Miller  <davem@davemloft.net>
67835
67836         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
67837
67838 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
67839
67840         [BZ #3976]
67841         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
67842         (__sin): Save and restore rounding mode and use round-to-nearest
67843         for all computations.
67844         (__cos): Save and restore rounding mode and use round-to-nearest
67845         for all computations.
67846         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
67847         <fenv.h>.
67848         (tan): Save and restore rounding mode and use round-to-nearest for
67849         all computations.
67850         * math/libm-test.inc (cos_test_tonearest): New function.
67851         (cos_test_towardzero): Likewise.
67852         (cos_test_downward): Likewise.
67853         (cos_test_upward): Likewise.
67854         (sin_test_tonearest): Likewise.
67855         (sin_test_towardzero): Likewise.
67856         (sin_test_downward): Likewise.
67857         (sin_test_upward): Likewise.
67858         (tan_test_tonearest): Likewise.
67859         (tan_test_towardzero): Likewise.
67860         (tan_test_downward): Likewise.
67861         (tan_test_upward): Likewise.
67862         (main): Call the new functions.
67863         * sysdeps/i386/fpu/libm-test-ulps: Update.
67864         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67865
67866         [BZ #10135]
67867         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
67868         small n, then large n, before computing and testing k+n.
67869         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
67870         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
67871         Likewise.
67872         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
67873         Likewise.
67874         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
67875         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
67876         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
67877         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
67878         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
67879         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
67880         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
67881         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
67882         * math/libm-test.inc (scalbn_test): Add more tests.
67883         (scalbln_test): Likewise.
67884
67885         * manual/filesys.texi (mode_t): Describe constraints on size and
67886         signedness, not exact equivalence to a particular type.
67887         (ino_t): Likewise.
67888         (ino64_t): Likewise.
67889         (dev_t): Likewise.
67890         (nlink_t): Likewise.
67891         (blkcnt_t): Likewise.
67892         (blkcnt64_t): Likewise.
67893         * manual/llio.texi (off_t): Likewise.
67894
67895         [BZ #3976]
67896         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
67897         (__ieee754_exp): Save and restore rounding mode and use
67898         round-to-nearest for all computations.
67899         * math/libm-test.inc (exp_test_tonearest): New function.
67900         (exp_test_towardzero): Likewise.
67901         (exp_test_downward): Likewise.
67902         (exp_test_upward): Likewise.
67903         (main): Call the new functions.
67904         * sysdeps/i386/fpu/libm-test-ulps: Update.
67905         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67906
67907 2012-03-01  Chris Demetriou  <cgd@google.com>
67908
67909         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
67910         have predictable order.
67911
67912 2012-03-01  David S. Miller  <davem@davemloft.net>
67913
67914         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
67915
67916         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
67917         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
67918         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
67919         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
67920
67921         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
67922         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
67923         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
67924         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
67925         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
67926         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
67927         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
67928         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
67929         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
67930
67931         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67932
67933         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
67934         * sysdeps/sparc/fpu/libm-test-ulps: to here.
67935         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
67936
67937         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
67938         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
67939         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
67940         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
67941         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
67942         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
67943         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
67944         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
67945         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
67946         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
67947         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
67948         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
67949         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
67950         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
67951         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
67952         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
67953         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
67954         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
67955         * sysdeps/sparc/elf/configure: Regenerated.
67956
67957 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
67958
67959         * configure.in (AS, LD): Require binutils 2.20 or later.
67960         * configure: Regenerated.
67961         * manual/install.texi (Tools for Compilation): Give binutils 2.20
67962         as required minimum version.
67963         * INSTALL: Regenerated.
67964
67965         [BZ #2541]
67966         [BZ #4108]
67967         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
67968         before squaring exponent.
67969         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
67970         bottom long double and 27 bits of top long double before squaring
67971         exponent.
67972         * math/libm-test.inc (erfc_test): Add more tests.
67973         * sysdeps/i386/fpu/libm-test-ulps: Update.
67974         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
67975         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67976
67977 2012-03-01  Kai Tietz  <ktietz@redhat.com>
67978
67979         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
67980         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
67981         containing bit-fields.
67982         * soft-fp/extended.h (_FP_UNION_E): Likewise.
67983         * soft-fp/single.h (_FP_UNION_S): Likewise.
67984         * soft-fp/double.h (_FP_UNION_D): Likewise.
67985
67986 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
67987
67988         [BZ #13786]
67989         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
67990         not include ../strcmp.S.
67991         [USE_AS_STRNCASECMP_L]: Likewise.
67992         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
67993         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
67994         * sysdeps/i386/i686/multiarch/strncase_l-c.c
67995         (__strncasecmp_l_ia32): Define as alias to
67996         __strncasecmp_l_nonascii.
67997
67998         [BZ #5794]
67999         * math/libm-test.inc (expm1_test): Add test for bug 5794.
68000         * sysdeps/i386/fpu/libm-test-ulps: Update.
68001         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68002
68003         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
68004         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68005
68006 2012-02-29  Jeff Law  <law@redhat.com>
68007
68008         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
68009         out of bounds read.
68010
68011 2012-02-29  Marek Polacek  <polacek@redhat.com>
68012
68013         [BZ #13706]
68014         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
68015         * elf/Makefile: Add rules to run tst-unused-dep.out.
68016
68017 2012-02-28  David S. Miller  <davem@davemloft.net>
68018
68019         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
68020         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
68021         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
68022         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
68023         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
68024         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
68025
68026 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68027
68028         * math/libm-test.inc (llround_test): Move one test from
68029         lround_test.  Use TEST_f_L in moved test.
68030         (lround_test): Move misplaced test to llround_test.  Add testcase
68031         from bug 2561.
68032
68033 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
68034
68035         * sysdeps/x86_64/fpu/e_expf.S: New file.
68036         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
68037
68038 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
68039
68040         [BZ #13637]
68041         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
68042         of remain_len that may cause incomplete multi-byte character and
68043         false match.
68044         * posix/bug-regex33.c: New file.
68045         * posix/Makefile (tests): Add bug-regex33.
68046
68047 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
68048
68049         * manual/macros.texi: New file.
68050         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
68051         * manual/libc.texinfo: Include macros.texi.
68052         * manual/creatute.texi: Likewise.
68053         * manual/install.texi: Likewise.
68054         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
68055         @glibcadj{} in references to the GNU C Library.
68056         * manual/charset.texi: Likewise.
68057         * manual/conf.texi: Likewise.
68058         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
68059         when not using those macros.
68060         * manual/creature.texi: Likewise.
68061         * manual/crypt.texi: Likewise.
68062         * manual/errno.texi: Likewise.
68063         * manual/filesys.texi: Likewise.
68064         * manual/header.texi: Likewise.
68065         * manual/install.texi: Likewise.
68066         * manual/intro.texi: Likewise.
68067         * manual/io.texi: Likewise.
68068         * manual/job.texi: Likewise.
68069         * manual/lang.texi: Likewise.
68070         * manual/libc.texiinfo: Likewise.
68071         * manual/llio.texi: Likewise.
68072         * manual/locale.texi: Likewise.
68073         * manual/maint.texi: Likewise.
68074         * manual/math.texi: Likewise.
68075         * manual/memory.texi: Likewise.
68076         * manual/message.texi: Likewise.
68077         * manual/nss.texi: Likewise.
68078         * manual/pattern.texi: Likewise.
68079         * manual/process.texi: Likewise.
68080         * manual/resource.texi: Likewise.
68081         * manual/search.texi: Likewise.
68082         * manual/setjmp.texi: Likewise.
68083         * manual/signal.texi: Likewise.
68084         * manual/socket.texi: Likewise.
68085         * manual/startup.texi: Likewise.
68086         * manual/stdio.texi: Likewise.
68087         * manual/string.texi: Likewise.
68088         * manual/sysinfo.texi: Likewise.
68089         * manual/syslog.texi: Likewise.
68090         * manual/terminal.texi: Likewise.
68091         * manual/time.texi: Likewise.
68092         * manual/users.texi: Likewise.
68093         * INSTALL: Regenerated.
68094         * NOTES: Regenerated.
68095         * sysdeps/gnu/errlist.c: Regenerated.
68096
68097 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
68098
68099         * include/dirent.h: Include <dirstream.h> before
68100         <dirent/dirent.h>.
68101
68102 2012-02-28  David S. Miller  <davem@davemloft.net>
68103
68104         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
68105         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
68106         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
68107         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
68108
68109 2012-02-27  David S. Miller  <davem@davemloft.net>
68110
68111         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
68112         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
68113         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
68114         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
68115
68116         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
68117         frame pointer instead of stack pointer relative arg slot.
68118         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68119         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68120         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68121
68122 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
68123
68124         [BZ #3992]
68125         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
68126
68127 2012-02-27  David S. Miller  <davem@davemloft.net>
68128
68129         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
68130         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68131         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
68132         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
68133         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68134         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68135         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
68136         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
68137
68138 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68139
68140         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
68141         later.  Allow versions 5-9.
68142         * configure: Regenerated.
68143         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
68144         required minimum version and 4.6 as recommended version.  Do not
68145         mention bugs in GCC 2.7 and 2.8.
68146         * INSTALL: Regenerated.
68147
68148 2012-02-27  David S. Miller  <davem@davemloft.net>
68149
68150         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
68151         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
68152         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
68153         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
68154         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
68155         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
68156         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
68157         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
68158
68159         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
68160         manipulate bits before adding and subtracting TWO112[sx].
68161         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
68162
68163 2012-02-27  Roland McGrath  <roland@hack.frob.com>
68164
68165         [BZ #13775]
68166         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
68167         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
68168         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
68169         being in POSIX, because they are in 1003.1-2008.
68170
68171         * rt/tst-aio.c: Include <fcntl.h>.
68172         * rt/tst-aio7.c: Likewise.
68173         * rt/tst-aio64.c: Likewise.
68174
68175         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
68176
68177 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68178
68179         * manual/install.texi (--with-headers): Describe headers as
68180         interface headers, not private headers.
68181         (Specific advice for GNU/Linux systems): Describe use of headers
68182         from "make headers_install", not private headers from older
68183         kernels.
68184         * INSTALL: Regenerated.
68185         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
68186         Change to 2.6.19.
68187         * sysdeps/unix/sysv/linux/configure: Regenerated.
68188
68189         * manual/llio.texi (fclean): Remove documentation.
68190
68191         * manual/Makefile (libc-texi-generated): New variable.  Include
68192         version.texi.
68193         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
68194         $(libc-texi-generated), not duplicated list of files.
68195         (version.texi, stamp-version): New rules.
68196         (realclean): Remove $(libc-texi-generated), not individual files
68197         from that list.  Do not remove dir-add.texinfo.
68198         * manual/libc.texinfo: Comment out uses of edition numbers and
68199         references to printed manual.  Remove last-updated dates.
68200         (EDITION): Comment out.
68201         (ISBN): Likewise.
68202         (VERSION, UPDATED): Remove.
68203         (version.texi): Include.
68204
68205 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
68206
68207         * sysdeps/posix/spawni.c: Include <signal.h>.
68208         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
68209         * sysdeps/pthread/aio_fsync.c: Likewise.
68210
68211 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
68212
68213         * conform/Makefile (tests): Run only when not cross-compiling and
68214         when fast-check is not defined.
68215
68216         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
68217         * conform/data/limits.h-data: Fixes for POSIX2008.
68218         * conform/run-conformtest.sh: Run all tests.
68219         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
68220         headers.
68221         * include/bits/dlfcn.h: Likewise.
68222         * include/langinfo.h: Likewise.
68223         * include/monetary.h: Likewise.
68224         * include/sys/poll.h: Likewise.
68225
68226         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
68227         for __USE_GNU.
68228         * posix/spawn.h: Define __need_sigset_t.
68229         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
68230         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
68231         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
68232         to get sigevent_t only.
68233         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
68234         only for __USE_GNU.
68235         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
68236         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
68237         process_vm_writev only for __USE_GNU.
68238         * termios/termios.h: Declare tcgetsid also for POSIX2008.
68239
68240         * conform/Makefile: For now ignore errors from run-conformtest.
68241         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
68242         POSIX to avoid namespace pollution.  Don't prepend headers.
68243         * conform/data/aio.h-data: Fixes for POSIX testing.
68244         * conform/data/fcntl.h-data: Likewise.
68245         * conform/data/glob.h-data: Likewise.
68246         * conform/data/grp.h-data: Likewise.
68247         * conform/data/pthread.h-data: Likewise.
68248         * conform/data/pwd.h-data: Likewise.
68249         * conform/data/signal.h-data: Likewise.
68250         * conform/data/spawn.h-data: Likewise.
68251         * conform/data/stdio.h-data: Likewise.
68252         * conform/data/stdlib.h-data: Likewise.
68253         * conform/data/stropts.h-data: Likewise.
68254         * conform/data/sys/mman.h-data: Likewise.
68255         * conform/data/sys/stat.h-data: Likewise.
68256         * conform/data/sys/types.h-data: Likewise.
68257         * conform/data/sys/wait.h-data: Likewise.
68258         * conform/data/time.h-data: Likewise.
68259         * conform/data/unistd.h-data: Likewise.
68260         * conform/data/utime.h-data: Likewise.
68261
68262         * io/sys/stat.h: fchmod was always in POSIX.
68263         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
68264         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
68265         * rt/aio.h: Define __need_timespec before including <time.h>.
68266         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
68267         struct.  Add forward declaration of pthread_attr_t and use it in
68268         sigevent.
68269         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
68270         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
68271         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
68272         always remove CLK_TCK definition.
68273
68274 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
68275
68276         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
68277
68278 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
68279
68280         * conform/run-conformtest.sh: New file.
68281         * conform/Makefile: Run run-conformtest for tests.
68282         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
68283         support.
68284
68285         * conform/data/uchar.h-data: New file.
68286         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
68287         * conform/data/arpa/inet.h-data: Likewise.
68288         * conform/data/assert.h-data: Likewise.
68289         * conform/data/complex.h-data: Likewise.
68290         * conform/data/cpio.h-data: Likewise.
68291         * conform/data/ctype.h-data: Likewise.
68292         * conform/data/dirent.h-data: Likewise.
68293         * conform/data/dlfcn.h-data: Likewise.
68294         * conform/data/errno.h-data: Likewise.
68295         * conform/data/fcntl.h-data: Likewise.
68296         * conform/data/float.h-data: Likewise.
68297         * conform/data/fmtmsg.h-data: Likewise.
68298         * conform/data/fnmatch.h-data: Likewise.
68299         * conform/data/ftw.h-data: Likewise.
68300         * conform/data/glob.h-data: Likewise.
68301         * conform/data/grp.h-data: Likewise.
68302         * conform/data/iconv.h-data: Likewise.
68303         * conform/data/inttypes.h-data: Likewise.
68304         * conform/data/langinfo.h-data: Likewise.
68305         * conform/data/libgen.h-data: Likewise.
68306         * conform/data/limits.h-data: Likewise.
68307         * conform/data/locale.h-data: Likewise.
68308         * conform/data/math.h-data: Likewise.
68309         * conform/data/monetary.h-data: Likewise.
68310         * conform/data/mqueue.h-data: Likewise.
68311         * conform/data/ndbm.h-data: Likewise.
68312         * conform/data/net/if.h-data: Likewise.
68313         * conform/data/netdb.h-data: Likewise.
68314         * conform/data/netinet/in.h-data: Likewise.
68315         * conform/data/nl_types.h-data: Likewise.
68316         * conform/data/poll.h-data: Likewise.
68317         * conform/data/pthread.h-data: Likewise.
68318         * conform/data/pwd.h-data: Likewise.
68319         * conform/data/regex.h-data: Likewise.
68320         * conform/data/sched.h-data: Likewise.
68321         * conform/data/search.h-data: Likewise.
68322         * conform/data/semaphore.h-data: Likewise.
68323         * conform/data/setjmp.h-data: Likewise.
68324         * conform/data/signal.h-data: Likewise.
68325         * conform/data/spawn.h-data: Likewise.
68326         * conform/data/stdarg.h-data: Likewise.
68327         * conform/data/stdio.h-data: Likewise.
68328         * conform/data/stdlib.h-data: Likewise.
68329         * conform/data/string.h-data: Likewise.
68330         * conform/data/strings.h-data: Likewise.
68331         * conform/data/stropts.h-data: Likewise.
68332         * conform/data/sys/ipc.h-data: Likewise.
68333         * conform/data/sys/mman.h-data: Likewise.
68334         * conform/data/sys/msg.h-data: Likewise.
68335         * conform/data/sys/resource.h-data: Likewise.
68336         * conform/data/sys/select.h-data: Likewise.
68337         * conform/data/sys/sem.h-data: Likewise.
68338         * conform/data/sys/shm.h-data: Likewise.
68339         * conform/data/sys/socket.h-data: Likewise.
68340         * conform/data/sys/stat.h-data: Likewise.
68341         * conform/data/sys/statvfs.h-data: Likewise.
68342         * conform/data/sys/time.h-data: Likewise.
68343         * conform/data/sys/timeb.h-data: Likewise.
68344         * conform/data/sys/times.h-data: Likewise.
68345         * conform/data/sys/types.h-data: Likewise.
68346         * conform/data/sys/uio.h-data: Likewise.
68347         * conform/data/sys/un.h-data: Likewise.
68348         * conform/data/sys/utsname.h-data: Likewise.
68349         * conform/data/sys/wait.h-data: Likewise.
68350         * conform/data/syslog.h-data: Likewise.
68351         * conform/data/tar.h-data: Likewise.
68352         * conform/data/termios.h-data: Likewise.
68353         * conform/data/utime.h-data: Likewise.
68354         * conform/data/utmpx.h-data: Likewise.
68355         * conform/data/varargs.h-data: Likewise.
68356         * conform/data/wchar.h-data: Likewise.
68357         * conform/data/wctype.h-data: Likewise.
68358         * conform/data/wordexp.h-data: Likewise.
68359
68360         * include/stropts.h: New file.
68361         * include/uchar.h: New file.
68362         * include/aio.h: Changes to allow conformtest.pl to use the headers.
68363         * include/assert.h: Likewise.
68364         * include/ctype.h: Likewise.
68365         * include/dirent.h: Likewise.
68366         * include/dlfcn.h: Likewise.
68367         * include/fcntl.h: Likewise.
68368         * include/fnmatch.h: Likewise.
68369         * include/glob.h: Likewise.
68370         * include/grp.h: Likewise.
68371         * include/libio.h: Likewise.
68372         * include/locale.h: Likewise.
68373         * include/math.h: Likewise.
68374         * include/net/if.h: Likewise.
68375         * include/netdb.h: Likewise.
68376         * include/netinet/in.h: Likewise.
68377         * include/pthread.h: Likewise.
68378         * include/pwd.h: Likewise.
68379         * include/regex.h: Likewise.
68380         * include/sched.h: Likewise.
68381         * include/search.h: Likewise.
68382         * include/setjmp.h: Likewise.
68383         * include/signal.h: Likewise.
68384         * include/stdio.h: Likewise.
68385         * include/stdlib.h: Likewise.
68386         * include/string.h: Likewise.
68387         * include/sys/cdefs.h: Likewise.
68388         * include/sys/mman.h: Likewise.
68389         * include/sys/msg.h: Likewise.
68390         * include/sys/resource.h: Likewise.
68391         * include/sys/select.h: Likewise.
68392         * include/sys/socket.h: Likewise.
68393         * include/sys/stat.h: Likewise.
68394         * include/sys/statvfs.h: Likewise.
68395         * include/sys/time.h: Likewise.
68396         * include/sys/times.h: Likewise.
68397         * include/sys/uio.h: Likewise.
68398         * include/sys/utsname.h: Likewise.
68399         * include/sys/wait.h: Likewise.
68400         * include/termios.h: Likewise.
68401         * include/time.h: Likewise.
68402         * include/ulimit.h: Likewise.
68403         * include/unistd.h: Likewise.
68404         * include/utime.h: Likewise.
68405         * include/wchar.h: Likewise.
68406         * include/wctype.h: Likewise.
68407         * include/wordexp.h: Likewise.
68408
68409         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
68410
68411         * time/time.h: TIME_UTC must be a macro.
68412         Make timespec_get available for ISO C11 only as well.
68413
68414 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
68415
68416         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
68417         Reported by Peng Haitao <penght@cn.fujitsu.com>.
68418
68419 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68420
68421         * configure.in: Use -o not -a in test for unsupported multi-arch.
68422
68423 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68424
68425         * manual/texinfo.tex: Update to version 2012-01-19.16.
68426
68427 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68428
68429         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
68430
68431 2012-02-24  Roland McGrath  <roland@hack.frob.com>
68432
68433         [BZ #13738]
68434         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
68435         * manual/fdl-1.3.texi: New file.
68436         * manual/fdl-1.1.texi: File removed.
68437
68438         [BZ #13738]
68439         * manual/libc.texinfo (FDL_VERSION): New @set.
68440         Use it for mention of FDL in cover text.
68441         (Documentation License): Use it in @include file name.
68442
68443 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68444             Roland McGrath  <roland@hack.frob.com>
68445
68446         [BZ #5461]
68447         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
68448         (not LONG_LONG_MAX and LONG_LONG_MIN.
68449         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
68450         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
68451         name.
68452         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
68453
68454 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68455
68456         [BZ #2547]
68457         [BZ #11365]
68458         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
68459         manipulate bits before adding and subtracting TWO23[sx].
68460         * math/libm-test.inc (nearbyint_test): Add more tests.
68461
68462 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68463
68464         [BZ #2548]
68465         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
68466         bits before adding and subtracting TWO23[sx].
68467         * math/libm-test.inc (rint_test): Add more tests.
68468         (rint_test_tonearest): Likewise.
68469         (rint_test_towardzero): Likewise.
68470         (rint_test_downward): Likewise.
68471         (rint_test_upward: Likewise.
68472
68473 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68474
68475         [BZ #10110]
68476         * include/stdc-predef.h: New file.  Extracted from features.h.
68477         * include/features.h: Include stdc-predef.h.
68478         * Makefile (headers): Add stdc-predef.h.
68479         * CONFORMANCE (Compiler limitations): Update.
68480
68481 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68482
68483         * manual/libc.texinfo (VERSION, UPDATED): Revert.
68484
68485 2012-02-21  David S. Miller  <davem@davemloft.net>
68486
68487         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
68488         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68489
68490 2012-02-20  David S. Miller  <davem@davemloft.net>
68491
68492         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
68493         using a normal save/restore sequence, rather than allocating a
68494         dummy stack frame just to store a frame pointer and restore.
68495         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68496
68497 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68498
68499         * manual/install.texi: Fix stray word in line-wrapped comment.
68500
68501 2012-02-20  David S. Miller  <davem@davemloft.net>
68502
68503         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
68504         both binutils and gcc support GOTDATA.
68505
68506         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
68507         "rd %pc" in the PIC register setup sequences.
68508
68509         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
68510         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
68511         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68512         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
68513         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68514         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
68515         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
68516         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68517         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
68518         (SYSCALL_ERROR_HANDLER): Likewise.
68519         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68520         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68521         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
68522         (SYSCALL_ERROR_HANDLER): Likewise.
68523
68524         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
68525         (HAVE_GCC_GOTDATA): New.
68526         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
68527         relocation support in both binutils and gcc.
68528         * sysdeps/sparc/elf/configure: Regenerate.
68529
68530         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
68531         * sysdeps/sparc/sparc32/elf/configure: Delete.
68532         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
68533         * sysdeps/sparc/sparc64/elf/configure: Delete.
68534         * sysdeps/sparc/elf/configure.in: New file.
68535         * sysdeps/sparc/elf/configure: Generate.
68536
68537         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
68538         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
68539         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
68540         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
68541         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
68542
68543 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68544
68545         * manual/install.texi: Do not mention specific glibc version
68546         numbers.
68547         * manual/libc.texinfo (VERSION, UPDATED): Update.
68548         (@copying): Use @copyright{} and range of years.
68549
68550 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68551
68552         [BZ #13695]
68553         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
68554         [crti.S not in sysdirs] (generated): Do not append.
68555         [crti.S not in sysdirs] (omit-deps): Likewise.
68556         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
68557         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
68558         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
68559         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
68560         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
68561         Likewise.
68562         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
68563         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
68564         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
68565         * csu/defs.awk: Remove file.
68566         * sysdeps/generic/initfini.c: Likewise.
68567         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
68568         variable.
68569         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
68570         Likewise.
68571
68572 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68573
68574         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
68575         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
68576         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
68577         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
68578         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
68579         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
68580         <bits/epoll.h>.
68581         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
68582         (__EPOLL_PACKED): Define to empty if not defined by
68583         <bits/epoll.h>.
68584         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
68585         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68586         bits/epoll.h.
68587
68588 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68589
68590         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
68591         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
68592         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
68593         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
68594         <bits/timerfd.h>.
68595         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
68596         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68597         bits/timerfd.h.
68598
68599 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68600
68601         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
68602         in C locale.
68603         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68604         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
68605         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
68606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68607
68608 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
68609
68610         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
68611         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68612
68613 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
68614
68615         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
68616         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
68617         defined.
68618         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
68619         Likewise.
68620         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
68621         entry for 2.16.
68622
68623 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
68624
68625         * math/w_acos.c: Use non-signaling floating-point comparisons.
68626         * math/w_acosf.c: Likewise.
68627         * math/w_acosh.c: Likewise.
68628         * math/w_acoshf.c: Likewise.
68629         * math/w_acoshl.c: Likewise.
68630         * math/w_acosl.c: Likewise.
68631         * math/w_asin.c: Likewise.
68632         * math/w_asinf.c: Likewise.
68633         * math/w_asinl.c: Likewise.
68634         * math/w_atanh.c: Likewise.
68635         * math/w_atanhf.c: Likewise.
68636         * math/w_atanhl.c: Likewise.
68637         * math/w_exp2.c: Likewise.
68638         * math/w_exp2f.c: Likewise.
68639         * math/w_exp2l.c: Likewise.
68640         * math/w_j0.c: Likewise.
68641         * math/w_j0f.c: Likewise.
68642         * math/w_j0l.c: Likewise.
68643         * math/w_j1.c: Likewise.
68644         * math/w_j1f.c: Likewise.
68645         * math/w_j1l.c: Likewise.
68646         * math/w_jn.c: Likewise.
68647         * math/w_jnf.c: Likewise.
68648         * math/w_log.c: Likewise.
68649         * math/w_log10.c: Likewise.
68650         * math/w_log10f.c: Likewise.
68651         * math/w_log10l.c: Likewise.
68652         * math/w_log2.c: Likewise.
68653         * math/w_log2f.c: Likewise.
68654         * math/w_log2l.c: Likewise.
68655         * math/w_logf.c: Likewise.
68656         * math/w_logl.c: Likewise.
68657         * math/w_sqrt.c: Likewise.
68658         * math/w_sqrtf.c: Likewise.
68659         * math/w_sqrtl.c: Likewise.
68660         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
68661         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
68662         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
68663         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
68664         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
68665
68666 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68667
68668         [BZ #9739]
68669         * manual/string.texi (strnlen): Use correct parameter name in
68670         equivalent expression.
68671
68672 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68673
68674         [BZ #11174]
68675         * manual/users.texi (seteuid): Consistently use neweuid for
68676         argument name.
68677
68678 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68679
68680         [BZ #13704]
68681         * manual/nss.texi (Services in the NSS configuration): Correct
68682         list of services in example configuration file.
68683
68684 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
68685
68686         [BZ #11322]
68687         * manual/arith.texi: Remove statements about negative zero
68688         behaving identically to zero.
68689
68690 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68691
68692         [BZ #5993]
68693         * manual/install.texi: Do not document upgrading from libc5.
68694
68695 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68696
68697         [BZ #4596]
68698         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
68699
68700 2012-02-18  David S. Miller  <davem@davemloft.net>
68701
68702         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
68703         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
68704         %o7 across the call.
68705         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
68706         instead.
68707         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
68708         SETUP_PIC_REG_LEAF.
68709         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68710         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
68711         * sysdeps/sparc/crtn.S: Likewise.
68712
68713 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
68714
68715         * aout/Makefile: Remove.
68716
68717 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
68718
68719         [BZ #13058]
68720         * manual/examples/argp-ex1.c (main): Format definition in GNU
68721         style.
68722         * manual/examples/argp-ex2.c (main): Likewise.
68723         * manual/examples/argp-ex3.c (main): Likewise.
68724         * manual/examples/argp-ex4.c (main): Likewise.
68725         * manual/examples/longopt.c (main): Use new-style prototype
68726         definition.
68727         * manual/examples/strncat.c (main): Specify return type and use
68728         (void) for arguments.
68729         * manual/examples/subopt.c (main): Use char **argv argument.
68730
68731 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68732
68733         [BZ #5077]
68734         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
68735         rounding modes.
68736
68737 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
68738
68739         [BZ #6907]
68740         * manual/string.texi (strchr): Change when strchrnul is
68741         recommended.
68742
68743 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
68744
68745         [BZ #174]
68746         * manual/locale.texi (setlocale): Document LOCPATH.
68747
68748 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68749
68750         [BZ #10210]
68751         * manual/process.texi (execle): Move @dots{} before last argument.
68752
68753 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
68754
68755         [BZ #12047]
68756         * manual/charset.texi (Generic Charset Conversion): Fix typo
68757         (LC_TYPE -> LC_CTYPE).
68758
68759 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
68760
68761         [BZ #5805]
68762         * manual/arith.texi (scalbn): Use @var{} on parameter names.
68763         (scalbnf): Likewise.
68764         (scalbnl): Likewise.
68765         (scalbln): Likewise.
68766         (scalblnf): Likewise.
68767         (scalblnl): Likewise.
68768         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
68769         (vwarnx): Likewise.
68770         (verr): Likewise.
68771         (verrx): Likewise.
68772         * manual/filesys.texi (telldir): Use braces around return type.
68773         * manual/llio.texi (mmap): Add space after comma.
68774         (mmap64): Likewise.
68775         * manual/math.texi (jn): Use @var{} on parameter names.
68776         (jnf): Likewise.
68777         (jnl): Likewise.
68778         (yn): Likewise.
68779         (ynf): Likewise.
68780         (ynl): Likewise.
68781         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
68782         line.
68783         * manual/resource.texi (ulimit): Use @dots{} instead of literal
68784         "...".
68785         (sched_get_priority_min): Remove semicolon on @deftypefun line.
68786         (sched_get_priority_max): Likewise.
68787         * manual/signal.texi (sigvec): Add space after comma.
68788         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
68789         names.
68790         (if_indextoname): Likewise.
68791         (if_freenameindex): Likewise.
68792         (sendto): Use ',' instead of '.' in prototype.
68793         * manual/startup.texi (syscall): Use @dots{} instead of literal
68794         "...".
68795         * manual/stdio.texi (__fpending): Separate initial words of
68796         paragraph from @deftypefun line.
68797         * manual/syslog.texi (syslog): Use @dots{} instead of literal
68798         "...".
68799         (vsyslog): Use @var{} on parameter names.
68800         * manual/terminal.texi (stty): Use @var{} on parameter names.
68801         * manual/users.texi (getutmp): Use @var{} on parameter names.
68802         (getutmpx): Likewise.
68803
68804 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68805
68806         [BZ #6884]
68807         * manual/stdio.texi (fopen): Fix typos in description of
68808         ",ccs=STRING".
68809
68810 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
68811
68812         [BZ #4026]
68813         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
68814         get clock_id definition.
68815
68816 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
68817
68818         [BZ #4822]
68819         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
68820         (madvise): Cast every argument to void on its own.
68821
68822 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68823
68824         [BZ #9902]
68825         * manual/startup.texi (Exit Status): Fix typo.
68826
68827 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68828
68829         [BZ #10140]
68830         * manual/examples/argp-ex1.c: Include <stdlib.h>.
68831         * manual/examples/argp-ex2.c: Likewise.
68832         * manual/examples/argp-ex3.c: Likewise.
68833
68834 2012-02-16  Richard Henderson  <rth@redhat.com>
68835
68836         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
68837         * sysdeps/s390/s390-32/initfini.c: Remove.
68838         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
68839         * sysdeps/s390/s390-64/initfini.c: Remove.
68840
68841 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
68842
68843         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
68844         compiler output for sysdeps/generic/initfini.c.
68845         * sysdeps/sh/elf/initfini.c: Remove file.
68846
68847 2012-02-16  David S. Miller  <davem@davemloft.net>
68848
68849         [BZ #11494]
68850         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
68851
68852         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
68853         * sysdeps/sparc/crti.S: New file.
68854         * sysdeps/sparc/crtn.S: New file.
68855         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
68856         * sysdeps/sparc/sparc64/Makefile: Likewise.
68857
68858 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
68859
68860         [BZ #3335]
68861         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
68862
68863 2012-02-15  Roland McGrath  <roland@hack.frob.com>
68864
68865         [BZ #4822]
68866         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
68867
68868         * mach/devstream.c (cookie_io_functions_t): Macro removed.
68869         (write, read, close): Likewise.
68870         Patch by Aurelien Jarno <aurelien@aurel32.net>.
68871
68872 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
68873
68874         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
68875         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
68876         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
68877         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
68878         <bits/signalfd.h>.
68879         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
68880         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68881         bits/signalfd.h.
68882
68883 2012-02-14  Marek Polacek  <polacek@redhat.com>
68884
68885         * sysdeps/x86_64/crti.S: New file.
68886         * sysdeps/x86_64/crtn.S: New file.
68887         * sysdeps/x86_64/elf/initfini.c: Remove file.
68888
68889 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
68890
68891         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
68892         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
68893         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
68894         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
68895         <bits/inotify.h>.
68896         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
68897         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68898         bits/inotify.h.
68899
68900 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
68901
68902         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
68903         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
68904         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
68905         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
68906         <bits/eventfd.h>.
68907         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
68908         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68909         bits/eventfd.h.
68910
68911 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
68912
68913         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
68914         __feraiseexcept instead of feraiseexcept.
68915
68916         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
68917         nanosleep invocations.
68918         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
68919         strings, and add error checking for a nanosleep invocations.
68920
68921 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
68922
68923         Replace FSF snail mail address with URLs, as per GNU coding standards.
68924         Most of the snail mail addresses were wrong anyway, and omitting
68925         them makes the source code easier to maintain.  Almost all of the
68926         changes are to license notices and to locale LC_IDENTIFICATION
68927         addresses, except for this one:
68928         * manual/libc.texinfo: In "Published by", give the FSF's URL,
68929         not its snail mail address.
68930
68931 2012-02-09  Richard Henderson  <rth@twiddle.net>
68932
68933         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
68934         of kernel-features.h.
68935
68936         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
68937
68938 2012-02-08  Marek Polacek  <polacek@redhat.com>
68939
68940         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
68941         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
68942         * sysdeps/gnu/_G_config.h: Likewise.
68943         * sysdeps/generic/_G_config.h: Likewise.
68944
68945 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
68946
68947         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
68948         tests.
68949         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68950
68951         * sysdeps/powerpc/powerpc32/crti.S: New file.
68952         * sysdeps/powerpc/powerpc32/crtn.S: New file.
68953         * sysdeps/powerpc/powerpc64/crti.S: New file.
68954         * sysdeps/powerpc/powerpc64/crtn.S: New file.
68955
68956         * Makeconfig (have-initfini): Don't set.
68957         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
68958         * configure.in (nopic_initfini): Don't substitute.
68959         * config.h.in (HAVE_INITFINI): Don't #undef.
68960         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
68961         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
68962
68963 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
68964
68965         Support crti.S and crtn.S provided directly by architectures.
68966         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
68967         [crti.S in sysdirs] (omit-deps): Likewise.
68968         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
68969         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
68970         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
68971         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
68972         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
68973         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
68974         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
68975         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
68976         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
68977         compiler output for sysdeps/generic/initfini.c.
68978         * sysdeps/i386/elf/Makefile: Remove file.
68979         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
68980
68981 2012-02-07  Marek Polacek  <polacek@redhat.com>
68982
68983         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
68984         * sysdeps/gnu/_G_config.h: Likewise.
68985         * sysdeps/mach/hurd/_G_config.h: Likewise.
68986
68987 2012-02-07  Marek Polacek  <polacek@redhat.com>
68988
68989         * math/Makefile (tests): Add tst-CMPLX2.
68990         * math/tst-CMPLX2.c: New file.
68991
68992 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
68993
68994         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
68995
68996         * math/libm-test.inc (jn_test): Add missing L suffix.
68997
68998 2012-02-06  Marek Polacek  <polacek@redhat.com>
68999
69000         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
69001         * sysdeps/i386/fpu/e_powf.S: Likewise.
69002         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
69003         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
69004         * sysdeps/i386/fpu/e_acosh.S: Likewise.
69005         * sysdeps/i386/fpu/e_pow.S: Likewise.
69006         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
69007         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
69008         * sysdeps/i386/fpu/s_expm1.S: Likewise.
69009         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
69010         * sysdeps/i386/fpu/e_log2.S: Likewise.
69011         * sysdeps/i386/fpu/e_log2l.S: Likewise.
69012         * sysdeps/i386/fpu/e_scalb.S: Likewise.
69013         * sysdeps/i386/fpu/e_powl.S: Likewise.
69014         * sysdeps/i386/fpu/s_log1p.S: Likewise.
69015         * sysdeps/i386/fpu/e_log10f.S: Likewise.
69016         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
69017         * sysdeps/i386/fpu/e_logl.S: Likewise.
69018         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
69019         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
69020         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
69021         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
69022         * sysdeps/i386/fpu/e_log2f.S: Likewise.
69023         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
69024         * sysdeps/i386/fpu/e_log.S: Likewise.
69025         * sysdeps/i386/fpu/s_cexp.S: Likewise.
69026         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
69027         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
69028         * sysdeps/i386/fpu/e_logf.S: Likewise.
69029         * sysdeps/i386/fpu/e_log10l.S: Likewise.
69030         * sysdeps/i386/fpu/e_atanh.S: Likewise.
69031         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
69032         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
69033         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
69034         * sysdeps/i386/fpu/e_log10.S: Likewise.
69035         * sysdeps/i386/fpu/s_frexp.S: Likewise.
69036         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
69037         * sysdeps/i386/fpu/s_asinh.S: Likewise.
69038         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
69039         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
69040         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
69041         * sysdeps/i386/asm-syntax.h: Likewise.
69042         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
69043         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
69044         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
69045         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
69046         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
69047         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
69048         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
69049         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
69050         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
69051         * sysdeps/powerpc/sysdep.h: Likewise.
69052         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
69053         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
69054
69055 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69056
69057         [BZ #411]
69058         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
69059
69060 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69061
69062         * sysdeps/i386/sysdep.h: Include <features.h>.
69063         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
69064         version.
69065
69066 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
69067
69068         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
69069         Define.
69070         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
69071         LOAD_PIC_REG_STR.
69072
69073 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69074
69075         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
69076         (SETUP_PIC_REG): Use GET_PC_THUNK.
69077         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
69078         macro.
69079
69080 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69081
69082         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
69083         for non-PIC compilation.
69084         (SETUP_PIC_REG): Add .p2align directive.
69085         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
69086         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
69087         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
69088         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
69089         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
69090         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
69091         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
69092         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
69093         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
69094         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
69095         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
69096         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
69097         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
69098         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
69099         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
69100         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
69101         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
69102         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
69103         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
69104         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
69105         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
69106         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
69107         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
69108         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
69109         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
69110         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
69111         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
69112         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
69113         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
69114         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
69115         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
69116         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
69117         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
69118         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
69119         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
69120         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
69121         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
69122         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
69123         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
69124         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
69125         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
69126
69127 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69128
69129         * math/tst-CMPLX.c: Include <stdio.h>.
69130
69131 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
69132
69133         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
69134         float.
69135         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69136         * sysdeps/sparc/bits/mathdef.h: Likewise.
69137
69138 2012-01-31  Marek Polacek  <polacek@redhat.com>
69139
69140         * libio/libio.h: Don't define _PARAMS.
69141         * locale/programs/config.h: Don't define PARAMS.
69142         * stdlib/strtol_l.c: Likewise.
69143         (__strtol_l): Remove PARAMS from the prototype.
69144
69145 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
69146
69147         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
69148         names.  Just use the correct names.  Remove unnecessary wrapper
69149         functions.
69150         * malloc/arena.c: Likewise.
69151         * malloc/hooks.c: Likewise.
69152
69153         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
69154         ARENA_TEST says not to.  Simplify test for creation of a new arena.
69155         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
69156
69157 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
69158
69159         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
69160         into tail calls.
69161         (update_get_addr): New function.
69162         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
69163         GET_ADDR_MODULE parameter.
69164
69165 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69166
69167         * crypt/cert.c: Remove __STDC__ conditionals.
69168         * crypt/crypt-entry.c: Likewise.
69169         * crypt/crypt_util.c: Likewise.
69170         * libio/filedoalloc.c: Likewise.
69171         * libio/fileops.c: Likewise.
69172         * libio/genops.c: Likewise.
69173         * libio/iofclose.c: Likewise.
69174         * libio/iofdopen.c: Likewise.
69175         * libio/iofopen.c: Likewise.
69176         * libio/iofopen64.c: Likewise.
69177         * libio/iogetdelim.c: Likewise.
69178         * libio/iopopen.c: Likewise.
69179         * libio/obprintf.c: Likewise.
69180         * libio/oldfileops.c: Likewise.
69181         * libio/oldiofclose.c: Likewise.
69182         * libio/oldiofdopen.c: Likewise.
69183         * libio/oldiofopen.c: Likewise.
69184         * libio/oldiopopen.c: Likewise.
69185         * libio/wfiledoalloc.c: Likewise.
69186         * libio/wgenops.c: Likewise.
69187         * locale/programs/xmalloc.c: Likewise.
69188         * misc/syslog.c: Likewise.
69189         * stdio-common/xbug.c: Likewise.
69190         * string/memchr.c: Likewise.
69191         * string/memcmp.c: Likewise.
69192         * string/memrchr.c: Likewise.
69193         * string/rawmemchr.c: Likewise.
69194         * sysdeps/posix/getcwd.c: Likewise.
69195         * time/strftime_l.c: Likewise.
69196
69197 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69198
69199         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
69200         * config.make.in (config-cflags-sse2avx): Define.
69201         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
69202         Fix typo.
69203
69204 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
69205
69206         * scripts/config.guess: Update from upstream config git repository.
69207         * scripts/config.sub: Likewise.
69208
69209 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
69210
69211         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
69212         (EM_NUM): Update.
69213         (R_TILEPRO_*, R_TILEGX_*): New macros.
69214
69215         * scripts/firstversions.awk: Fix bug in version range handling.
69216
69217         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
69218
69219         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
69220
69221         * include/sys/epoll.h: New file.
69222         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
69223         libc_hidden_def.
69224
69225 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
69226
69227         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
69228         Avoid unnecessary __WORDSIZE == 64 test.
69229         (fmaxf): Use VEX format if possible.
69230         (fmax): Likewise.
69231         (fminf): Likewise.
69232         (fmin): Likewise.
69233
69234         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
69235         * math/math_private.h: Remove libc_fegetround* and
69236         libc_fesetround*.
69237         * sysdeps/i386/configure.in: Check for -msse2avx.
69238         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
69239         also if SSE2AVX is defined.
69240         Remove libc_fegetround* and libc_fesetround*.
69241         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
69242         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
69243         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
69244         of HAS_YMM_USABLE.
69245         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69246         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69247         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69248         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69249         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69250
69251         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
69252
69253 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69254
69255         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
69256         size is not set.
69257         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
69258
69259 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
69260
69261         [BZ #13618]
69262         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
69263         relocation.
69264         * Makeconfig (libm): Define.
69265         * elf/Makefile: Add rules to build and run tst-relsort1.
69266         * elf/tst-relsort1.c: New file.
69267         * elf/tst-relsort1mod1.c: New file.
69268         * elf/tst-relsort1mod2.c: New file.
69269
69270 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
69271
69272         * math/s_ldexp.c: Remove __STDC__ conditionals.
69273         * math/s_ldexpf.c: Likewise.
69274         * math/s_ldexpl.c: Likewise.
69275         * math/s_nextafter.c: Likewise.
69276         * math/s_nexttowardf.c: Likewise.
69277         * math/s_significand.c: Likewise.
69278         * math/s_significandf.c: Likewise.
69279         * math/s_significandl.c: Likewise.
69280         * math/w_jnl.c: Likewise.
69281         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
69282         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
69283         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
69284         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
69285         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
69286         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
69287         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
69288         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
69289         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
69290         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
69291         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
69292         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
69293         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
69294         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
69295         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
69296         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
69297         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
69298         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
69299         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
69300         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
69301         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
69302         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
69303         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
69304         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
69305         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
69306         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
69307         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
69308         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
69309         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
69310         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
69311         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
69312         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
69313         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
69314         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
69315         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
69316         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
69317         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
69318         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
69319         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
69320         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
69321         * sysdeps/ieee754/k_standard.c: Likewise.
69322         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
69323         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
69324         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
69325         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
69326         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
69327         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
69328         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
69329         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
69330         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
69331         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
69332         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
69333         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
69334         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
69335         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
69336         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
69337         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
69338         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
69339         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
69340         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
69341         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
69342         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
69343         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
69344         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
69345         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
69346         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
69347         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
69348         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
69349         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
69350         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
69351         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
69352         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
69353         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
69354         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
69355         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
69356         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
69357         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
69358         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
69359         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
69360         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
69361         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
69362         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
69363         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
69364         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
69365         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
69366         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
69367         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
69368         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
69369         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
69370         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
69371         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
69372         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
69373         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
69374         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
69375         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
69376         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
69377         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
69378         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
69379         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
69380         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
69381         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
69382         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
69383         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
69384         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
69385         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
69386         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
69387         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
69388         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
69389         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
69390         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
69391         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
69392         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
69393         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
69394         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
69395         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
69396         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
69397         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
69398         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
69399         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
69400         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
69401         * sysdeps/ieee754/s_matherr.c: Likewise.
69402         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
69403         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
69404         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
69405         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
69406
69407 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69408
69409         * crypt/md5.h: Remove __STDC__ conditionals.
69410         * libio/libioP.h: Likewise.
69411         * locale/programs/config.h: Likewise.
69412         * sysdeps/generic/sysdep.h: Likewise.
69413         * sysdeps/i386/asm-syntax.h: Likewise.
69414         * sysdeps/s390/asm-syntax.h: Likewise.
69415         * sysdeps/unix/sysdep.h: Likewise.
69416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
69417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
69418
69419 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69420
69421         * libio/libio.h: Remove __STDC__ conditionals.
69422         * malloc/obstack.h: Likewise.
69423         * math/complex.h: Likewise.
69424         * math/math.h: Likewise.
69425         * sysdeps/generic/_G_config.h: Likewise.
69426         * sysdeps/gnu/_G_config.h: Likewise.
69427         * sysdeps/mach/hurd/_G_config.h: Likewise.
69428         * sysdeps/powerpc/bits/mathdef.h: Likewise.
69429         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69430         * sysdeps/sparc/bits/mathdef.h: Likewise.
69431
69432 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
69433
69434         [BZ #13583]
69435         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
69436         Clean up HAS_* macros.
69437         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
69438         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
69439         possible.
69440         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
69441         HAS_AVX.
69442         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69443         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69444         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69445         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69446         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69447
69448 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
69449
69450         * elf/tst-unique3.cc (gets): Remove declaration.
69451         * elf/tst-unique3lib.cc (gets): Likewise.
69452         * elf/tst-unique3lib2.cc (gets): Likewise.
69453         * elf/tst-unique4.cc (gets): Likewise.
69454
69455 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
69456
69457         * include/stdio.h: Add C++ protection.  Add gets declarations and
69458         definitions.
69459         * debug/tst-chk1.c: Don't declare gets here.
69460         * stdio-common/tst-gets.c: Likewise.
69461
69462 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69463
69464         * posix/glob: Remove directory.
69465
69466 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69467
69468         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
69469
69470 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
69471
69472         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
69473         of the non-standard EPFNOSUPPORT.
69474
69475 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69476
69477         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
69478         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
69479         ANYWHERE set to 1 only on KERN_NO_SPACE error.
69480
69481 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
69482
69483         * wcsmbs/uchar.h: Test __STDC_VERSION__.
69484
69485 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
69486
69487         * nscd/aicache.c (addhstaiX): Do not cache negative results of
69488         transient errors.
69489         * nscd/grpcache.c (cache_addgr): Likewise.
69490         * nscd/hstcache.c (cache_addhst): Likewise.
69491         * nscd/initgrcache.c (addinitgroupsX): Likewise.
69492         * nscd/pwdcache.c (cache_addpw): Likewise.
69493         * nscd/servicescache.c (cache_addserv): Likewise.
69494
69495 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
69496
69497         * malloc/malloc.c: Various cleanups.
69498         * malloc/hooks.c: Likewise.
69499
69500         * stdlib/Makefile (tests): Add bug-fmtmsg1.
69501         * stdlib/bug-fmtmsg1.c: New file.
69502
69503         * stdlib/fmtmsg.c (init): Add missing unlock.
69504         Patch by Peng Haitao <penght@cn.fujitsu.com>.
69505
69506 2012-01-12  Marek Polacek  <polacek@redhat.com>
69507
69508         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
69509         and _GNU_SOURCE.
69510
69511 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
69512
69513         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
69514         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
69515         macro to ensure uniqueness of label name.
69516         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
69517         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
69518
69519 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
69520
69521         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
69522
69523         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
69524         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
69525         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
69526         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
69527
69528 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
69529
69530         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
69531
69532         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
69533         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
69534         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
69535
69536         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
69537
69538         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
69539         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
69540         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
69541         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
69542
69543         * math/bits/math-finite.h: Add ldexp support.
69544
69545 2012-01-10  Marek Polacek  <polacek@redhat.com>
69546
69547         * locale/programs/localedef.h (show_archive_content): Add noreturn
69548         attribute.
69549
69550 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
69551
69552         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
69553
69554 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69555
69556         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
69557
69558         * io/Makefile (headers): Add bits/poll2.h.
69559
69560 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
69561
69562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
69563         typo #include statement.
69564
69565 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69566
69567         * include/sys/cdefs.h: Define __attribute_alloc_size.
69568         * catgets/gencat.c: Add alloc_size attribute and apply consistently
69569         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
69570         * elf/pldd.c: Likewise.
69571         * iconv/iconv_charmap.c: Likewise.
69572         * iconv/iconvconfig.c: Likewise.
69573         * iconv/strtab.c: Likewise.
69574         * locale/programs/locale.c: Likewise.
69575         * locale/programs/localedef.h: Likewise.
69576         * locale/programs/simple-hash.c: Likewise.
69577         * nscd/nscd.h: Likewise.
69578         * nss/makedb.c: Likewise.
69579         * sysdeps/generic/ldconfig.h: Likewise.
69580         * locale/programs/localedef.c: Remove xmalloc prototype.
69581         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
69582
69583 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
69584
69585         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
69586         appropriate.
69587
69588 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69589
69590         * math/Makefile (tests): Add tst-CMPLX.
69591         * math/tst-CMPLX.c: New file.
69592
69593         * math/complex.h (CMPLXL): Fix typo.
69594
69595         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
69596         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
69597         GLIBC_2.16.
69598         * debug/tst-chk1.c: Add poll and ppoll tests.
69599         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
69600         * include/sys/poll.h: Add hidden proto for ppoll.
69601         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
69602         * sysdeps/mach/hurd/ppoll.c: Likewise.
69603         * io/ppoll.c: Likewise.
69604         * debug/poll_chk.c: New file.
69605         * debug/ppoll_chk.c: New file.
69606         * include/bits/poll2.h: New file.
69607         * io/bits/poll2.h: New file.
69608
69609         [BZ #1350]
69610         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
69611
69612         * configure.in: static is always set to yes.  Remove.
69613         * config.make.in: Don't set build-static.
69614         * Makeconfig: Remove use of build-static.
69615         * dlfcn/Makefile: Likewise.
69616         * elf/Makefile: Likewise.
69617         * math/Makefile: Likewise.
69618         * misc/Makefile: Likewise.
69619         * nptl/Makefile: Likewise.
69620         * sysdeps/mach/hurd/Makefile: Likewise.
69621
69622         * configure.in: PWD_P is not used anymore.
69623         * config.make.in: Remove PWD_P entry.
69624
69625         * configure.in: Remove last remnants of RANLIB.
69626         No need to check for signed size_t anymore.
69627         Don't set libc_commonpagesize and libc_relro_required here for Alpha
69628         and IA-64.
69629         Remove __builtin_expect test because we require at least gcc 3.4.
69630         * aclocal.m4: Likewise.
69631
69632         * wcsmbs/mbrtoc16.c: Implement using towc function.
69633         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
69634         * wcsmbs/wcsmbsload.c: Likewise.
69635         * iconv/gconv_simple.c: Likewise.
69636         * iconv/gconv_int.h: Likewise.
69637         * iconv/gconv_builtin.h: Likewise.
69638         * iconv/iconv_prog.c: Remove CHAR16 handling.
69639
69640         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
69641
69642         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
69643
69644         * configure.in: Remove --with-elf and --enable-bounded options.
69645         Dont set base_machine for ia64.  More non-ELF conditions removed.
69646         Remove testing and setting of leading underscore information.
69647         * config.make.in (build-bounded): Set to no.
69648         * config.h.in: Remove NO_UNDERSCORES entry.
69649         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
69650         them.
69651         * csu/start.c: Remove !NO_UNDERSCORE code.
69652         * locale/localeinfo.h: Likewise.
69653         * sysdeps/generic/machine-gmon.h: Likewise.
69654         * sysdeps/generic/sysdep.h: Likewise.
69655         * sysdeps/i386/sysdep.h: Likewise.
69656         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
69657         * sysdeps/mach/sysdep.h: Likewise.
69658         * sysdeps/s390/s390-32/sysdep.h: Likewise.
69659         * sysdeps/s390/s390-64/sysdep.h: Likewise.
69660         * sysdeps/sh/sysdep.h: Likewise.
69661         * sysdeps/sparc/sparc32/alloca.S: Likewise.
69662         * sysdeps/unix/i386/sysdep.S: Likewise.
69663         * sysdeps/unix/sparc/start.c: Likewise.
69664         * sysdeps/unix/sparc/sysdep.S: Likewise.
69665         * sysdeps/unix/sparc/sysdep.h: Likewise.
69666         * sysdeps/unix/start.c: Likewise.
69667         * sysdeps/unix/x86_64/sysdep.S: Likewise.
69668         * sysdeps/x86_64/sysdep.h: Likewise.
69669
69670 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
69671
69672         [BZ #13553]
69673         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
69674         for non-gcc.
69675         * argp/argp-fmtstream.h: Use const instead __const.
69676         * argp/argp.h: Likewise.
69677         * assert/assert.h: Likewise.
69678         * bits/fenv.h: Likewise.
69679         * bits/sched.h: Likewise.
69680         * bits/sigset.h: Likewise.
69681         * bits/sigthread.h: Likewise.
69682         * catgets/nl_types.h: Likewise.
69683         * conform/data/pthread.h-data: Likewise.
69684         * crypt/crypt-private.h: Likewise.
69685         * crypt/crypt.h: Likewise.
69686         * crypt/crypt_util.c: Likewise.
69687         * ctype/ctype.h: Likewise.
69688         * debug/execinfo.h: Likewise.
69689         * debug/mbsnrtowcs_chk.c: Likewise.
69690         * debug/mbsrtowcs_chk.c: Likewise.
69691         * debug/wcsnrtombs_chk.c: Likewise.
69692         * debug/wcsrtombs_chk.c: Likewise.
69693         * debug/wcstombs_chk.c: Likewise.
69694         * dirent/dirent.h: Likewise.
69695         * dlfcn/dlfcn.h: Likewise.
69696         * elf/neededtest4.c: Likewise.
69697         * grp/grp.h: Likewise.
69698         * gshadow/gshadow.h: Likewise.
69699         * iconv/gconv.h: Likewise.
69700         * iconv/gconv_int.h: Likewise.
69701         * iconv/gconv_simple.c: Likewise.
69702         * iconv/iconv.h: Likewise.
69703         * iconv/loop.c: Likewise.
69704         * iconv/skeleton.c: Likewise.
69705         * include/aio.h: Likewise.
69706         * include/aliases.h: Likewise.
69707         * include/argz.h: Likewise.
69708         * include/arpa/inet.h: Likewise.
69709         * include/assert.h: Likewise.
69710         * include/dirent.h: Likewise.
69711         * include/dlfcn.h: Likewise.
69712         * include/execinfo.h: Likewise.
69713         * include/fcntl.h: Likewise.
69714         * include/fenv.h: Likewise.
69715         * include/glob.h: Likewise.
69716         * include/grp.h: Likewise.
69717         * include/libintl.h: Likewise.
69718         * include/mntent.h: Likewise.
69719         * include/netdb.h: Likewise.
69720         * include/pwd.h: Likewise.
69721         * include/rpc/netdb.h: Likewise.
69722         * include/sched.h: Likewise.
69723         * include/search.h: Likewise.
69724         * include/shadow.h: Likewise.
69725         * include/signal.h: Likewise.
69726         * include/stdio.h: Likewise.
69727         * include/stdlib.h: Likewise.
69728         * include/string.h: Likewise.
69729         * include/sys/socket.h: Likewise.
69730         * include/sys/stat.h: Likewise.
69731         * include/sys/statfs.h: Likewise.
69732         * include/sys/statvfs.h: Likewise.
69733         * include/sys/syslog.h: Likewise.
69734         * include/sys/time.h: Likewise.
69735         * include/sys/uio.h: Likewise.
69736         * include/time.h: Likewise.
69737         * include/unistd.h: Likewise.
69738         * include/utmp.h: Likewise.
69739         * include/wchar.h: Likewise.
69740         * include/wctype.h: Likewise.
69741         * inet/aliases.h: Likewise.
69742         * inet/arpa/inet.h: Likewise.
69743         * inet/netinet/ether.h: Likewise.
69744         * inet/netinet/in.h: Likewise.
69745         * intl/libintl.h: Likewise.
69746         * io/bits/fcntl2.h: Likewise.
69747         * io/fcntl.h: Likewise.
69748         * io/ftw.h: Likewise.
69749         * io/sys/poll.h: Likewise.
69750         * io/sys/stat.h: Likewise.
69751         * io/sys/statfs.h: Likewise.
69752         * io/sys/statvfs.h: Likewise.
69753         * io/utime.h: Likewise.
69754         * libio/bits/stdio.h: Likewise.
69755         * libio/bits/stdio2.h: Likewise.
69756         * libio/libio.h: Likewise.
69757         * libio/libioP.h: Likewise.
69758         * libio/stdio.h: Likewise.
69759         * locale/lc-ctype.c: Likewise.
69760         * locale/locale.h: Likewise.
69761         * login/utmp.h: Likewise.
69762         * malloc/arena.c: Likewise.
69763         * malloc/malloc.c: Likewise.
69764         * malloc/malloc.h: Likewise.
69765         * malloc/mcheck.c: Likewise.
69766         * malloc/mtrace.c: Likewise.
69767         * math/bits/mathcalls.h: Likewise.
69768         * math/fenv.h: Likewise.
69769         * math/math_private.h: Likewise.
69770         * misc/bits/error.h: Likewise.
69771         * misc/bits/syslog.h: Likewise.
69772         * misc/err.h: Likewise.
69773         * misc/error.h: Likewise.
69774         * misc/fstab.h: Likewise.
69775         * misc/mntent.h: Likewise.
69776         * misc/regexp.h: Likewise.
69777         * misc/search.h: Likewise.
69778         * misc/sgtty.h: Likewise.
69779         * misc/sys/mman.h: Likewise.
69780         * misc/sys/syslog.h: Likewise.
69781         * misc/sys/uio.h: Likewise.
69782         * misc/sys/xattr.h: Likewise.
69783         * misc/ttyent.h: Likewise.
69784         * nis/rpcsvc/ypclnt.h: Likewise.
69785         * nss/nss.h: Likewise.
69786         * posix/bits/unistd.h: Likewise.
69787         * posix/fnmatch.h: Likewise.
69788         * posix/glob.h: Likewise.
69789         * posix/sched.h: Likewise.
69790         * posix/spawn.h: Likewise.
69791         * posix/sys/wait.h: Likewise.
69792         * posix/unistd.h: Likewise.
69793         * posix/wordexp.h: Likewise.
69794         * pwd/pwd.h: Likewise.
69795         * resolv/netdb.h: Likewise.
69796         * resource/sys/resource.h: Likewise.
69797         * rt/aio.h: Likewise.
69798         * rt/bits/mqueue2.h: Likewise.
69799         * rt/mqueue.h: Likewise.
69800         * shadow/shadow.h: Likewise.
69801         * signal/signal.h: Likewise.
69802         * socket/send.c: Likewise.
69803         * socket/sendto.c: Likewise.
69804         * socket/sys/socket.h: Likewise.
69805         * stdio-common/printf.h: Likewise.
69806         * stdlib/bits/stdlib.h: Likewise.
69807         * stdlib/fmtmsg.h: Likewise.
69808         * stdlib/monetary.h: Likewise.
69809         * stdlib/stdlib.h: Likewise.
69810         * stdlib/ucontext.h: Likewise.
69811         * streams/stropts.h: Likewise.
69812         * string/argz.h: Likewise.
69813         * string/bits/string2.h: Likewise.
69814         * string/string.h: Likewise.
69815         * string/strings.h: Likewise.
69816         * sunrpc/rpc/auth.h: Likewise.
69817         * sunrpc/rpc/auth_des.h: Likewise.
69818         * sunrpc/rpc/clnt.h: Likewise.
69819         * sunrpc/rpc/netdb.h: Likewise.
69820         * sunrpc/rpc/pmap_clnt.h: Likewise.
69821         * sunrpc/rpc/xdr.h: Likewise.
69822         * sysdeps/generic/inttypes.h: Likewise.
69823         * sysdeps/generic/net/if.h: Likewise.
69824         * sysdeps/generic/sys/swap.h: Likewise.
69825         * sysdeps/gnu/net/if.h: Likewise.
69826         * sysdeps/gnu/utmpx.h: Likewise.
69827         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
69828         * sysdeps/i386/i486/bits/string.h: Likewise.
69829         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
69830         * sysdeps/s390/bits/string.h: Likewise.
69831         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
69832         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
69833         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
69834         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
69835         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
69836         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
69837         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
69838         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
69839         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
69840         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
69841         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
69842         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
69843         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
69844         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
69845         * sysdeps/unix/sysv/linux/readv.c: Likewise.
69846         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
69847         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
69848         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
69849         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
69850         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
69851         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
69852         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
69853         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
69854         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
69855         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
69856         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
69857         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
69858         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
69859         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
69860         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
69861         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
69862         * sysvipc/sys/ipc.h: Likewise.
69863         * sysvipc/sys/msg.h: Likewise.
69864         * sysvipc/sys/sem.h: Likewise.
69865         * sysvipc/sys/shm.h: Likewise.
69866         * termios/termios.h: Likewise.
69867         * time/sys/time.h: Likewise.
69868         * time/time.h: Likewise.
69869         * wcsmbs/bits/wchar2.h: Likewise.
69870         * wcsmbs/uchar.h: Likewise.
69871         * wcsmbs/wchar.h: Likewise.
69872         * wctype/wctype.h: Likewise.
69873
69874         [BZ #13551]
69875         * Makeconfig: Remove all but ELF support including AIX support.
69876         * Makerules: Likewise.
69877         * config.h.in: Likewise.
69878         * config.make.in: Likewise.
69879         * configure: Likewise.
69880         * configure.in: Likewise.
69881         * csu/Makefile: Likewise.
69882         * csu/version.c: Likewise.
69883         * debug/Makefile: Likewise.
69884         * dlfcn/Makefile: Likewise.
69885         * elf/Makefile: Likewise.
69886         * extra-lib.mk: Likewise.
69887         * iconv/Makefile: Likewise.
69888         * include/libc-symbols.h: Likewise.
69889         * include/shlib-compat.h: Likewise.
69890         * resolv/Makefile: Likewise.
69891         * resolv/res_libc.c: Likewise.
69892         * rt/Makefile: Likewise.
69893         * sysdeps/i386/asm-syntax.h: Likewise.
69894         * sysdeps/i386/sysdep.h: Likewise.
69895         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
69896         * sysdeps/mach/sysdep.h: Likewise.
69897         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
69898         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
69899         * sysdeps/s390/asm-syntax.h: Likewise.
69900         * sysdeps/s390/s390-32/sysdep.h: Likewise.
69901         * sysdeps/s390/s390-64/sysdep.h: Likewise.
69902         * sysdeps/sh/sysdep.h: Likewise.
69903         * sysdeps/unix/sparc/sysdep.h: Likewise.
69904         * sysdeps/wordsize-32/divdi3.c: Likewise.
69905         * sysdeps/x86_64/sysdep.h: Likewise.
69906
69907         * argp/Versions: Remove _argp_unlock_xxx.
69908
69909         [BZ #13559]
69910         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
69911         * abilist/libBrokenLocale.abilist: Likewise.
69912         * abilist/libanl.abilist: Likewise.
69913         * abilist/libc.abilist: Likewise.
69914         * abilist/libcrypt.abilist: Likewise.
69915         * abilist/libdl.abilist: Likewise.
69916         * abilist/libm.abilist: Likewise.
69917         * abilist/libnsl.abilist: Likewise.
69918         * abilist/libpthread.abilist: Likewise.
69919         * abilist/libresolv.abilist: Likewise.
69920         * abilist/librt.abilist: Likewise.
69921         * abilist/libthread_db.abilist: Likewise.
69922         * abilist/libutil.abilist: Likewise.
69923         * abilist/libnss_db.abilist: New file.
69924
69925         * scripts/abilist.awk: Add support for indirect functions.
69926
69927         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
69928
69929         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
69930
69931         * shlib-versions: Remove entries for ports architectures.
69932
69933         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
69934         files in ports.
69935         * elf/stackguard-macros.h: Remove support for IA-64.
69936         * elf/tst-auditmod1.c: Likewise.
69937         * sysdeps/generic/ldsodefs.h: Likewise.
69938
69939         * sysdeps/unix/sysv/linux/configure.in: Ports should define
69940         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
69941         configure files.
69942
69943         [BZ #13552]
69944         * configure.in: Remove --enable-omitfp support.
69945         * FAQ.in: Adjust.
69946         * config.make.in: Likewise.
69947         * Makeconfig: Likewise.
69948         * manual/install.texi: Likewise.
69949
69950         In case anyone cares, the IA-64 architecture could move to ports.
69951         * sysdeps/ia64/*: Removed.
69952         * sysdeps/unix/sysv/linux/ia64/*: Removed.
69953         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
69954
69955         [BZ #13555]
69956         * configure.in: Remove entries for unsupported architectures.
69957
69958         [BZ #13533]
69959         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
69960         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
69961         routines.
69962         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
69963         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
69964         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
69965         fall back to using wcrtomb.
69966         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
69967         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
69968         renaming.
69969         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
69970         * wcsmbs/tst-c16c32-1.c: New file.
69971
69972         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
69973         local variable.
69974
69975         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
69976
69977         * elf/tst-unique3.cc: Add explicit declaration of gets.
69978         * elf/tst-unique3lib.cc: Likewise.
69979         * elf/tst-unique3lib2.cc: Likewise.
69980         * elf/tst-unique4.cc: Likewise.
69981
69982         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
69983
69984 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
69985
69986         [BZ #13566]
69987         * assert/assert.h (static_assert): Don't define for C++.
69988         * libio/stdio.h (gets): Do declare for C++ <= C++11.
69989         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
69990
69991 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
69992
69993         * iconv/loop.c (single loop): Fix assertion in storing of
69994         remaining bytes.
69995
69996         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
69997
69998 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
69999
70000         * posix/getconf.c: Update copyright year.
70001         * nss/getent.c: Likewise.
70002         * nss/makedb.c: Likewise.
70003         * iconv/iconvconfig.c: Likewise.
70004         * iconv/iconv_prog.c: Likewise.
70005         * elf/ldconfig.c: Likewise.
70006         * elf/pldd.c: Likewise.
70007         * elf/sotruss.ksh: Likewise.
70008         * catgets/gencat.c: Likewise.
70009         * csu/version.c: Likewise.
70010         * elf/ldd.bash.in: Likewise.
70011         * elf/sprof.c (print_version): Likewise.
70012         * locale/programs/locale.c: Likewise.
70013         * locale/programs/localedef.c: Likewise.
70014         * login/programs/pt_chown.c: Likewise.
70015         * nscd/nscd.c (print_version): Likewise.
70016         * debug/xtrace.sh: Likewise.
70017         * malloc/memusage.sh: Likewise.
70018         * malloc/mtrace.pl: Likewise.
70019         * debug/catchsegv.sh: Likewise.
70020
70021 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
70022
70023         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
70024         pure attribute.
70025
70026 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
70027
70028         [BZ #13533]
70029         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
70030         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
70031         transformations.
70032         * iconv/gconv_int.h: Likewise.
70033         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
70034         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
70035         from libc for GLIBC_2.16.
70036         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
70037         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
70038         * wcsmbs/uchar.h: Really define mbstate_t.
70039         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
70040         * wcsmbs/c16rtomb.c: New file.
70041         * wcsmbs/mbrtoc16.c: New file.
70042         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
70043         for C/POSIX locale.
70044         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
70045         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
70046
70047         * wcsmbs/wchar.h: Add missing __restrict.
70048
70049 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70050
70051         [BZ #13532]
70052         * time/Makefile (routines): Add timespec_get.
70053         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
70054         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
70055         timespec for ISO C11.
70056         * time/timespec_get.c: New file.
70057         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
70058         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
70059
70060         [BZ #13531]
70061         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
70062         * stdlib/stdlib.h: Declare aligned_alloc.
70063         * Versions.def: Add GLIBC_2.16 for libc.
70064         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
70065
70066         [BZ 13527]
70067         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
70068         ISO C11.
70069
70070         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
70071         code.
70072
70073         [BZ #13528]
70074         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
70075
70076         [BZ #13529]
70077         * assert/assert.h (static_assert): Define.
70078
70079         * version.h: Update for 2.16 development version.
70080
70081         [BZ #13526]
70082         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
70083         _ISOC11_SOURCE.
70084
70085         * version.h (RELEASE): Bump for 2.15 release.
70086         * include/features.h (__GLIBC_MINOR__): Bump to 15.
70087
70088         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
70089         Patch by Marek Polacek <mpolacek@redhat.com>.
70090
70091         * bits/byteswap.h: Protect long long constants with __extension__.
70092         * sysdeps/i386/bits/byteswap.h: Likewise.
70093         * sysdeps/ia64/bits/byteswap.h: Likewise.
70094         * sysdeps/s390/bits/byteswap.h: Likewise.
70095         * sysdeps/x86_64/bits/byteswap.h: Likewise.
70096
70097 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70098
70099         [BZ #13540]
70100         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
70101         destination buffer.
70102         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
70103
70104 2011-12-23  Marek Polacek  <polacek@redhat.com>
70105
70106         * elf/dl-addr.c (determine_info): Add inline keyword.
70107         * elf/tst-auditmod4b.c (check_avx): Likewise.
70108         * elf/tst-auditmod6b.c (check_avx): Likewise.
70109         * elf/tst-auditmod6c.c (check_avx): Likewise.
70110         * elf/tst-auditmod7b.c (check_avx): Likewise.
70111
70112 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70113
70114         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
70115         !__SSE_MATH__.
70116
70117 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70118
70119         [BZ #13540]
70120         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
70121         processing for last bytes.
70122
70123 2011-08-06  Bruno Haible  <bruno@clisp.org>
70124
70125         [BZ #13061]
70126         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
70127         U+0385, not to U+1FEE.
70128
70129         [BZ #13062]
70130         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
70131         entry for U+00A5 U+0301.
70132
70133 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70134
70135         [BZ #13166]
70136         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
70137         buffer for the output is too small.
70138
70139         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
70140         optimization.
70141
70142         [BZ #13185]
70143         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
70144         SSE flags if possible.
70145
70146 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70147
70148         [BZ #13540]
70149         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
70150         processing for last bytes.
70151
70152 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
70153
70154         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
70155         (syscall-list-default-options, syscall-list-default-condition)
70156         (syscall-list-includes): Define.
70157         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
70158         list of ABIs and options and #if conditions for each ABI.  Do not
70159         handle common syscalls between ABIs specially.
70160         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
70161         Remove.
70162         (syscall-list-variants, syscall-list-32bit-options)
70163         (syscall-list-32bit-condition, syscall-list-64bit-options)
70164         (syscall-list-64bit-condition): Define.
70165         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
70166         (syscall-list-variants, syscall-list-32bit-options)
70167         (syscall-list-32bit-condition, syscall-list-64bit-options)
70168         (syscall-list-64bit-condition): Define.
70169         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
70170         Remove.
70171         (syscall-list-variants, syscall-list-32bit-options)
70172         (syscall-list-32bit-condition, syscall-list-64bit-options)
70173         (syscall-list-64bit-condition): Define.
70174         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
70175         Remove.
70176         (syscall-list-variants, syscall-list-32bit-options)
70177         (syscall-list-32bit-condition, syscall-list-64bit-options)
70178         (syscall-list-64bit-condition): Define.
70179
70180 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70181
70182         * locale/iso-639.def: Add brx entry.
70183
70184         [BZ #13328]
70185         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
70186         Proposed by Mariusz_Cukr <marcukr@op.pl>.
70187
70188         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
70189         __feraiseexcept_renamed.
70190
70191 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70192
70193         [BZ #13538]
70194         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
70195         EPOLLET with unsigned values.
70196         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70197         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70198
70199         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
70200         to large cancellation.
70201         * math/s_cacoshf.c: Likewise.
70202         * math/s_cacoshl.c: Likewise.
70203
70204 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
70205
70206         [BZ #13305]
70207         [BZ #12786]
70208         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
70209         * math/s_cacoshf.c: Likewise.
70210         * math/s_cacoshl.c: Likewise.
70211
70212 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70213
70214         [BZ #13439]
70215         * iconv/gconv.h: Define __GCONV_SWAP.
70216         * iconvdata/unicode.c: The swap bit must be stored in __flags.
70217         * iconvdata/utf-16.c: Likewise.
70218         * iconvdata/utf-32.c: Likewise.
70219
70220 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
70221
70222         [BZ #13524]
70223         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
70224         numerator after shifting it by one limb.
70225
70226 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
70227
70228         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
70229         under [__USE_EXTERN_INLINES].
70230
70231 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70232
70233         [BZ #13446]
70234         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
70235
70236 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70237
70238         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
70239         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
70240         optimized code.
70241         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
70242         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
70243         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
70244         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
70245         for strncasecmp/strncasecmp_l compilation.
70246         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
70247         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
70248
70249 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
70250
70251         [BZ #13484]
70252         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
70253         of __asm__.
70254
70255 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70256
70257         [BZ #13506]
70258         * time/tzfile.c (__tzfile_read): Check values from file header.
70259
70260 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
70261
70262         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
70263         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
70264         * powerpc/powerpc32/dl-start.S: Likewise.
70265         * powerpc/powerpc32/elf/start.S: Likewise.
70266         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
70267         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
70268         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
70269         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
70270         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
70271         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
70272         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
70273         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
70274         * powerpc/powerpc32/fpu/s_round.S: Likewise.
70275         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
70276         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
70277         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
70278         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
70279         * powerpc/powerpc32/memset.S: Likewise.
70280         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
70281         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
70282         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
70283         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
70284         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
70285         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
70286         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
70287         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
70288         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
70289         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
70290         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
70291         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70292         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70293
70294 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70295
70296         * math/libm-test.inc: Added more nearbyint tests.
70297         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
70298         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
70299         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
70300         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
70301
70302 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
70303
70304         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
70305         FD_CLOEXEC.
70306
70307 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70308
70309         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
70310         Add wcscpy-ssse3 wcscpy-c.
70311         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
70312         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
70313         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
70314         * sysdeps/x86_64/wcschr.S: New file.
70315         * sysdeps/x86_64/wcsrchr.S: New file.
70316         * string/test-strcmp.c: Remove checking of wcscmp function for
70317         wrong alignments.
70318         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
70319         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
70320         wcsrchr-sse2 wcsrchr-c.
70321         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
70322         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
70323         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
70324         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
70325         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
70326         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
70327         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
70328         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
70329         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
70330         * wcsmbc/wcschr.c (WCSCHR): New macro.
70331
70332 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70333
70334         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
70335         * wcsmbs/test-wcsrchr.c: New file.
70336         * string/test-strrchr.c: Add wcsrchr support.
70337         (WIDE): New macro.
70338         * wcsmbs/test-wcscpy.c: New file.
70339         * string/test-strcpy.c: Add wcscpy support.
70340         (WIDE): New macro.
70341
70342 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
70343
70344         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
70345         the inner loop.
70346
70347 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
70348
70349         [BZ #13472]
70350         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
70351
70352 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
70353
70354         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
70355         Minor optimizations.
70356
70357         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
70358         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
70359         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
70360
70361 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
70362
70363         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
70364         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
70365         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
70366         for gcc to avoid warnings.
70367         * inet/Makefile (tests): Add tst-checks.
70368         * inet/tst-checks.c: New file.
70369
70370         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
70371         warning.
70372
70373         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
70374         __wmemcmp_sse2.
70375
70376         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
70377         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
70378
70379         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
70380
70381 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
70382
70383         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
70384         problem.
70385
70386         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
70387
70388 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
70389
70390         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
70391         conditional on GCC version.
70392         (__arch_compare_and_exchange_val_8_acq)
70393         (__arch_compare_and_exchange_val_16_acq)
70394         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
70395         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
70396         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
70397
70398 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
70399
70400         * sysdeps/sh/backtrace.c: New file.
70401
70402 2011-12-02  Andreas Schwab  <schwab@redhat.com>
70403
70404         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
70405         parenthesis.
70406
70407 2011-12-01  Andreas Schwab  <schwab@redhat.com>
70408
70409         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
70410         falling back to utime.
70411
70412 2011-11-30  Andreas Schwab  <schwab@redhat.com>
70413
70414         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
70415         expectations for float.
70416
70417 2011-11-29  Andreas Schwab  <schwab@redhat.com>
70418
70419         * locale/weight.h (findidx): Add parameter len.
70420         * locale/weightwc.h (findidx): Likewise.
70421         * posix/fnmatch_loop.c (FCT): Adjust caller.
70422         * posix/regcomp.c (build_equiv_class): Likewise.
70423         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
70424         * posix/regexec.c (check_node_accept_bytes): Likewise.
70425         * string/strcoll_l.c (STRCOLL): Likewise.
70426         * string/strxfrm_l.c (STRXFRM): Likewise.
70427
70428 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
70429
70430         * Makefile.in: Remove CVSOPT handling.
70431         * configure.in: Remove use of AC_REVISION.
70432         * iconvdata/Makefile (distribute): No need to filter out CVS.
70433         * scripts/list-sources.sh: Remove CVS, subversion and monotone
70434         handling.
70435
70436 2011-11-16  Andreas Schwab  <schwab@redhat.com>
70437
70438         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
70439         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
70440         [USE_AS_STRNCASECMP_L]: Likewise.
70441         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
70442         NO_TLS_DIRECT_SEG_REFS.
70443         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
70444         Fix argument offsets for non-PIC.
70445         [USE_AS_STRNCASECMP_L]: Likewise.
70446         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
70447         NO_TLS_DIRECT_SEG_REFS.
70448
70449 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70450
70451         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
70452         O_CLOEXEC.
70453         * locale/loadlocale.c (_nl_load_locale): Likewise.
70454
70455 2011-11-15  Andreas Schwab  <schwab@redhat.com>
70456
70457         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
70458         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
70459         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
70460         (SYSCALL_GETTIME): Set errno on error.
70461
70462         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
70463         count references to noai6ai_cached.
70464
70465 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70466
70467         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
70468
70469         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
70470         FD_CLOEXEC for /proc/self/maps.
70471
70472         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
70473         FD_CLOEXEC for /proc/meminfo.
70474
70475         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
70476         gai.conf.
70477
70478         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
70479         FD_CLOEXEC for given file.
70480
70481         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
70482
70483         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
70484         FD_CLOEXEC for /etc/hosts.
70485         (_gethtent): Likewise.
70486
70487         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
70488
70489         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
70490         cancellation and set FD_CLOEXEC for /etc/netgroup.
70491
70492         * nss/nss_files/files-key.c (search): Don't allow cancellation when
70493         reading /etc/publickey.
70494
70495         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
70496         allow cancellation when reading /etc/group.
70497
70498         * nss/nss_files/files-alias.c (internal_setent): Don't allow
70499         cancellation.
70500         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
70501
70502         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
70503         when using data file.
70504
70505         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
70506
70507         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
70508         (write_nis_obj): Use "c" and "e" in fopen.
70509
70510         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
70511
70512         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
70513
70514         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
70515
70516         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
70517
70518         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
70519         locale.alias.
70520
70521         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
70522
70523         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
70524
70525         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
70526
70527         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
70528         file parsing and set FD_CLOEXEC.
70529
70530 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70531
70532         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
70533
70534 2011-11-14  Andreas Schwab  <schwab@redhat.com>
70535
70536         * malloc/arena.c (arena_get2): Don't call reused_arena when
70537         _int_new_arena failed.
70538
70539 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70540
70541         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
70542         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
70543         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
70544         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
70545         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
70546         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
70547         to compile strcasecmp and strncasecmp.
70548         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
70549         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
70550
70551         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
70552
70553 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
70554
70555         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
70556         locale-defines.sym to gen-as-const-headers.
70557         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
70558         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
70559         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
70560         to compile strcasecmp and strncasecmp.
70561         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
70562         strcasecmp_l and strncasecmp_l.
70563         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
70564         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
70565         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
70566         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
70567         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
70568         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
70569         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
70570         * sysdeps/i386/i686/multiarch/strncase.S: New file.
70571         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
70572         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
70573         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
70574
70575 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
70576
70577         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
70578         result of SYSDEP_GETTIME_CPU to retval.
70579         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
70580         parameter list to macro.  Remove trailing semicolon.  Adjust users.
70581
70582         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
70583         variable.
70584
70585         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
70586         mantissa words.
70587         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
70588
70589         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
70590         from unused variable.
70591
70592         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
70593         DWARF definitions.
70594         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
70595         for assembling.
70596
70597         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
70598         over namespaces.
70599
70600         * sunrpc/rpc_prot.c (rejected): Fix case value.
70601
70602         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
70603         unsigned long long int to avoid warnings in shift.
70604
70605         * posix/regex_internal.c (re_string_reconstruct): Actually use result
70606         of use of trans.
70607         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
70608         variable tmp.
70609
70610         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
70611         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
70612         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
70613
70614         * nis/nis_table.c (nis_list): Use variable of correct type for
70615         result of __follow_path call.
70616
70617 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70618
70619         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
70620         of math functions ceil, trunc, floor, round, and sqrt, when
70621         avaliable on the platform.
70622         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
70623         name clash.
70624         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
70625         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
70626         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
70627
70628 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
70629
70630         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
70631         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
70632
70633 2011-11-11  Roland McGrath  <roland@hack.frob.com>
70634
70635         * include/unistd.h: Fix __readlink return type.
70636         Reported by Chris Metcalf <cmetcalf@tilera.com>.
70637
70638 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
70639
70640         * stdlib/ucontext.h: Undo last change for makecontext.
70641
70642 2011-11-11  Andreas Schwab  <schwab@redhat.com>
70643
70644         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
70645
70646         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
70647         * setjmp/setjmp.h: Mark functions as non-leaf.
70648         * setjmp/bits/setjmp2.h: Likewise.
70649         * stdlib/ucontext.h: Likewise.
70650
70651 2011-11-10  Andreas Schwab  <schwab@redhat.com>
70652
70653         * malloc/arena.c (_int_new_arena): Don't increment narenas.
70654         (reused_arena): Don't check arena limit.
70655         (arena_get2): Atomically check arena limit.
70656
70657 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
70658
70659         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
70660         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
70661
70662         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
70663         instructions.
70664
70665 2011-11-07  Andreas Schwab  <schwab@redhat.com>
70666
70667         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
70668         handler when locking.
70669
70670         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
70671         Fix size of allocated buffer.
70672
70673 2011-11-04  Andreas Schwab  <schwab@redhat.com>
70674
70675         [BZ #10103]
70676         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
70677         declarations for long double functions.
70678         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
70679
70680         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
70681
70682 2011-11-03  Andreas Schwab  <schwab@redhat.com>
70683
70684         * nscd/nscd.c (main): Don't start AVC thread until credentials are
70685         installed.
70686
70687         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
70688         is disabled.
70689
70690 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70691
70692         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
70693
70694 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
70695
70696         * include/alloca.h (stackinfo_alloca_round): Define.
70697         (extend_alloca): Use it.
70698         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
70699         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
70700         here.
70701
70702         * scripts/check-local-headers.sh: Ignore libaudit.h.
70703
70704         * nscd/Makefile (extra-objs): Make recursively expanded.
70705
70706 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
70707
70708         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
70709         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
70710
70711         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
70712         * posix/tst-rfc3484-2.c: Likewise.
70713         * posix/tst-rfc3484-3.c: Likewise.
70714
70715         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
70716         process_vm_writev.
70717         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
70718         process_vm_writev.
70719         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
70720         process_vm_writev from libc using GLIBC_2.15 version.
70721
70722         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
70723
70724 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
70725
70726         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
70727         stack usage.
70728
70729 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
70730
70731         [BZ #13367]
70732         * nss/getent.c (initgroups_keys): Show error message in case no group
70733         names are given.
70734
70735         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
70736         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
70737         __bump_nl_timestamp.
70738         * nscd/connections (nscd_init): When host database is served open
70739         netlink socket and request notification about configuration changes.
70740         (main_loop_poll): Track netlink file descriptor and bump timestamp
70741         in case data becomes available.
70742         (main_loop_epoll): Likewise.
70743         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
70744         (database_pers_head): Add extra_data fileds.
70745         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
70746         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
70747         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
70748         Adjust caller.
70749         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
70750         in6ai data, call __free_in6ai.
70751         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
70752         Add -DHAVE_NETLINK.
70753         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
70754         interface information.  Reuse previous data if netlink timestamp
70755         is not changed.
70756         (__bump_nl_timestamp): New function.
70757         (__free_in6ai): New function.
70758
70759 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
70760
70761         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
70762         close_not_cancel_no_status here.
70763         (__check_pf): Reorganize code a bit to not call close twice if OOM.
70764
70765 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
70766
70767         [BZ #13276]
70768         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
70769         return value.
70770
70771         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
70772         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
70773         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
70774
70775 2011-07-03  Andreas Jaeger  <aj@suse.de>
70776
70777         [BZ #10709]
70778         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
70779         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
70780         * math/libm-test.inc (sin_test): Add test case.
70781
70782 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
70783
70784         [BZ #13337]
70785         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
70786         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
70787
70788         * elf/chroot_canon.c (chroot_canon): Cleanups.
70789
70790         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
70791
70792         [BZ #13335]
70793         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
70794         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
70795
70796         * string/test-strchr.c: Make usable for strchrnul testing.
70797         * string/test-strchrnul.c: New file.
70798         * string/Makefile (strop-tests): Add strchrnul.
70799
70800         * po/it.po: Update from translation team.
70801         * po/es.po: Likewise.
70802
70803 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
70804
70805         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
70806         the three constants needed as parameters.  Drop the others.
70807         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
70808         __m128i_strloadu_tolower.
70809         Create and initialize variable zero and use it in all the places
70810         where _mm_setzero_si128 was used.
70811
70812         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
70813         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
70814         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
70815         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
70816         anymore.
70817         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
70818         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
70819         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
70820         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
70821         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
70822         __mpranred, __mptan.
70823         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
70824         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
70825         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
70826         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
70827         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
70828         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
70829         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
70830         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
70831         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
70832
70833 2011-10-28  Andreas Schwab  <schwab@redhat.com>
70834
70835         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
70836         redefine if SHARED.
70837         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
70838
70839         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
70840         wide char related routines to wcsmbs subdir.
70841
70842 2011-10-27  Andreas Schwab  <schwab@redhat.com>
70843
70844         [BZ #13344]
70845         * misc/sys/cdefs.h (__THROWNL): Define.
70846         * posix/unistd.h: Use __THREADNL instead of __THREAD
70847         for memory synchronization functions.
70848
70849 2011-10-26  Roland McGrath  <roland@hack.frob.com>
70850
70851         [BZ #13349]
70852         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
70853         doesn't exist.
70854         * manual/stdio.texi (Obstack Streams): Node removed.
70855
70856 2011-10-26  Andreas Schwab  <schwab@redhat.com>
70857
70858         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
70859         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
70860         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
70861
70862         * math/math_private.h (math_force_eval): Allow non-addressable
70863         arguments.
70864         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
70865
70866 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
70867
70868         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
70869         file is not needed.
70870
70871         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
70872         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
70873         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
70874         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
70875         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
70876         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
70877         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
70878         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
70879         Add AVX variants.
70880         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
70881         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
70882         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
70883         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
70884         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
70885         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
70886         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
70887         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
70888         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
70889         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
70890         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
70891         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
70892         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
70893         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
70894         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
70895         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
70896         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
70897         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
70898         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
70899
70900         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
70901         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
70902
70903         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
70904         place.  Use VEX encoding when compiling for AVX.
70905
70906 2011-10-25  Andreas Schwab  <schwab@redhat.com>
70907
70908         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
70909         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
70910
70911         * string/test-strchr.c (do_test): Don't generate NUL bytes.
70912
70913 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
70914
70915         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
70916         useless if() expression.
70917         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
70918         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
70919         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
70920         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
70921         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
70922         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
70923         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
70924         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
70925         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
70926         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
70927         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
70928         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
70929         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
70930         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
70931         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
70932         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
70933         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
70934         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
70935         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
70936
70937         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
70938
70939 2011-10-25  Andreas Schwab  <schwab@redhat.com>
70940
70941         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
70942         condition.
70943         * elf/dl-fini.c (_dl_sort_fini): Likewise.
70944
70945 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
70946
70947         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
70948         .text section.  Avoid duplicate constants.
70949         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
70950         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70951         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
70952         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70953         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
70954         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70955         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70956         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70957         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
70958         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
70959         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
70960         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
70961         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
70962         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
70963         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
70964         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
70965         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
70966         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
70967         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
70968         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70969         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
70970         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
70971         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
70972         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
70973         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
70974         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
70975         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
70976         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
70977         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
70978         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
70979         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
70980         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
70981         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
70982         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
70983         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
70984         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
70985         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
70986         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
70987         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
70988         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
70989         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
70990         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
70991         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
70992         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
70993         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
70994
70995 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
70996
70997         * sysdeps/x86_64/dla.h: Move to ...
70998         * sysdeps/x86_64/fpu/dla.h: ...here.
70999         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
71000         situations.  Use __builtin_fma only for gcc 4.6 and up.
71001
71002         * config.make.in: Add have-mfma4 entry.
71003         * configure.in: Substitute libc_cv_cc_fma4.
71004         * math/Makefile (dbl-only-routines): Add sincostab.
71005         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
71006         Use __sincostab not sincos.
71007         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
71008         name is a macro.
71009         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71010         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71011         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71012         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
71013         using __copysign.
71014         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
71015         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
71016         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
71017         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
71018         and __inv.
71019         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
71020         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
71021         __copysign.
71022         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
71023         define aliases when function name is a macro.
71024         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
71025         sysdeps/ieee754/dbl-64/sincos.tbl.
71026         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
71027         fma4-enabled routines.
71028         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
71029         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
71030         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
71031         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
71032         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
71033         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
71034         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
71035         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
71036         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
71037         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
71038         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
71039         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
71040         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
71041         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
71042         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
71043         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
71044         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
71045         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
71046         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
71047         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
71048         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
71049         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
71050         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
71051         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
71052         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
71053         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
71054         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
71055         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
71056         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
71057         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
71058
71059         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
71060         rename.
71061         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71062         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71063         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71064         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71065         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71066         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71067         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71068         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71069
71070 2011-10-24  Andreas Schwab  <schwab@redhat.com>
71071
71072         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
71073
71074 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71075
71076         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
71077
71078         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
71079         prediction.
71080         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
71081
71082         * string/strnlen.c: Don't define STRNLEN, reverse logic.
71083         Remove unused variable magic_bits.
71084         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
71085
71086         * string/strnlen.c: Define and use STRNLEN macro.
71087         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
71088         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
71089         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
71090         * wcsmbs/wcslen.c: Define and use WCSLEN.
71091         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
71092         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
71093         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
71094         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
71095         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
71096         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
71097         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71098
71099 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71100
71101         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
71102         strnlen-sse2-no-bsf.
71103         Rename strlen-no-bsf to strlen-sse2-no-bsf.
71104         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
71105         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
71106         Add strnlen support.
71107         (USE_AS_STRNLEN): New macro.
71108         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
71109         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
71110         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
71111         * sysdeps/x86_64/wcslen.S: New file.
71112
71113 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
71114
71115         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
71116         XMM-moves are used for copying on small sizes.
71117
71118 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71119
71120         * wcsmbs/Makefile (strop-tests): Add wcschr.
71121         * wcsmbs/test-wcschr.c: New file.
71122         * string/test-strchr.c: Update.
71123         Add wcschr support.
71124         (WIDE): New macro.
71125
71126 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71127
71128         * wcsmbs/Makefile (strop-tests): Add wcslen.
71129         * wcsmbs/test-wcslen.c: New file.
71130         * string/test-strlen.c: Update.
71131         Add wcslen support.
71132         (WIDE): New macro.
71133
71134 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71135
71136         * po/it.po: Update from translation team.
71137
71138 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71139
71140         * sysdeps/x86_64/wcscmp.S: Update.
71141         Fix wrong comparison semantics.
71142         wcscmp shall use signed comparison not unsigned.
71143         Don't use substraction to avoid overflow bug.
71144         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
71145         * wcsmbc/wcscmp.c: Likewise.
71146         * string/test-strcmp.c: Likewise.
71147         Add new tests to check cases with negative values.
71148
71149 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71150
71151         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
71152         * sysdeps/x86_64/dla.h: ...here.  New file.
71153         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
71154         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71155         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71156         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71157         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71158         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71159         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71160         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71161         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71162
71163 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
71164
71165         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
71166         __ynl_finite aliases.
71167
71168 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71169
71170         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71171
71172         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
71173         define DLA_FMA.
71174         [DLA_FMA] (EMULV): Use DLA_FMA.
71175         [DLA_FMA] (MUL12): Use EMULV.
71176         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
71177         that are not needed.
71178         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71179         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71180         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71181         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71182         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71183         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71184         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71185
71186 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
71187
71188         * math/s_nan.c: Undef __nan.
71189         * math/s_nanf.c: Undef __nanf.
71190         * math/s_nanl.c: Undef __nanl.
71191         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
71192         "math_private.h".
71193
71194 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71195
71196         * math/s_catan.c: Add branch predictions.
71197         * math/s_catanf.c: Likewise.
71198         * math/s_catanh.c: Likewise.
71199         * math/s_catanhf.c: Likewise.
71200         * math/s_catanhl.c: Likewise.
71201         * math/s_catanl.c: Likewise.
71202         * math/s_cexp.c: Likewise.
71203         * math/s_cexpf.c: Likewise.
71204         * math/s_cexpl.c: Likewise.
71205         * math/s_clog.c: Likewise.
71206         * math/s_clog10.c: Likewise.
71207         * math/s_clog10f.c: Likewise.
71208         * math/s_clog10l.c: Likewise.
71209         * math/s_clogf.c: Likewise.
71210         * math/s_clogl.c: Likewise.
71211         * math/s_csqrt.c: Likewise.
71212         * math/s_csqrtf.c: Likewise.
71213         * math/s_csqrtl.c: Likewise.
71214         * math/s_ctanf.c: Likewise.
71215         * math/s_ctanh.c: Likewise.
71216         * math/s_ctanhf.c: Likewise.
71217         * math/s_ctanhl.c: Likewise.
71218         * math/s_ctanl.c: Likewise.
71219
71220         * math/math_private.h: Define __nan, __nanf, __nanl.
71221         * math/s_cacosh.c: Include <math_private.h>.
71222         * math/s_cacoshl.c: Likewise.
71223         * math/s_casinh.c: Likewise.
71224         * math/s_casinhf.c: Likewise.
71225         * math/s_casinhl.c: Likewise.
71226         * math/s_ccos.c: Rely entire on ccosh.
71227         * math/s_ccosf.c: Rely entire on ccoshf.
71228         * math/s_ccosl.c: Rely entirely on ccoshl.
71229         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
71230         Remove tests for FE_INVALID.
71231         * math/s_ccoshf.c: Likewise.
71232         * math/s_ccoshl.c: Likewise.
71233         * math/s_csin.c: Likewise.
71234         * math/s_csinf.c: Likewise.
71235         * math/s_csinh.c Likewise.
71236         * math/s_csinhf.c: Likewise.
71237         * math/s_csinhl.c: Likewise.
71238         * math/s_csinl.c: Likewise.
71239         * math/s_ctan.c: Likewise.
71240         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
71241         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
71242         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
71243
71244 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
71245
71246         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
71247         compilation problems.
71248
71249         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
71250         __builtin_expect.
71251
71252 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
71253
71254         * sysdeps/i386/configure.in: Test for -mfma4 option.
71255         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
71256         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
71257         COMMON_CPUID_INDEX_80000001.
71258         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
71259         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
71260         use it if FMA3 is not supported.
71261         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
71262
71263         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
71264         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
71265
71266 2011-10-20  Andreas Schwab  <schwab@redhat.com>
71267
71268         [BZ #12892]
71269         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
71270         it would create a cycle with a link time dependency.
71271
71272 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
71273
71274         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
71275         instruction.
71276         * string/Makefile (strop-tests): Add rawmemchr.
71277         * string/test-rawmemchr.c: New file.
71278
71279         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
71280         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
71281         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
71282         when compiling str{,n}casecmp and when AVX is available.  Hook up
71283         new optimized code in initializers.
71284
71285 2011-10-19  Andreas Schwab  <schwab@redhat.com>
71286
71287         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
71288         __feraiseexcept instead of feraiseexcept.
71289
71290 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
71291
71292         * math/math_private.h: Define defaults for libc_fetestexcept and
71293         libc_feupdateenv.
71294         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
71295         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
71296         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71297         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71298         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
71299         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71300         libc_fetestexcept and libc_feupdateenv.
71301
71302         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
71303         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
71304         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
71305         * sysdeps/x86_64/fpu/math_private.h: Define special version of
71306         libc_feholdexcept_setround.
71307
71308         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
71309         Add s_nearbyint-c and s_nearbyintf-c.
71310         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
71311         nearbyintf inlines.
71312         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
71313         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
71314         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
71315         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
71316
71317         * math/math_private.h: Define defaults for libc_fegetround,
71318         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
71319         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
71320         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
71321         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
71322         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
71323         standard functions.
71324         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71325         Remove comments and hacks for old compiler versions.
71326         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71327         libc_fegetround, libc_fesetround, libc_feholdexcept, and
71328         libc_feholdexceptl.
71329
71330 2011-10-18  Andreas Schwab  <schwab@redhat.com>
71331
71332         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
71333         (__feraiseexcept_renamed): Add __NTH.
71334         (feraiseexcept): Add __NTH.  Rename local variables to fix
71335         namespace violations.
71336
71337 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
71338
71339         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
71340
71341         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
71342
71343         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
71344         recently added interfaces.
71345         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
71346
71347         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
71348         about macro parameter expansion.
71349
71350         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
71351         __NO_MATH_INLINES is defined.  Cleanups.
71352
71353         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
71354         and __floorf is target has SSE4.1.
71355         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
71356         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
71357         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
71358         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
71359
71360         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
71361         name.
71362         (floorf): Likewise.
71363
71364         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
71365
71366 2011-10-17  Andreas Schwab  <schwab@redhat.com>
71367
71368         * misc/sys/cdefs.h: Fix last change.
71369
71370         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
71371         database lookup.
71372
71373 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
71374
71375         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
71376
71377         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
71378         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71379         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
71380         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71381         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71382         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
71383         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71384         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71385         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
71386         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
71387         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
71388         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
71389         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
71390         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
71391         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
71392         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
71393         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
71394         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
71395         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
71396         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
71397         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
71398         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
71399
71400         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
71401         ceil, ceilf, floor, floorf.
71402
71403         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
71404         Perform IRELATIVE relocations last.
71405
71406         * elf/do-rel.h: Add another parameter nrelative, replacing the
71407         local variable with the same name.  Change name of the function
71408         to end in Rel or Rela (uppercase).
71409         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
71410         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
71411         elf_dynamic_do_##reloc function.
71412
71413 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71414
71415         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
71416         is sufficient, at least on modern CPUs.
71417
71418         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
71419
71420         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
71421         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
71422
71423         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
71424         __expl_finite.
71425         * math/bits/math-finite.h: Add entries for exp.
71426         * math/e_expl.c: Add __*_finite alias.
71427         * sysdeps/i386/fpu/e_exp.S: Likewise.
71428         * sysdeps/i386/fpu/e_expf.S: Likewise.
71429         * sysdeps/i386/fpu/e_expl.c: Likewise.
71430         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71431         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71432         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
71433         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
71434         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
71435         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
71436         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
71437
71438         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
71439         is sufficient, at least on modern CPUs.
71440
71441         * ctype/ctype-info.c (__ctype_init): Define.
71442         * include/ctype.h (__ctype_init): Declare.
71443         (__ctype_b_loc): The variable is always initialized.
71444         (__ctype_toupper_loc): Likewise.
71445         (__ctype_tolower_loc): Likewise.
71446         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
71447         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
71448
71449 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
71450
71451         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
71452
71453         * configure.in: Also look in $cxxmachine/include for C++ system
71454         headers.
71455
71456 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71457
71458         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
71459         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
71460         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
71461         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
71462         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
71463         (USE_AS_WMEMCMP): New macro.
71464         Fixing indents.
71465         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
71466         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
71467         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
71468         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
71469         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71470         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
71471         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
71472         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
71473         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
71474         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
71475         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
71476         (USE_AS_WMEMCMP): New macro.
71477         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
71478         * sysdeps/string/test-memcmp.c: Update.
71479         Fix simple_wmemcmp.
71480         Add new tests.
71481         * wcsmbs/wmemcmp.c: Update.
71482         (WMEMCMP): New macro.
71483         Fix overflow bug.
71484
71485 2011-10-12  Andreas Jaeger  <aj@suse.de>
71486
71487         [BZ #13268]
71488         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
71489
71490 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71491
71492         * libio/iofwide.c (do_length): Avoid warning.
71493
71494         * ctype/ctype.h (__isctype_f): Add missing __THROW.
71495
71496 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
71497
71498         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
71499
71500         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
71501         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
71502         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
71503         * sysdeps/i386/i686/fpu/e_log.S: New file.
71504         * sysdeps/i386/i686/fpu/e_logf.S: New file.
71505         * sysdeps/i386/i686/fpu/e_logl.S: New file.
71506
71507         * ctype/ctype.h: Add support for inlined isXXX functions when
71508         compiling C++ code.
71509
71510 2011-10-14  Andreas Schwab  <schwab@redhat.com>
71511
71512         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
71513
71514         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
71515
71516 2011-10-13  Roland McGrath  <roland@hack.frob.com>
71517
71518         [BZ #13291]
71519         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
71520
71521 2011-10-13  Andreas Schwab  <schwab@redhat.com>
71522
71523         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
71524         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
71525         feraiseexcept.
71526
71527         * sysdeps/x86_64/memrchr.S: Check for zero size.
71528
71529         * string/stratcliff.c: Add memrchr tests.
71530
71531 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71532
71533         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71534         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
71535         rawmemchr-sse2 rawmemchr-sse2-bsf.
71536         * sysdeps/i386/i686/multiarch/memchr.S: New file.
71537         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
71538         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
71539         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
71540         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
71541         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
71542         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
71543         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
71544         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
71545         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
71546         * string/memrchr.c (MEMRCHR): New macro.
71547
71548 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
71549
71550         Add integration with gcc's -ffinite-math-only and optimize wrapper
71551         functions in libm.
71552         * Versions.def: Define GLIBC_2.15 version for libm.
71553         * math/Makefile (headers): Add bits/math-finite.h.
71554         * math/bits/math-finite.h: New file.
71555         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
71556         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
71557         * math/e_acoshl.c: Add __*_finite alias.
71558         * math/e_acosl.c: Likewise.
71559         * math/e_asinl.c: Likewise.
71560         * math/e_atan2l.c: Likewise.
71561         * math/e_atanhl.c: Likewise.
71562         * math/e_coshl.c: Likewise.
71563         * math/e_exp10.c: Likewise.
71564         * math/e_exp10f.c: Likewise.
71565         * math/e_exp10l.c: Likewise.
71566         * math/e_exp2l.c: Likewise.
71567         * math/e_fmodl.c: Likewise.
71568         * math/e_gammal_r.c: Likewise.
71569         * math/e_hypotl.c: Likewise.
71570         * math/e_j0l.c: Likewise.
71571         * math/e_j1l.c: Likewise.
71572         * math/e_jnl.c: Likewise.
71573         * math/e_lgammal_r.c: Likewise.
71574         * math/e_log10l.c: Likewise.
71575         * math/e_log2l.c: Likewise.
71576         * math/e_logl.c: Likewise.
71577         * math/e_powl.c: Likewise.
71578         * math/e_sinhl.c: Likewise.
71579         * math/e_sqrtl.c: Likewise.
71580         * math/e_scalb.c: Completely rewritten and optimized.
71581         * math/e_scalbf.c: Likewise.
71582         * math/e_scalbl.c: Likewise.
71583         * math/w_acos.c: Likewise.
71584         * math/w_acosf.c: Likewise.
71585         * math/w_acosl.c: Likewise.
71586         * math/w_acosh.c: Likewise.
71587         * math/w_acoshf.c: Likewise.
71588         * math/w_acoshl.c: Likewise.
71589         * math/w_asin.c: Likewise.
71590         * math/w_asinf.c: Likewise.
71591         * math/w_asinl.c: Likewise.
71592         * math/w_atan2.c: Likewise.
71593         * math/w_atan2f.c: Likewise.
71594         * math/w_atan2l.c: Likewise.
71595         * math/w_atanh.c: Likewise.
71596         * math/w_atanhf.c: Likewise.
71597         * math/w_atanhl.c: Likewise.
71598         * math/w_exp10.c: Likewise.
71599         * math/w_exp10f.c: Likewise.
71600         * math/w_exp10l.c: Likewise.
71601         * math/w_fmod.c: Likewise.
71602         * math/w_fmodf.c: Likewise.
71603         * math/w_fmodl.c: Likewise.
71604         * math/w_j0.c: Likewise.
71605         * math/w_j0f.c: Likewise.
71606         * math/w_j0l.c: Likewise.
71607         * math/w_j1.c: Likewise.
71608         * math/w_j1f.c: Likewise.
71609         * math/w_j1l.c: Likewise.
71610         * math/w_jn.c: Likewise.
71611         * math/w_jnf.c: Likewise.
71612         * math/w_log.c: Likewise.
71613         * math/w_logf.c: Likewise.
71614         * math/w_logl.c: Likewise.
71615         * math/w_log10.c: Likewise.
71616         * math/w_log10f.c: Likewise.
71617         * math/w_log10l.c: Likewise.
71618         * math/w_log2.c: Likewise.
71619         * math/w_log2f.c: Likewise.
71620         * math/w_log2l.c: Likewise.
71621         * math/w_pow.c: Likewise.
71622         * math/w_powf.c: Likewise.
71623         * math/w_powl.c: Likewise.
71624         * math/w_remainder.c: Likewise.
71625         * math/w_remainderf.c: Likewise.
71626         * math/w_remainderl.c: Likewise.
71627         * math/w_scalb.c: Likewise.
71628         * math/w_scalbf.c: Likewise.
71629         * math/w_scalbl.c: Likewise.
71630         * math/w_sqrt.c: Likewise.
71631         * math/w_sqrtf.c: Likewise.
71632         * math/w_sqrtl.c: Likewise.
71633         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
71634         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
71635         used.
71636         * math/math_private.h: Declare __kernel_standard_f.
71637         * math/w_cosh.c: Remove cruft and optimize a bit.
71638         * math/w_coshf.c: Likewise.
71639         * math/w_coshl.c: Likewise.
71640         * math/w_exp2.c: Likewise.
71641         * math/w_exp2f.c: Likewise.
71642         * math/w_exp2l.c: Likewise.
71643         * math/w_hypot.c: Likewise.
71644         * math/w_hypotf.c: Likewise.
71645         * math/w_hypotl.c: Likewise.
71646         * math/w_lgamma.c: Likewise.
71647         * math/w_lgamma_r.c: Likewise.
71648         * math/w_lgammaf.c: Likewise.
71649         * math/w_lgammaf_r.c: Likewise.
71650         * math/w_lgammal.c: Likewise.
71651         * math/w_lgammal_r.c: Likewise.
71652         * math/w_sinh.c: Likewise.
71653         * math/w_sinhf.c: Likewise.
71654         * math/w_sinhl.c: Likewise.
71655         * math/w_tgamma.c: Likewise.
71656         * math/w_tgammaf.c: Likewise.
71657         * math/w_tgammal.c: Likewise.
71658         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
71659         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71660         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
71661         Minor optimizations.  Pretty printing.  Remove cruft.
71662         * sysdeps/i386/fpu/e_acosf.S: Likewise.
71663         * sysdeps/i386/fpu/e_acosh.S: Likewise.
71664         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
71665         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
71666         * sysdeps/i386/fpu/e_acosl.c: Likewise.
71667         * sysdeps/i386/fpu/e_asin.S: Likewise.
71668         * sysdeps/i386/fpu/e_asinf.S: Likewise.
71669         * sysdeps/i386/fpu/e_atan2.S: Likewise.
71670         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
71671         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
71672         * sysdeps/i386/fpu/e_atanh.S: Likewise.
71673         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
71674         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
71675         * sysdeps/i386/fpu/e_exp10.S: Likewise.
71676         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
71677         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
71678         * sysdeps/i386/fpu/e_exp2.S: Likewise.
71679         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
71680         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
71681         * sysdeps/i386/fpu/e_fmod.S: Likewise.
71682         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
71683         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
71684         * sysdeps/i386/fpu/e_hypot.S: Likewise.
71685         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
71686         * sysdeps/i386/fpu/e_log.S: Likewise.
71687         * sysdeps/i386/fpu/e_log10.S: Likewise.
71688         * sysdeps/i386/fpu/e_log10f.S: Likewise.
71689         * sysdeps/i386/fpu/e_log10l.S: Likewise.
71690         * sysdeps/i386/fpu/e_log2.S: Likewise.
71691         * sysdeps/i386/fpu/e_log2f.S: Likewise.
71692         * sysdeps/i386/fpu/e_log2l.S: Likewise.
71693         * sysdeps/i386/fpu/e_logf.S: Likewise.
71694         * sysdeps/i386/fpu/e_logl.S: Likewise.
71695         * sysdeps/i386/fpu/e_pow.S: Likewise.
71696         * sysdeps/i386/fpu/e_powf.S: Likewise.
71697         * sysdeps/i386/fpu/e_powl.S: Likewise.
71698         * sysdeps/i386/fpu/e_remainder.S: Likewise.
71699         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
71700         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
71701         * sysdeps/i386/fpu/e_scalb.S: Likewise.
71702         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
71703         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
71704         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
71705         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
71706         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
71707         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
71708         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71709         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71710         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
71711         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71712         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
71713         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
71714         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
71715         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71716         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
71717         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
71718         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
71719         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71720         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
71721         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
71722         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71723         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
71724         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
71725         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71726         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71727         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
71728         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
71729         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
71730         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
71731         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
71732         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
71733         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71734         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
71735         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
71736         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
71737         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71738         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
71739         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
71740         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
71741         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
71742         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
71743         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
71744         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
71745         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
71746         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
71747         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
71748         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
71749         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
71750         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
71751         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
71752         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
71753         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
71754         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
71755         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
71756         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
71757         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
71758         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
71759         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
71760         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
71761         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
71762         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
71763         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
71764         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
71765         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
71766         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
71767         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
71768         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
71769         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
71770         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
71771         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
71772         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
71773         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
71774         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
71775         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
71776         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
71777         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
71778         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
71779         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
71780         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
71781         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
71782         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
71783         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
71784         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
71785         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
71786         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
71787         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71788         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
71789         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
71790         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
71791         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71792         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
71793         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
71794         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
71795         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
71796         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
71797         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
71798         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
71799         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
71800         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
71801         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
71802         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
71803         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
71804         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
71805         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
71806         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
71807         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
71808         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
71809         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
71810         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
71811         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
71812         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
71813         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
71814         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
71815         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
71816         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
71817         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
71818         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
71819         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
71820         (__isnanf): Likewise.
71821         (__isinf_ns): Likewise.
71822         (__isinf_nsf): Likewise.
71823         (__finite): Likewise.
71824         (__finitef): Likewise.
71825         (__ieee754_sqrt): Define as macro.
71826         (__ieee754_sqrtf): Define as macro.
71827         (__ieee754_sqrtl): Define as macro.
71828         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
71829         inlined copy.
71830         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
71831         __FINITE_MATH_ONLY__ consistent.
71832         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
71833
71834 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
71835
71836         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
71837         of rawmemchr.
71838
71839         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
71840
71841 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
71842
71843         * po/ja.po: Update from translation team.
71844
71845 2011-10-08  Roland McGrath  <roland@hack.frob.com>
71846
71847         * locale/programs/locarchive.c (prepare_address_space): New function.
71848         (create_archive, enlarge_archive, open_archive): Use it.
71849
71850         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
71851         inside [SHARED], where it is used.
71852
71853         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
71854
71855         * nss/getent.c (netgroup_keys): Remove unused variable.
71856         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
71857
71858 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
71859
71860         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
71861         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
71862         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
71863         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
71864         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
71865         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
71866         * math/Makefile (libm-calls): Add s_isinf_ns.
71867         * math/divtc3.c: Use __isinf_nsl instead of isinf.
71868         * math/multc3.c: Likewise.
71869         * math/s_casin.c: Likewise.
71870         * math/s_casinf.c: Likewise.
71871         * math/s_casinl.c: Likewise.
71872         * math/s_ccos.c: Likewise.
71873         * math/s_ccosf.c: Likewise.
71874         * math/s_ccosl.c: Likewise.
71875         * math/s_ctan.c: Likewise.
71876         * math/s_ctanf.c: Likewise.
71877         * math/s_ctanh.c: Likewise.
71878         * math/s_ctanhf.c: Likewise.
71879         * math/s_ctanhl.c: Likewise.
71880         * math/s_ctanl.c: Likewise.
71881         * math/w_fmod.c: Likewise.
71882         * math/w_fmodf.c: Likewise.
71883         * math/w_fmodl.c: Likewise.
71884         * math/w_remainder.c: Likewise.
71885         * math/w_remainderf.c: Likewise.
71886         * math/w_remainderl.c: Likewise.
71887         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
71888         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
71889         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
71890         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
71891         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
71892         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
71893         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
71894         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
71895
71896         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
71897         of the number.
71898         * stdio-common/printf_fphex.c: Likewise.
71899         * stdio-common/printf_size.c: Likewise.
71900
71901         * math/e_exp10.c: Include math_private.h using <...> not "...".
71902         * math/e_exp10f.c: Likewise.
71903         * math/e_exp10l.c: Likewise.
71904         * math/e_exp2l.c: Likewise.
71905         * math/e_j0l.c: Likewise.
71906         * math/e_j1l.c: Likewise.
71907         * math/e_jnl.c: Likewise.
71908         * math/e_lgammal_r.c: Likewise.
71909         * math/e_rem_pio2l.c: Likewise.
71910         * math/e_scalb.c: Likewise.
71911         * math/e_scalbf.c: Likewise.
71912         * math/e_scalbl.c: Likewise.
71913         * math/k_cosl.c: Likewise.
71914         * math/k_sinl.c: Likewise.
71915         * math/k_tanl.c: Likewise.
71916         * math/s_cacoshf.c: Likewise.
71917         * math/s_catan.c: Likewise.
71918         * math/s_catanf.c: Likewise.
71919         * math/s_catanh.c: Likewise.
71920         * math/s_catanhf.c: Likewise.
71921         * math/s_catanhl.c: Likewise.
71922         * math/s_catanl.c: Likewise.
71923         * math/s_ccosh.c: Likewise.
71924         * math/s_ccoshf.c: Likewise.
71925         * math/s_ccoshl.c: Likewise.
71926         * math/s_cexp.c: Likewise.
71927         * math/s_cexpf.c: Likewise.
71928         * math/s_cexpl.c: Likewise.
71929         * math/s_clog.c: Likewise.
71930         * math/s_clog10.c: Likewise.
71931         * math/s_clog10f.c: Likewise.
71932         * math/s_clog10l.c: Likewise.
71933         * math/s_clogf.c: Likewise.
71934         * math/s_clogl.c: Likewise.
71935         * math/s_csin.c: Likewise.
71936         * math/s_csinf.c: Likewise.
71937         * math/s_csinh.c: Likewise.
71938         * math/s_csinhf.c: Likewise.
71939         * math/s_csinhl.c: Likewise.
71940         * math/s_csinl.c: Likewise.
71941         * math/s_csqrt.c: Likewise.
71942         * math/s_csqrtf.c: Likewise.
71943         * math/s_csqrtl.c: Likewise.
71944         * math/s_ctan.c: Likewise.
71945         * math/s_ctanf.c: Likewise.
71946         * math/s_ctanh.c: Likewise.
71947         * math/s_ctanhf.c: Likewise.
71948         * math/s_ctanhl.c: Likewise.
71949         * math/s_ctanl.c: Likewise.
71950         * math/s_ldexp.c: Likewise.
71951         * math/s_ldexpf.c: Likewise.
71952         * math/s_ldexpl.c: Likewise.
71953         * math/s_significand.c: Likewise.
71954         * math/s_significandf.c: Likewise.
71955         * math/s_significandl.c: Likewise.
71956         * math/w_acos.c: Likewise.
71957         * math/w_acosf.c: Likewise.
71958         * math/w_acosh.c: Likewise.
71959         * math/w_acoshf.c: Likewise.
71960         * math/w_acoshl.c: Likewise.
71961         * math/w_acosl.c: Likewise.
71962         * math/w_asin.c: Likewise.
71963         * math/w_asinf.c: Likewise.
71964         * math/w_asinl.c: Likewise.
71965         * math/w_atan2.c: Likewise.
71966         * math/w_atan2f.c: Likewise.
71967         * math/w_atan2l.c: Likewise.
71968         * math/w_atanh.c: Likewise.
71969         * math/w_atanhf.c: Likewise.
71970         * math/w_atanhl.c: Likewise.
71971         * math/w_cosh.c: Likewise.
71972         * math/w_coshf.c: Likewise.
71973         * math/w_coshl.c: Likewise.
71974         * math/w_dremf.c: Likewise.
71975         * math/w_exp10.c: Likewise.
71976         * math/w_exp10f.c: Likewise.
71977         * math/w_exp10l.c: Likewise.
71978         * math/w_exp2.c: Likewise.
71979         * math/w_exp2f.c: Likewise.
71980         * math/w_fmod.c: Likewise.
71981         * math/w_fmodf.c: Likewise.
71982         * math/w_fmodl.c: Likewise.
71983         * math/w_hypot.c: Likewise.
71984         * math/w_hypotf.c: Likewise.
71985         * math/w_hypotl.c: Likewise.
71986         * math/w_j0.c: Likewise.
71987         * math/w_j0f.c: Likewise.
71988         * math/w_j0l.c: Likewise.
71989         * math/w_j1.c: Likewise.
71990         * math/w_j1f.c: Likewise.
71991         * math/w_j1l.c: Likewise.
71992         * math/w_jn.c: Likewise.
71993         * math/w_jnf.c: Likewise.
71994         * math/w_jnl.c: Likewise.
71995         * math/w_lgamma.c: Likewise.
71996         * math/w_lgamma_r.c: Likewise.
71997         * math/w_lgammaf.c: Likewise.
71998         * math/w_lgammaf_r.c: Likewise.
71999         * math/w_lgammal.c: Likewise.
72000         * math/w_lgammal_r.c: Likewise.
72001         * math/w_log.c: Likewise.
72002         * math/w_log10.c: Likewise.
72003         * math/w_log10f.c: Likewise.
72004         * math/w_log10l.c: Likewise.
72005         * math/w_log2.c: Likewise.
72006         * math/w_log2f.c: Likewise.
72007         * math/w_log2l.c: Likewise.
72008         * math/w_logf.c: Likewise.
72009         * math/w_logl.c: Likewise.
72010         * math/w_pow.c: Likewise.
72011         * math/w_powf.c: Likewise.
72012         * math/w_powl.c: Likewise.
72013         * math/w_remainder.c: Likewise.
72014         * math/w_remainderf.c: Likewise.
72015         * math/w_remainderl.c: Likewise.
72016         * math/w_scalb.c: Likewise.
72017         * math/w_scalbf.c: Likewise.
72018         * math/w_scalbl.c: Likewise.
72019         * math/w_sinh.c: Likewise.
72020         * math/w_sinhf.c: Likewise.
72021         * math/w_sinhl.c: Likewise.
72022         * math/w_sqrt.c: Likewise.
72023         * math/w_sqrtf.c: Likewise.
72024         * math/w_sqrtl.c: Likewise.
72025         * math/w_tgamma.c: Likewise.
72026         * math/w_tgammaf.c: Likewise.
72027         * math/w_tgammal.c: Likewise.
72028
72029         * po/ja.po: Update from translation team.
72030
72031 2011-09-29  Andreas Jaeger  <aj@suse.de>
72032
72033         [BZ #13179]
72034         * sunrpc/netname.c (netname2host): Fix logic.
72035
72036         [BZ #6779]
72037         [BZ #6783]
72038         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
72039         correctly.
72040         * math/w_remainder.c (__remainder): Likewise.
72041         * math/w_remainderf.c (__remainderf): Likewise.
72042         * math/libm-test.inc (remainder_test): Add test cases.
72043
72044 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72045
72046         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
72047         sdiv_qrnnd.
72048
72049 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72050
72051         * string/test-memcmp.c: Avoid unncessary #defines.
72052         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
72053
72054 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72055
72056         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
72057         Use new sse2 version for core i3 - i7 as it's faster
72058         than sse42 version.
72059         (bit_Prefer_PMINUB_for_stringop): New.
72060         * sysdeps/x86_64/rawmemchr.S: Update.
72061         Replace with faster SSE2 version.
72062         * sysdeps/x86_64/memrchr.S: New file.
72063         * sysdeps/x86_64/memchr.S: Update.
72064         Replace with faster SSE2 version.
72065
72066 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
72067
72068         * elf/dl-load.c (lose): Add cast to avoid warning.
72069
72070 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72071
72072         * po/ca.po: Update from translation team.
72073
72074         * inet/getnetgrent_r.c: Hook up nscd.
72075         * nscd/Makefile (routines): Add nscd_netgroup.
72076         (nscd-modules): Add netgroupcache.
72077         (CFLAGS-netgroupcache.c): Define.
72078         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
72079         (cache_search): Add const to second parameter.
72080         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
72081         INNETGR.
72082         (dbs): Add netgrdb entry.
72083         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
72084         (verify_persistent_db): Handle netgrdb.
72085         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
72086         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
72087         GETFDNETGR.
72088         (netgroup_response_header): Define.
72089         (innetgroup_response_header): Define.
72090         (datahead): Add netgroup_response_header and innetgroup_response_header
72091         elements.
72092         * nscd/nscd.conf: Add entries for netgroup cache.
72093         * nscd/nscd.h (dbtype): Add netgrdb.
72094         (_PATH_NSCD_NETGROUP_DB): Define.
72095         (netgroup_iov_disabled): Declare.
72096         (xmalloc, xcalloc, xrealloc): Move declarations here.
72097         (cache_search): Adjust prototype.
72098         Add netgroup-related prototypes.
72099         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
72100         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
72101         (__nscd_innetgr): Declare.
72102         * nscd/selinux.c (perms): Use access_vector_t as element type and
72103         add netgroup-related initializers.
72104         * nscd/netgroupcache.c: New file.
72105         * nscd/nscd_netgroup.c: New file.
72106         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
72107         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
72108         For four parameters use innetgr.
72109         * nss/nss_files/files-init.c: Add definition and callback for netgr.
72110         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
72111         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
72112         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
72113
72114         * nscd/connections.c (register_traced_file): Don't register file
72115         for disabled databases.
72116
72117 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
72118
72119         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
72120
72121         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
72122         from tree and freeing node.
72123
72124 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
72125
72126         * nss/nsswitch.c (__nss_database_lookup): Handle
72127         nss_parse_service_list out of memory case.
72128
72129 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
72130
72131         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
72132         out of memory case.
72133
72134 2011-10-04  Andreas Schwab  <schwab@redhat.com>
72135
72136         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
72137         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
72138         pass it down.
72139         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
72140         elf_machine_rela, elf_machine_lazy_rel.
72141         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
72142         (ELF_DYNAMIC_DO_REL): Likewise.
72143         (ELF_DYNAMIC_DO_RELA): Likewise.
72144         (ELF_DYNAMIC_RELOCATE): Likewise.
72145         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
72146         to ELF_DYNAMIC_DO_REL.
72147         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
72148         (dl_main): In trace mode always set __RTLD_NOIFUNC.
72149         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
72150         elf_machine_rela.
72151         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
72152         skip_ifunc, don't call ifunc function if non-zero.
72153         (elf_machine_rela): Likewise.
72154         (elf_machine_lazy_rel): Likewise.
72155         (elf_machine_lazy_rela): Likewise.
72156         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
72157         (elf_machine_lazy_rel): Likewise.
72158         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
72159         Likewise.
72160         (elf_machine_lazy_rel): Likewise.
72161         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72162         Likewise.
72163         (elf_machine_lazy_rel): Likewise.
72164         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
72165         (elf_machine_lazy_rel): Likewise.
72166         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
72167         (elf_machine_lazy_rel): Likewise.
72168         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
72169         (elf_machine_lazy_rel): Likewise.
72170         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
72171         (elf_machine_lazy_rel): Likewise.
72172         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
72173         (elf_machine_lazy_rel): Likewise.
72174         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
72175         (elf_machine_lazy_rel): Likewise.
72176
72177 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
72178
72179         * nss/nss_files/files-init.c (_nss_files_init): Use static
72180         initialization for all the *_traced_file variables.
72181
72182 2011-09-28  Andreas Schwab  <schwab@redhat.com>
72183
72184         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72185
72186 2011-09-27  Roland McGrath  <roland@hack.frob.com>
72187
72188         [BZ #13226]
72189         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
72190
72191 2011-09-27  Andreas Schwab  <schwab@redhat.com>
72192
72193         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
72194         Reread the line before reparsing it.
72195
72196 2011-09-26  Andreas Schwab  <schwab@redhat.com>
72197
72198         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
72199
72200 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
72201             Maxim Kuvyrkov  <maxim@codesourcery.com>
72202             Joseph Myers  <joseph@codesourcery.com>
72203
72204         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
72205         if needed for __stack_chk_guard.
72206
72207 2011-09-19  Roland McGrath  <roland@hack.frob.com>
72208
72209         * sysdeps/posix/spawni.c (script_execute): Always define it.
72210         It will be optimized away if unused.
72211         (maybe_script_execute): New function.
72212         (__spawni): Call it.
72213
72214         * Makerules: Don't include tls.make.
72215         (config-tls): Always set to thread.
72216         * tls.make.c: File removed.
72217
72218 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
72219
72220         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
72221         * config.make.in (CPPFLAGS-config): New substituted variable.
72222
72223 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72224
72225         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
72226
72227         [BZ #13192]
72228         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
72229         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
72230
72231 2011-09-15  Roland McGrath  <roland@hack.frob.com>
72232
72233         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
72234         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
72235         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
72236         (CALL_FAIL): Likewise.
72237         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
72238         (CALL_FAIL): Macro removed.
72239         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
72240
72241 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72242
72243         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
72244         for __FINITE_MATH_ONLY__ == 1.
72245
72246 2011-09-15  Andreas Schwab  <schwab@redhat.com>
72247
72248         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
72249         __ieee754_sqrt instead of sqrt.
72250         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
72251         __ieee754_sqrtf instead of sqrtf.
72252         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
72253         __floorf instead of floorf.
72254         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
72255         __floorf, __truncf instead of floorf, truncf.
72256
72257 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
72258
72259         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
72260
72261         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
72262         __extern_always_inline.
72263         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
72264         32-bit.
72265
72266 2011-09-14  Andreas Schwab  <schwab@redhat.com>
72267
72268         * elf/rtld.c (dl_main): Also relocate in dependency order when
72269         doing symbol dependency testing.
72270
72271 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
72272
72273         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72274         Always define `refsym'.
72275
72276 2011-09-13  Andreas Schwab  <schwab@redhat.com>
72277
72278         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
72279         (__FD_ELT): Renamed from __FDELT.
72280         * misc/bits/select2.h (__FD_ELT): Likewise.
72281         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
72282         __FD_MASK instead of __FDELT, __FDMASK.
72283         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72284         Likewise.
72285         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72286         Likewise.
72287
72288         * elf/Makefile (gen-ldd): Fix pattern.
72289
72290         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
72291         (init_tls): Likewise.
72292
72293 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
72294
72295         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
72296
72297 2011-09-12  Andreas Schwab  <schwab@redhat.com>
72298
72299         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
72300         `struct cmsghdr *' instead of `void *'.
72301         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
72302         Likewise.
72303
72304 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
72305
72306         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
72307         if non-absolute.
72308         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
72309         ldd_rewrite_script.
72310
72311 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
72312
72313         * configure.in: Remove --with-tls option.
72314         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
72315         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
72316         out in case it is missing.
72317         * sysdeps/ia64/elf/configure.in: Likewise.
72318         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
72319         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
72320         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
72321         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
72322         * sysdeps/sh/elf/configure.in: Likewise.
72323         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
72324         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
72325         * sysdeps/x86_64/elf/configure.in: Likewise.
72326         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
72327         * sysdeps/mach/hurd/tls.h: Likewise.
72328
72329         [BZ #13067]
72330         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
72331
72332         [BZ #13090]
72333         * configure.in: Fix use of AC_INIT.
72334
72335         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
72336
72337 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
72338
72339         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
72340         __set_errno.
72341         * malloc/hooks.c: Likewise.
72342
72343         [BZ #11929]
72344         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
72345         variables statically.
72346         (narenas): Initialize.
72347         (list_lock): Initialize.
72348         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
72349         initializtion of main_arena and list_lock.  Small cleanups.
72350         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
72351         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
72352         Add initializers to main_arena and mp_.
72353         (malloc_state): Remove pagesize member.  Change all users to use
72354         GLRO(dl_pagesize).
72355
72356         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
72357         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
72358         is always initialized.
72359
72360         * malloc/malloc.c: Removed unused configurations and dead code.
72361         * malloc/arena.c: Likewise.
72362         * malloc/hooks.c: Likewise.
72363         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
72364
72365         * include/tls.h: Removed.  USE___THREAD must always be defined.
72366         * bits/libc-tsd.h: Don't handle !USE___THREAD.
72367         * elf/dl-libc.c: Likewise.
72368         * elf/dl-tsd.c: Likewise.
72369         * include/errno.h: Likewise.
72370         * include/netdb.h: Likewise.
72371         * include/resolv.h: Likewise.
72372         * inet/herrno-loc.c: Likewise.
72373         * inet/herrno.c: Likewise.
72374         * malloc/arena.c: Likewise.
72375         * malloc/hooks.c: Likewise.
72376         * malloc/malloc.c: Likewise.
72377         * resolv/res-state.c: Likewise.
72378         * resolv/res_libc.c: Likewise.
72379         * sysdeps/i386/dl-machine.h: Likewise.
72380         * sysdeps/ia64/dl-machine.h: Likewise.
72381         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
72382         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
72383         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
72384         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
72385         * sysdeps/sh/dl-machine.h: Likewise.
72386         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
72387         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
72388         * sysdeps/unix/i386/sysdep.S: Likewise.
72389         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
72390         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
72391         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
72392         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
72393         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
72394         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
72395         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
72396         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
72397         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
72398         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
72399         * sysdeps/unix/x86_64/sysdep.S: Likewise.
72400         * sysdeps/x86_64/dl-machine.h: Likewise.
72401         * tls.make.c: Likewise.
72402
72403         * configure.in: Remove --with-__thread option.  Make tests for
72404         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
72405         tls_model attribute fail if no support is available.  Remove
72406         USE_IN_LIBIO.
72407         * Makeconfig: Adjust for dropped configure option.  All features are
72408         now mandatory.
72409         * Makerules: Likewise.
72410         * Versions.def: Likewise.
72411         * argp/argp-fmtstream.c: Likewise.
72412         * argp/argp-fmtstream.h: Likewise.
72413         * argp/argp-help.c: Likewise.
72414         * assert/assert.c: Likewise.
72415         * config.h.in: Likewise.
72416         * config.make.in: Likewise.
72417         * configure: Likewise.
72418         * configure.in: Likewise.
72419         * csu/Versions: Likewise.
72420         * csu/init.c: Likewise.
72421         * elf/tst-audit2.c: Likewise.
72422         * elf/tst-tls10.c: Likewise.
72423         * elf/tst-tls10.h: Likewise.
72424         * elf/tst-tls11.c: Likewise.
72425         * elf/tst-tls12.c: Likewise.
72426         * elf/tst-tls14.c: Likewise.
72427         * elf/tst-tlsmod11.c: Likewise.
72428         * elf/tst-tlsmod12.c: Likewise.
72429         * elf/tst-tlsmod13.c: Likewise.
72430         * elf/tst-tlsmod13a.c: Likewise.
72431         * elf/tst-tlsmod14a.c: Likewise.
72432         * elf/tst-tlsmod15b.c: Likewise.
72433         * elf/tst-tlsmod16a.c: Likewise.
72434         * elf/tst-tlsmod16b.c: Likewise.
72435         * elf/tst-tlsmod7.c: Likewise.
72436         * elf/tst-tlsmod8.c: Likewise.
72437         * elf/tst-tlsmod9.c: Likewise.
72438         * gmon/gmon.c: Likewise.
72439         * grp/fgetgrent_r.c: Likewise.
72440         * grp/putgrent.c: Likewise.
72441         * hurd/fopenport.c: Likewise.
72442         * include/libc-symbols.h: Likewise.
72443         * include/tls.h: Likewise.
72444         * intl/gettextP.h: Likewise.
72445         * intl/loadinfo.h: Likewise.
72446         * locale/global-locale.c: Likewise.
72447         * locale/localeinfo.h: Likewise.
72448         * mach/devstream.c: Likewise.
72449         * malloc/arena.c: Likewise.
72450         * malloc/set-freeres.c: Likewise.
72451         * misc/err.c: Likewise.
72452         * misc/getttyent.c: Likewise.
72453         * misc/mntent_r.c: Likewise.
72454         * posix/getopt.c: Likewise.
72455         * posix/wordexp.c: Likewise.
72456         * pwd/fgetpwent_r.c: Likewise.
72457         * resolv/Versions: Likewise.
72458         * resolv/res_hconf.c: Likewise.
72459         * shadow/fgetspent_r.c: Likewise.
72460         * shadow/putspent.c: Likewise.
72461         * stdio-common/printf_fphex.c: Likewise.
72462         * stdio-common/tmpfile.c: Likewise.
72463         * stdlib/abort.c: Likewise.
72464         * stdlib/fmtmsg.c: Likewise.
72465         * sunrpc/auth_unix.c: Likewise.
72466         * sunrpc/clnt_perr.c: Likewise.
72467         * sunrpc/clnt_tcp.c: Likewise.
72468         * sunrpc/clnt_udp.c: Likewise.
72469         * sunrpc/clnt_unix.c: Likewise.
72470         * sunrpc/openchild.c: Likewise.
72471         * sunrpc/svc_simple.c: Likewise.
72472         * sunrpc/svc_tcp.c: Likewise.
72473         * sunrpc/svc_udp.c: Likewise.
72474         * sunrpc/svc_unix.c: Likewise.
72475         * sunrpc/xdr.c: Likewise.
72476         * sunrpc/xdr_array.c: Likewise.
72477         * sunrpc/xdr_rec.c: Likewise.
72478         * sunrpc/xdr_ref.c: Likewise.
72479         * sunrpc/xdr_stdio.c: Likewise.
72480
72481 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72482
72483         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72484
72485 2011-07-03  Andreas Jaeger  <aj@suse.de>
72486
72487         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
72488         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
72489         regenerate with gen-libm-tests.pl.
72490
72491 2010-05-12  Petr Baudis  <pasky@suse.cz>
72492
72493         [BZ #11589]
72494         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
72495         around j0() zero points by switching to j1().
72496         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72497         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72498         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
72499         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72500
72501 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72502
72503         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
72504         instead of 0.
72505         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
72506         instead of 0.
72507         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
72508         Patch in part by Pavel Roskin <proski@gnu.org>.
72509
72510         [BZ #13138]
72511         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
72512         realloc.
72513         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
72514         Free memory block if necessary.
72515
72516         [BZ #12847]
72517         * libio/genops.c (INTDEF): For string streams the _lock pointer can
72518         be NULL.  Don't lock in this case.
72519
72520 2011-09-09  Roland McGrath  <roland@hack.frob.com>
72521
72522         * elf/elf.h (ELFOSABI_GNU): New macro.
72523         (ELFOSABI_LINUX): Define to that.
72524
72525 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
72526
72527         * string/strncat.c (strncat): Undef the symbol in case it has been
72528         defined in bits/string.h.
72529
72530 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72531
72532         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
72533
72534         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
72535         link map.
72536
72537 2011-08-17  Andreas Jaeger  <aj@suse.de>
72538
72539         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
72540
72541 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
72542             Ian Lance Taylor  <iant@google.com>
72543
72544         * math/libm-test.inc (lround_test): New testcase.
72545         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
72546
72547 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
72548
72549         * Makefile: Remove support for automatic cvs check-ins.
72550         * Makerules: Likewise.
72551         * config.make.in: Likewise.
72552         * configure.in: Likewise.
72553         * intl/Makefile: Likewise.
72554         * locale/Makefile: Likewise.
72555         * po/Makefile: Likewise.
72556         * posix/Makefile: Likewise.
72557         * sysdeps/gnu/Makefile: Likewise.
72558         * sysdeps/mach/hurd/Makefile: Likewise.
72559         * sysdeps/sparc/sparc32/Makefile: Likewise.
72560
72561         [BZ #13118]
72562         * posix/Makefile (bug-regex32-ENV): Define.
72563         Patch by John Stanley <jpsinthemix@verizon.net>.
72564
72565         * misc/Makefile (headers): Add bits/select2.h.
72566         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
72567         * misc/bits/select2.h: New file.
72568         * include/bits/select2.h: New file.
72569         * debug/Makefile (routines): Add fdelt_chk.
72570         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
72571         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
72572         FD_ISSET.
72573         * debug/fdelt_chk.c: New file.
72574
72575         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
72576         * wcsmbs/test-wmemcmp.c: Likewise.
72577         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
72578         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
72579
72580 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72581
72582         * string/Makefile (strop-tests): Add memcmp.
72583         * string/test-wmemcmp.c: New file.
72584         * string/test-memcmp.c: Add wmemcmp support.
72585
72586 2011-09-08  Roland McGrath  <roland@hack.frob.com>
72587
72588         [BZ #13153]
72589         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
72590         2011-07-19 change.
72591
72592         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
72593         garbage value in a __mach_port_mod_refs call in the cases of the
72594         task-self and thread-self ports.
72595
72596 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
72597
72598         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
72599
72600 2011-09-08  Andreas Schwab  <schwab@redhat.com>
72601
72602         * elf/dl-load.c (lose): Check for non-null L.
72603
72604 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72605
72606         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
72607
72608         * elf/dl-libc.c (dlerror_run): Pass back error code from
72609         dl_catch_error.
72610
72611         [BZ #13123]
72612         * elf/dl-load.c (lose): Free l_origin if it is valid.
72613
72614         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
72615         names.
72616         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
72617         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72618         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
72619         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72620         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
72621         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
72622
72623 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
72624
72625         * sysdeps/powerpc/fpu/e_hypot.c: New file.
72626         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
72627         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
72628         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
72629         * sysdeps/powerpc/fpu/k_cosf.c: New file.
72630         * sysdeps/powerpc/fpu/k_sinf.c: New file.
72631         * sysdeps/powerpc/fpu/s_cosf.c: New file.
72632         * sysdeps/powerpc/fpu/s_sinf.c: New file.
72633         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
72634         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
72635
72636 2011-08-15  Alan Modra  <amodra@gmail.com>
72637
72638         [BZ #13092]
72639         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
72640         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
72641         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
72642         ppc_mcount to static-only-routines.
72643         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
72644         __mcount_internal.
72645         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
72646         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
72647
72648 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
72649
72650         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
72651         for finite and infinity parameters.
72652
72653 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
72654
72655         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
72656         and add nop instructions for throughput optimization.
72657         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
72658
72659 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
72660
72661         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
72662         aligned copy for power7 with vector-scalar instructions.
72663         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
72664
72665 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
72666
72667         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
72668         AVX check.
72669
72670 2011-09-07  Andreas Schwab  <schwab@redhat.com>
72671
72672         [BZ #13144]
72673         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
72674         last change.
72675
72676 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72677
72678         * sysdeps/unix/sysv/linux/x86_64/init-first.c
72679         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
72680         syscall wrapper around clock_gettime in __vdso_clock_gettime.
72681         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
72682         clock_gettime.
72683
72684 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72685
72686         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
72687         Forgot to demangle the pointer.
72688
72689         * sysdeps/i386/sysdep.h: Define atom_text_section.
72690         * sysdeps/x86_64/sysdep.h: Likewise.
72691         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
72692         section with atom_text_section.
72693         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72694         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72695         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
72696         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
72697         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
72698
72699         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
72700         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
72701         already be defined.  Change to take two parameters and don't assign
72702         result to variable.  Adjust all users.
72703         Define INTERNAL_GETTIME if not already defined.
72704         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
72705         call.
72706         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
72707         HAVE_CLOCK_GETTIME_VSYSCALL.
72708         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
72709
72710         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
72711         gettimeofday vsyscall, just use time.
72712
72713 2011-09-06  Andreas Schwab  <schwab@redhat.com>
72714
72715         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
72716         <errno.h>.
72717
72718 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72719
72720         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
72721         syscall on x86-64.
72722         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
72723         syscall.
72724         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
72725         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
72726         syscall if possible.
72727
72728 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72729
72730         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
72731         e_ident.  Don't pass to find_mapsXX.
72732         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
72733
72734 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72735
72736         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
72737         strchr-sse2-no-bsf strrchr-sse2-no-bsf
72738         * sysdeps/x86_64/multiarch/strchr.S: Update.
72739         Check bit_slow_BSF bit.
72740         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
72741         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
72742         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
72743
72744 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72745
72746         [BZ #13134]
72747         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
72748         before glibc 2.15.
72749         (tryshell): Define.
72750         (__spawni): Change last parameter to be flag.  Test
72751         SPAWN_XFLAGS_USE_PATH flag to use path or not.
72752         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
72753         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
72754         * posix/spawni.c: Likewise.
72755         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
72756         * posix/spawnp.c: Likewise.  Change normal version to use
72757         SPAWN_XFLAGS_USE_PATH.
72758         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
72759         SPAWN_XFLAGS_TRY_SHELL.
72760
72761         [BZ #13150]
72762         * posix/glob.h: Remove gcc 1.x support.
72763
72764         [BZ #13068]
72765         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
72766
72767 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72768
72769         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72770         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
72771         strrchr-sse2-bsf
72772         * sysdeps/i386/i686/multiarch/strchr.S: New file.
72773         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
72774         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
72775         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
72776         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
72777         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
72778
72779 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72780
72781         * sysdeps/x86_64/wcscmp.S: New file.
72782
72783         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
72784         wcscmp-c wcscmp-sse2
72785         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
72786         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
72787         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
72788         * wcsmbs/wcscmp.c: Allow renaming.
72789
72790 2011-09-05  David S. Miller  <davem@davemloft.net>
72791
72792         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
72793         stack slot, rather than the struct return pointer slot.
72794         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
72795         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
72796         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
72797         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
72798
72799 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72800
72801         * po/ja.po: Update from translation team.
72802
72803         [BZ #13144]
72804         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
72805         kernel in 64-bit binaries.
72806
72807 2011-09-01  David S. Miller  <davem@davemloft.net>
72808
72809         * elf/elf.h (HWCAP_SPARC_*): Move to..
72810         * sysdeps/sparc/sysdep.h: this new file and add new values.
72811         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
72812         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
72813         _DL_HWCAP_COUNT to 24.
72814         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
72815         entries.
72816         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
72817         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
72818         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
72819         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
72820         instead of magic constants.
72821         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
72822
72823 2011-08-31  David S. Miller  <davem@davemloft.net>
72824
72825         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
72826         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
72827         Reimplement to do errno handling inline.
72828         (SYSCALL_ERROR_HANDLER): New macro.
72829         (__SYSCALL_STRING): Do not do errno handling in asm.
72830         (__CLONE_SYSCALL_STRING): Delete.
72831         (__INTERNAL_SYSCALL_STRING): Delete.
72832         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
72833         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
72834         (PSEUDO): Reimplement to do errno handling inline.
72835         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
72836         (SYSCALL_ERROR_HANDLER): New macro.
72837         (__SYSCALL_STRING): Do not do errno handling in asm.
72838         (__CLONE_SYSCALL_STRING): Delete.
72839         (__INTERNAL_SYSCALL_STRING): Delete.
72840         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
72841         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
72842         i386.
72843         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
72844         (inline_syscall*): Add 'err' argument.
72845         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
72846         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
72847         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
72848         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
72849
72850         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
72851         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
72852
72853 2011-08-30  Andreas Schwab  <schwab@redhat.com>
72854
72855         * elf/rtld.c (dl_main): Relocate objects in dependency order.
72856
72857 2011-08-29  Jiri Olsa <jolsa@redhat.com>
72858
72859         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
72860         directive.
72861
72862 2011-08-24  David S. Miller  <davem@davemloft.net>
72863
72864         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
72865
72866 2011-08-24  Andreas Schwab  <schwab@redhat.com>
72867
72868         * elf/Makefile: Add rules to build and run unload8 test.
72869         * elf/unload8.c: New file.
72870         * elf/unload8mod1.c: New file.
72871         * elf/unload8mod1x.c: New file.
72872         * elf/unload8mod2.c: New file.
72873         * elf/unload8mod3.c: New file.
72874
72875         * elf/dl-close.c (_dl_close_worker): Reset private search list if
72876         it wasn't used.
72877
72878 2011-08-23  David S. Miller  <davem@davemloft.net>
72879
72880         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
72881         subtract stack bias.
72882         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
72883         %sp not %fp in calculations.
72884         (_JMPBUF_UNWINDS_ADJ): Likewise.
72885
72886         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
72887         (aio_suspend): Call it to force an exception region around the
72888         AIO_MISC_WAIT() invocation.
72889
72890 2011-08-23  Andreas Schwab  <schwab@redhat.com>
72891
72892         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
72893         backslash.
72894
72895 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
72896
72897         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
72898         protection macro.
72899         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
72900         and <dl-machine.h>.
72901         (Elf64_FuncDesc): Remove.
72902
72903 2011-08-22  David S. Miller  <davem@davemloft.net>
72904
72905         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
72906         sigaltstack check, add missing cfi directives.
72907         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
72908         missing cfi directives, and sigaltstack handling.
72909
72910 2011-08-16  Andreas Schwab  <schwab@redhat.com>
72911
72912         [BZ #11724]
72913         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
72914         object is seen twice.
72915         * elf/dl-fini.c (_dl_sort_fini): Likewise.
72916
72917         * elf/Makefile (distribute): Add tst-initorder2.c.
72918         (tests): Add tst-initorder2.
72919         (modules-names): Add tst-initorder2a tst-initorder2b
72920         tst-initorder2c tst-initorder2d.  Add rules to build them.
72921         ($(objpfx)tst-initorder2.out): New rule.
72922         * elf/tst-initorder2.c: New file.
72923         * elf/tst-initorder2.exp: New file.
72924
72925 2011-08-22  Andreas Schwab  <schwab@redhat.com>
72926
72927         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
72928
72929         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
72930         dependencies back to end of function.
72931
72932         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
72933         $(elfobjdir)/ld.so.
72934
72935 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
72936
72937         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
72938         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
72939         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
72940         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
72941         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
72942         of __vdso_gettimeofday.
72943         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
72944         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
72945         attribute_hidden.
72946         (_libc_vdso_platform_setup): Remove initialization of
72947         __vdso_gettimeofday and __vdso_time.
72948
72949 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
72950
72951         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
72952         and fgetc_unlocked.
72953         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
72954         getc_unlocked.
72955
72956         * elf/dl-open.c (add_to_global): Report additions to the global scope
72957         for LD_DEBUG=scopes.
72958         (dl_open_worker): Also print scope of newly loaded dependencies.
72959         (_dl_show_scope): Indicate if there is no scope.
72960
72961         [BZ #13114]
72962         * stdio-common/Makefile (tests): Add bug24.
72963         * stdio-common/bug24.c: New file.
72964
72965 2011-08-19  Andreas Jaeger  <aj@suse.de>
72966
72967         [BZ #13114]
72968         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
72969         non-existant file when using close-on-exec mode.
72970
72971 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
72972
72973         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
72974         the very first instruction.
72975
72976         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
72977         the CFI state in the end.
72978         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
72979         inclusion of dl-trampoline.h.
72980         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
72981
72982 2011-08-19  Andreas Schwab  <schwab@redhat.com>
72983
72984         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
72985         expectations for long double.
72986
72987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
72988         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
72989
72990 2011-08-14  David S. Miller  <davem@davemloft.net>
72991
72992         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
72993         artificual limit depends upon the system page size.
72994
72995 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
72996
72997         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
72998         * resolv/Makefile: Define CFLAGS-libresolv.
72999
73000 2011-08-17  Andreas Schwab  <schwab@redhat.com>
73001
73002         * nss/makedb.c (compute_tables): Make variables used in nested
73003         function static.
73004
73005 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73006
73007         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
73008         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
73009         if buffer was too small.
73010
73011         * elf/pldd.c (main): Attach to all threads in the process.
73012         Rewrite /proc handling to use *at functions.
73013
73014 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
73015
73016         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
73017         specifies first scope to show.
73018         (dl_open_worker): Update callers.  Move printing scope of new
73019         object to before the relocation.
73020         * elf/rtld.c (dl_main): Update _dl_show_scope call.
73021         * sysdeps/generic/ldsodefs.h: Update declaration.
73022
73023         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
73024         string for the scope number.
73025
73026 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
73027
73028         * nscd/servicescache.c (cache_addserv): Make sure written is always
73029         initialized.
73030
73031 2011-08-14  Roland McGrath  <roland@hack.frob.com>
73032
73033         * sysdeps/i386/i486/bits/atomic.h
73034         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
73035         statement expression, so as to suppress "set but not used" warning.
73036         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
73037
73038         * string/strncat.c (STRNCAT): Use prototype definition.
73039
73040         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
73041         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
73042         -Iprograms here.
73043         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
73044         (localedef-modules): Add localedef.
73045         (locale-modules): Add locale.
73046
73047         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
73048         * elf/rtld.c (dl_main): Invert order of assignment in last change,
73049         to avoid a warning.
73050
73051 2011-08-14  David S. Miller  <davem@davemloft.net>
73052
73053         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
73054         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
73055
73056 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
73057
73058         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
73059         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
73060         * elf/rtld.c (dl_main): Set l_name of vDSO.
73061         Call _dl_show_scope when DL_DEBUG_SCOPES.
73062         (process_dl_debug): Recognize scopes flag and also set it for all.
73063         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
73064         Declare _dl_show_scope.
73065
73066         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
73067         (do_dlopen): Pass caller_dlopen to dl_open.
73068         (__libc_dlopen_mode): Initialize caller_dlopen.
73069
73070         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
73071         of libc.  Make tolower call locale-independent.  Optimize a bit by
73072         using isdigit instead of isalnum.
73073         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
73074
73075 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
73076
73077         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
73078         was a dependency or dynamically loaded.
73079
73080 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
73081
73082         * intl/l10nflist.c: Allow architecture-specific pop function.
73083         * sysdeps/x86_64/l10nflist.c: New file.
73084
73085         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
73086         classification.
73087
73088 2011-08-10  Andreas Schwab  <schwab@redhat.com>
73089
73090         * include/dirent.h: Add libc_hidden_proto for scandirat and
73091         scandirat64.  Don't declare __scandirat64.
73092         * dirent/scandirat.c: Add libc_hidden_def.
73093         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
73094         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
73095
73096 2011-08-10  David S. Miller  <davem@davemloft.net>
73097
73098         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
73099         enum.
73100         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73101         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73102         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73103
73104 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
73105
73106         * Versions.def [libc]: Add GLIBC_2.15.
73107         * dirent/Makefile (routines): Add scandirat and scandirat64.
73108         * dirent/Versions [libc]: Export scandirat and scandirat64 for
73109         GLIBC_2.15.
73110         * dirent/dirent.h: Declare scandirat and scandirat64.
73111         * dirent/scandirat.c: New file.
73112         * dirent/scandirat64.c: New file.
73113         * sysdeps/wordsize-64/scandirat.c: New file.
73114         * sysdeps/wordsize-64/scandirat64.c: New file.
73115         * dirent/opendir.c: Define opendirat.
73116         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
73117         using scandirat.
73118         * dirent/scandir64.c: Adjust for scandir.c change.
73119         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
73120         __scandirat64, and __scandir_cancel_handler.
73121         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
73122         additional parameter and use openat instead of open (outside of ld.so).
73123         Add new __opendir as wrapper around __opendirat.
73124         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
73125         here without requiring old scandirat implementation.
73126
73127 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
73128
73129         * dirent/scandir.c (cancel_handler): Renamed to
73130         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
73131         defined.  Adjust users.
73132         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
73133         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
73134
73135 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
73136
73137         * string/test-string.h (IMPL): Use __STRING to expand name and then
73138         stringify it.
73139
73140         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
73141         of cleanups.
73142
73143 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73144
73145         * string/Makefile: Update.
73146         (strop-tests): Append strncat.
73147         * string/test-wcscmp.c: New file.
73148         New comprehensive test for wcscmp.
73149         * string/test-strcmp.c: Update.
73150         (WIDE): New define.
73151
73152 2011-07-22  Andreas Schwab  <schwab@redhat.com>
73153
73154         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
73155         line.
73156
73157 2011-07-26  Andreas Schwab  <schwab@redhat.com>
73158
73159         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
73160         encoding to ACE if AI_IDN.
73161
73162 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
73163
73164         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
73165         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
73166
73167 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73168
73169         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
73170         Fix overflow bug in strncat.
73171         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
73172
73173         * string/test-strncat.c: Update.
73174         Add new tests for checking overflow bugs.
73175
73176 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73177
73178         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73179         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
73180         * sysdeps/i386/i686/multiarch/strcat.S: New file.
73181         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
73182         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
73183         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
73184         * sysdeps/i386/i686/multiarch/strncat.S: New file.
73185         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
73186         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
73187
73188         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
73189         (USE_AS_STRCAT): Define.
73190         Add strcat and strncat support.
73191         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73192
73193 2011-07-25  Andreas Schwab  <schwab@redhat.com>
73194
73195         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
73196         __n bigger than INT_MAX+1.
73197         (__strncmp_g): Likewise.
73198
73199 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
73200
73201         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
73202         * libio/stido.h: Likewise.
73203
73204         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
73205         (AF_NFC): Define.
73206         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
73207         (AF_NFC): Define.
73208
73209         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
73210         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73211         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73212         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
73213         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73214
73215         [BZ #13021]
73216         * scripts/test-installation.pl: Don't expect libnss_test1 to be
73217         installed.
73218
73219         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
73220         typo.
73221         (_dl_x86_64_save_sse): Likewise.
73222
73223 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
73224
73225         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
73226         OSXSAVE.
73227         (_dl_x86_64_save_sse): Likewise.
73228
73229         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
73230
73231         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
73232
73233 2011-07-21  Andreas Schwab  <schwab@redhat.com>
73234
73235         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
73236         change.
73237         (_dl_x86_64_save_sse): Use correct AVX check.
73238
73239 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73240
73241         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
73242         bug in strncpy/strncat.
73243         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
73244
73245 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
73246
73247         * string/tester.c (test_strcat): Add tests for different alignments
73248         of source and destination.
73249         (test_strncat): Likewise.
73250
73251 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73252
73253         [BZ #12852]
73254         * posix/glob.c (glob): Check passed in values before using them in
73255         expressions to avoid some overflows.
73256         (glob_in_dir): Likewise.
73257
73258         [BZ #13007]
73259         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
73260         check for AVX enablement so that we don't crash with old kernels and
73261         new hardware.
73262         * elf/tst-audit4.c: Add same checks here.
73263         * elf/tst-audit6.c: Likewise.
73264
73265         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
73266
73267 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
73268
73269         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
73270
73271 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73272
73273         * po/cs.po: Update from translation team.
73274         * po/bg.po: Likewise.
73275
73276 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
73277
73278         * misc/sys/cdefs.h: Add support for const attribute.
73279         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
73280         to gnu_dev_{major,minor,makedev} functions.
73281
73282 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
73283
73284         * intl/dcigettext.c (get_output_charset): Add missing bracket.
73285
73286 2011-07-20  Andreas Schwab  <schwab@redhat.com>
73287
73288         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
73289         strlen results.
73290
73291 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73292
73293         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
73294         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
73295         register in order to avoid conflicts with the soft frame pointer
73296         being held in r11 when necessary.
73297         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
73298         (INTERNAL_VSYSCALL_NCS): Likewise.
73299
73300 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
73301
73302         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
73303         * elf/dl-fini.c (_dl_fini): Adjust caller.
73304         * elf/dl-close.c (_dl_close_worker): Likewise.
73305         * sysdeps/generic/ldsodefs.h: Adjust declaration.
73306
73307 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73308
73309         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
73310         "aux_cache->nlibs < 0".
73311
73312         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
73313         in the reload-count case.
73314
73315 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73316
73317         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73318         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
73319         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
73320         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
73321         * sysdeps/x86_64/multiarch/strcat.S: New file.
73322         * sysdeps/x86_64/multiarch/strncat.S: New file.
73323         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
73324         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
73325         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
73326         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
73327         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
73328         (USE_AS_STRCAT): Define.
73329         Add strcat and strncat support.
73330         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73331         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
73332         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
73333         * string/strncat.c: Update.
73334         (USE_AS_STRNCAT): Define.
73335         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73336         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
73337         and i7.
73338         * sysdeps/x86_64/multiarch/init-arch.h
73339         (bit_Prefer_PMINUB_for_stringop): New.
73340         (index_Prefer_PMINUB_for_stringop): Likewise.
73341         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
73342         bit_Prefer_PMINUB_for_stringop.
73343
73344 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73345
73346         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
73347         buffer64.
73348         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
73349         of casting of buffer.
73350         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
73351         buffer32 and buffer64.
73352         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
73353         writes instead of casting of buffer.
73354         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
73355         buffer32.
73356         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
73357         casting of buffer.
73358
73359 2011-07-19  Andreas Schwab  <schwab@redhat.com>
73360
73361         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
73362
73363 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73364
73365         * nscd/nscd.c (termination_handler): Don't do anything for a database
73366         if it has not yet been initialized.
73367
73368 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73369
73370         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73371
73372 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73373
73374         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73375
73376 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73377
73378         * po/nl.po: Update from translation team.
73379         * po/sv.po: Likewise.
73380
73381 2011-07-16  Roland McGrath  <roland@hack.frob.com>
73382
73383         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
73384         now disallowed by GCC.
73385
73386         * configure.in (use-default-link): Default to yes if a test -shared
73387         link meets our qualifications.
73388         * configure: Regenerated.
73389
73390         * config.make.in (output-format): New variable.
73391         * configure.in: Check for ld --print-output-format support.
73392         * configure: Regenerated.
73393         * Makerules ($(common-objpfx)format.lds)
73394         [$(output-format) != unknown]: Just use $(output-format),
73395         instead of the linker-script munging.
73396
73397 2011-07-14  Roland McGrath  <roland@hack.frob.com>
73398
73399         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
73400         of $(common-objpfx)shlib.lds.
73401         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
73402
73403         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
73404         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
73405
73406         * configure.in (-z relro check): Adjust test code to add a large
73407         writable data section after it.
73408         * configure: Regenerated.
73409
73410 2011-07-11  Roland McGrath  <roland@hack.frob.com>
73411
73412         * configure.in (-z relro check): Fix test code to make the variable
73413         truly const.
73414         * configure: Regenerated.
73415
73416 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
73417
73418         * nscd/nscd.h (struct traced_file): Define.
73419         (struct database_dyn): Remove inotify_descr, reset_res, and filename
73420         elements.  Add traced_files.
73421         (inotify_fd): Declare.
73422         (register_traced_file): Declare.
73423         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
73424         (inotify_fd): Export.
73425         (resolv_conf_descr): Remove.
73426         (nscd_init): Move inotify descriptor creation to main.
73427         Don't register files for notification here.
73428         (register_traced_file): New function.
73429         (invalidate_cache): Don't use reset_res to determine whether to call
73430         res_init, go through the list of registered files.
73431         (main_loop_poll): The inotify descriptors are now stored in the
73432         structures for the traced files.
73433         (main_loop_epoll): Likewise.
73434         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
73435         to __nss_disable_nscd.
73436         * nscd/cache.c (prune_cache): There is no single inotify descriptor
73437         for a database anymore.  Check the records for all the registered
73438         files instead.
73439         * nss/Makefile (libnss_files-routines): Add files-init.
73440         (libnss_db-routines): Add db-init.
73441         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
73442         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
73443         * nss/nss_db/db-init.c: New file.
73444         * nss/nss_files/files-init.c: New file.
73445         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
73446         __nss_lookup_function.
73447         (__nss_lookup_function): Call nss_load_library.
73448         (nss_load_all_libraries): New function.
73449         (__nss_disable_nscd): Take parameter with callback function for files
73450         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
73451         used for the cached services.
73452         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
73453         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
73454         options for features to all the files in nscd.
73455
73456         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
73457
73458 2011-07-10  Roland McGrath  <roland@hack.frob.com>
73459
73460         * csu/elf-init.c (__libc_csu_init): Comment typo.
73461
73462 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
73463
73464         * po/pl.po: Update from translation team.
73465         * po/ja.po: Likewise.
73466         * po/ru.po: Likewise.
73467         * po/ko.po: Likewise.
73468         * po/fr.po: Likewise.
73469
73470 2011-07-09  Roland McGrath  <roland@hack.frob.com>
73471
73472         * configure.in (.ctors/.dtors header and trailer check):
73473         Use an empirical test on a built program.
73474         * configure: Regenerated.
73475
73476         * configure.in (-z relro check): Use an empirical test on a built DSO.
73477         Detect, but do not require, on ia64.
73478         * configure: Regenerated.
73479
73480         * configure.in (READELF): Find it with AC_CHECK_TOOL.
73481         Update tests that use readelf to use $READELF instead.
73482         * configure: Regenerated.
73483
73484 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
73485
73486         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
73487         if the result is not used.
73488
73489 2011-07-05  Andreas Jaeger  <aj@suse.de>
73490
73491         [BZ#9696]
73492         * stdlib/tst-strtod.c: Add testcase.
73493
73494 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
73495
73496         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
73497         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
73498         The latter has a higher limit.  Take additional parameter to pass to
73499         the new function.
73500         (__pathconf): Pass file to __statfs_link_max.
73501         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
73502         __statfs_link_max.
73503         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
73504         __statfs_link_max.
73505
73506         [BZ #12868]
73507         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
73508         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
73509         Handle Lustre.
73510         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
73511         (__statfs_filesize_max): Likewise.
73512         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
73513
73514 2011-07-05  Andreas Jaeger  <aj@suse.de>
73515
73516         * resolv/res_comp.c (dn_skipname): Remove unused variable.
73517
73518 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
73519
73520         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
73521         `status' variable.
73522         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
73523         Likewise.
73524
73525 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
73526
73527         * Makefile (strop-tests): Add strncat.
73528         * string/test-strncat.c: New file.
73529
73530 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
73531
73532         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
73533
73534 2011-06-21  Andreas Jaeger  <aj@suse.de>
73535
73536         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
73537         Copy rule from iconvdata/Makefile.
73538
73539 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73540
73541         [BZ #12922]
73542         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
73543         but no long options are defined, just return 'W'.
73544
73545 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
73546
73547         [BZ #9696]
73548         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
73549
73550 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73551
73552         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
73553         netgroups to read.
73554         (innetgr): Likewise.
73555
73556 2011-07-05  Roland McGrath  <roland@hack.frob.com>
73557
73558         * config.make.in (install_root): Default to $(DESTDIR).
73559
73560 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
73561
73562         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
73563
73564 2011-07-02  Roland McGrath  <roland@hack.frob.com>
73565
73566         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
73567
73568         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
73569         containing directory rather than embedding absolute directory names.
73570
73571         * scripts/check-local-headers.sh: Rewritten using awk.
73572         Match by word, not by line.  Print error messages for matches.
73573         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
73574
73575         * Makerules [shlib-lds-flags empty]:
73576         ($(common-objpfx)libc_pic.opts): New target.
73577         ($(common-objpfx)libc_pic.os.clean): New target.
73578         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
73579
73580         * config.make.in (OBJCOPY): New variable.
73581         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
73582         * configure: Regenerated.
73583
73584         * config.make.in (use-default-link): New variable.
73585         * configure.in (use_default_link): Grok --with-default-link to set it.
73586         * configure: Regenerated.
73587         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
73588         (shlib-lds, shlib-lds-flags): Define to empty.
73589
73590         * Makerules (shlib-lds): New variable.
73591         (shlib-lds-flags): New variable.
73592         (build-shlib, build-moduile, build-module-asneeded): Use it.
73593         ($(common-objpfx)libc.so): Use $(shlib-lds).
73594         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
73595         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
73596
73597         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
73598         DT_FLAGS/DT_FLAGS_1 with zero flags.
73599
73600         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
73601         linker script munging.
73602
73603 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
73604
73605         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
73606         as 128-bit value.
73607         * crypt/sha512.c (sha512_process_block): Perform total addition using
73608         128-bit if possible.
73609         (__sha512_finish_ctx): Likewise.
73610         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
73611         as 64-bit value.
73612         * crypt/sha256.c (SWAP64): Define.
73613         (sha256_process_block): Perform total addition using 64-bit if
73614         possible.
73615         (__sha256_finish_ctx): Likewise.
73616
73617 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
73618
73619         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
73620         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73621         * nscd/hstcache.c (cache_addhst): Likewise.
73622         * nscd/grpcache.c (cache_addgr): Likewise.
73623         * nscd/aicache.c (addhstaiX): Likewise.
73624         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
73625
73626 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
73627
73628         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
73629         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73630         * nscd/hstcache.c (cache_addhst): Likewise.
73631         * nscd/grpcache.c (cache_addgr): Likewise.
73632         * nscd/aicache.c (addhstaiX): Likewise.
73633
73634 2011-07-01  Andreas Schwab  <schwab@redhat.com>
73635
73636         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
73637         domain only when needed.
73638
73639 2011-06-30  Andreas Schwab  <schwab@redhat.com>
73640
73641         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
73642         is always restored.
73643
73644 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
73645
73646         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
73647         are re-adding the entry.
73648         * nscd/servicescache.c (cache_addserv): Likewise.
73649
73650 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
73651
73652         * sysdeps/generic/dl-irel.h: fix protection against multiple
73653         inclusions.
73654         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
73655
73656 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
73657
73658         [BZ #12935]
73659         * malloc/memusage.sh: Fix quoting in message.
73660         * debug/xtrace.sh: Likewise.
73661
73662         * configure.in: Remove support for --experimental-malloc option, make
73663         it the default.
73664         * config.make.in: Likewise.
73665         * malloc/Makefile: Likewise.
73666
73667 2011-06-27  Andreas Schwab  <schwab@redhat.com>
73668
73669         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
73670         two-byte characters.
73671
73672 2011-06-27  Roland McGrath  <roland@hack.frob.com>
73673
73674         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
73675         AC_CACHE_CHECK invocation.
73676         * configure: Regenerated.
73677
73678         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
73679
73680 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
73681
73682         [BZ #12350]
73683         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
73684         bit from old_res_options.
73685
73686         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
73687
73688         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
73689         value type for setfct.
73690
73691 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
73692
73693         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
73694         __gettimeofday instead of gettimeofday.
73695
73696 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
73697
73698         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
73699
73700 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
73701
73702         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
73703
73704         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
73705         info.
73706
73707 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73708
73709         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73710         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73711         strcpy-sse2-unaligned strncpy-sse2-unaligned
73712         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
73713         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
73714         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
73715         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
73716         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
73717         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
73718         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
73719         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
73720         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
73721         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
73722         (STRCPY): Support SSE2 and SSSE3 versions.
73723
73724 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
73725
73726         [BZ #12874]
73727         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
73728         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
73729         kernels which artificially limit size of requests.
73730
73731 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73732
73733         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73734         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73735         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
73736         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
73737         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
73738         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
73739         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
73740         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
73741         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
73742         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
73743         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
73744         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
73745         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
73746         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
73747         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
73748         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73749         Enable unaligned load optimization for Intel Core i3, i5 and i7
73750         processors.
73751         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
73752         Define.
73753         (index_Fast_Unaligned_Load): Define.
73754         (HAS_FAST_UNALIGNED_LOAD): Define.
73755
73756 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
73757
73758         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
73759
73760 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
73761
73762         [BZ #12907]
73763         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
73764         until it is clear that the information is realy needed.
73765         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
73766
73767 2011-06-22  Andreas Schwab  <schwab@redhat.com>
73768
73769         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
73770
73771 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
73772
73773         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
73774         /sys/devices/system/cpu/online if it is usable.
73775
73776         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
73777         reading the information from the /proc filesystem to once a second.
73778
73779 2011-06-21  Andreas Jaeger  <aj@suse.de>
73780
73781         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
73782         NULL after inclusion of kernel headers.
73783
73784 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
73785
73786         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
73787         calls to internal_setent.
73788
73789         [BZ #12885]
73790         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
73791         addresses using gethostbyname4_r ignore IPv4 addresses.
73792
73793         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
73794         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
73795
73796         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
73797
73798 2011-06-20  David S. Miller  <davem@davemloft.net>
73799
73800         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
73801         inclusions.
73802         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
73803
73804         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
73805         (elf_irel): Use it.
73806         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
73807         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
73808         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
73809         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
73810         * sysdeps/x86_64/dl-irel.h: Likewise.
73811
73812         * elf/dl-runtime.c: Use elf_ifunc_invoke.
73813         * elf/dl-sym.c: Likewise.
73814
73815 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
73816
73817         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
73818         need to dereference resplen2.
73819
73820 2011-06-14  Andreas Schwab  <schwab@redhat.com>
73821
73822         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
73823
73824 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
73825
73826         * Makeconfig: Define vardbdir and inst_vardbdir.
73827         * nss/Makefile: Add rules to install db-Makefile.
73828
73829         * nss/nss_db/db-XXX.c: Cleanup.
73830
73831         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
73832         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
73833         GLIBC_PRIVATE.
73834         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
73835         * nss/makedb.c: Implement -g option to specify that value strings
73836         are generated and should not be added to table iterated over for
73837         get*ent calls.
73838         * nss/nss_db/db-initgroups.c: New file.
73839
73840         * nss/getent.c: Add support for initgroups lookups through getgrouplist
73841         interface.
73842
73843         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
73844         (internal_getgrouplist): Adjust to name change.
73845         Update use_initgroups_entry if this is not the first call.
73846         * nss/databases.def: Add initgroups entry.
73847
73848         * nss/makedb.c (compute_tables): Check result of multiple hash table
73849         sizes to minimize maximum chain length.
73850
73851 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
73852
73853         * Versions.def: Add entry for libnss_db.
73854         * shlib-versions: Likewise.
73855         * nss/Makefile: Add rules to build libnss_db.
73856         * nss/Versions: Add libnss_db information.  Organize libnss_files
73857         entries better.
73858         * nss/db-Makefile: Add gshadow support.  Change rules for the new
73859         makedb progra.  Some minor improvements to generate smaller files.
73860         * nss/nss_db/nss_db.h: Move NSS database header data structures to
73861         here from...
73862         * nss/makedb.c: ...here.
73863         Improve database format to be smaller and require less memory at
73864         runtime.
73865         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
73866         db anymore.
73867         * nss/nss_db/db-netgrp.c: Likewise.
73868         * nss/nss_db/db-open.c: Likewise.
73869         * nss/nss_files/flies-XXX.x: Adjust comments.
73870         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
73871         * nss/nss_files/files-grp.c: Likewise.
73872         * nss/nss_files/files-hosts.c: Likewise.
73873         * nss/nss_files/files-network.c: Likewise.
73874         * nss/nss_files/files-proto.c: Likewise.
73875         * nss/nss_files/files-pwd.c: Likewise.
73876         * nss/nss_files/files-rpc.c: Likewise.
73877         * nss/nss_files/files-service.c: Likewise.
73878         * nss/nss_files/files-sgrp.c: Likewise.
73879         * nss/nss_files/files-spwd.c: Likewise.
73880         * nss/nss_db/db-alias.c: Removed.
73881         * nss/nss_db/dummy-db.h: Removed.
73882
73883 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
73884
73885         * nss/makedb.c: Rewritten to not use database library.
73886         * nss/Makefile: Update to build new makedb program.
73887
73888 2011-06-14  Andreas Jaeger  <aj@suse.de>
73889
73890         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
73891         memset declaration.
73892
73893 2011-06-10  Andreas Schwab  <schwab@redhat.com>
73894
73895         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
73896         tmpbuf.
73897
73898 2011-06-10  Roland McGrath  <roland@hack.frob.com>
73899
73900         * Makerules (shlib.lds): Fail if the linker script comes out empty.
73901         * elf/Makefile ($(objpfx)ld.so): Likewise.
73902
73903         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
73904         Don't list ld.so twice in dependencies.
73905
73906         * posix/bug-regex31.c: Include <stdlib.h>.
73907
73908         * nscd/hstcache.c (cache_addhst): Remove unused variable.
73909
73910         * nis/nss_compat/compat-spwd.c
73911         (getspent_next_nss_netgr): Remove unused variable.
73912         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
73913
73914         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
73915         nonmembers" output to use the right array.
73916
73917         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
73918
73919         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
73920
73921         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
73922         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
73923         * catgets/gencat.c (read_input_file): Likewise.
73924         * locale/programs/locarchive.c (enlarge_archive): Likewise.
73925
73926         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
73927         variable definition inside #if's controlling its use.
73928
73929         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
73930
73931         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
73932
73933         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
73934
73935         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
73936         unreachable code.
73937
73938         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
73939
73940         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
73941         * configure: Regenerated.
73942
73943         * Makerules: Revert last change.
73944         * elf/Makefile: Likewise.
73945
73946 2011-06-09  Roland McGrath  <roland@hack.frob.com>
73947
73948         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
73949         * elf/Makefile ($(objpfx)librtld.os): Likewise.
73950         (reloc-link): Likewise.
73951
73952 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
73953
73954         * elf/Makefile: Add rules to build pldd.
73955         * elf/pldd.c: New file.
73956         * elf/pldd-xx.c: New file.
73957
73958 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
73959
73960         * version.h: Update for 2.15 development version.
73961
73962 2011-06-07  David S. Miller  <davem@davemloft.net>
73963
73964         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
73965         ifuncs.
73966         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
73967         elf_machine_lazy_rel): Likewise.
73968         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
73969         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
73970         elf_machine_lazy_rel): Likewise.
73971         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
73972         dl_hwcap via passed in argument.
73973         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
73974         Likewise.
73975
73976 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73977
73978         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
73979
73980 2011-06-06  Roland McGrath  <roland@hack.frob.com>
73981
73982         [BZ #12849]
73983         * manual/fdl-1.1.texi: New file, verbatim from:
73984         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
73985         * manual/lgpl-2.1.texi: New file, verbatim from:
73986         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
73987         * manual/Makefile (licenses): New variable, list those new file names.
73988         (texis): Use it.
73989         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
73990
73991         * manual/fdl.texi: File removed.
73992         * manual/lesser.texi: File removed.
73993         * manual/libc.texinfo (Copying, Documentation License):
73994         Use new @include file names, put @appendix directive before @include.
73995
73996 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
73997
73998         [BZ #12841]
73999         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
74000         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
74001         (mq_open): Add __NTH.
74002
74003 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
74004
74005         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74006         Assume Intel Core i3/i5/i7 processor if AVX is available.
74007
74008 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74009
74010         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
74011         typo.
74012
74013 2011-05-31  Andreas Schwab  <schwab@redhat.com>
74014
74015         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
74016         memory.  Use alloca_account.  Fix memory leak when retrying.
74017
74018 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74019
74020         * version.h (RELEASE): Bump for 2.14 release.
74021         * include/features.h (__GLIBC_MINOR__): Bump to 14.
74022
74023         * config.make.in (RANLIB): Remove entry.
74024
74025 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
74026
74027         * po/Makefile (po-sed-cmd): Add ksh to extensions.
74028         (libc.pot): Work around missing support for .ksh extension in xgettext.
74029
74030         [BZ #12684]
74031         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
74032         if both request failed.
74033         (send_dg): In case of server errors clear resplen or *resplen2.
74034
74035         [BZ #12454]
74036         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
74037         when there are multiple maps.
74038         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
74039         (_dl_fini): Remove test here.
74040
74041         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
74042
74043 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
74044
74045         [BZ #12350]
74046         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
74047         bit from old_res_options.
74048         (gaih_inet): Likewise.
74049
74050         [BZ #11099]
74051         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
74052         as signed.
74053
74054         * resolv/res_init.c (res_setoptions): Make the code more compact.
74055
74056         [BZ #11558]
74057         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
74058         set RES_USEVC.
74059
74060         [BZ #11634]
74061         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
74062
74063         * malloc/malloc.h: Mark malloc hook variables as deprecated.
74064
74065         [BZ #11781]
74066         * malloc/malloc.h: Declare malloc hook variables as volatile.
74067
74068         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
74069         in last patch.
74070
74071         [BZ #11799]
74072         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
74073         raise in the comment.
74074         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
74075         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
74076         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
74077
74078 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
74079
74080         [BZ #12811]
74081         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
74082         grow the buffers more if it already has to be sufficient.
74083         (build_wcs_upper_buffer): Likewise.
74084         * posix/regexec.c (check_matching): Likewise.
74085         (clean_state_log_if_needed): Likewise.
74086         (extend_buffers): Don't enlarge buffers beyond size of the input
74087         buffer.
74088         Patches mostly by Emil Wojak <emil@wojak.eu>.
74089         * posix/bug-regex32.c: New file.
74090         * posix/Makefile (tests): Add bug-regex32.
74091
74092         * locale/findlocale.c (_nl_find_locale): Return right away if
74093         _nl_explode_name failed.
74094         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
74095
74096         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
74097
74098         * debug/xtrace.sh: Unify messages.
74099         * malloc/memusage.sh: Likewise.
74100
74101         [BZ #12813]
74102         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
74103         time symbol from vDSO.  Substitute with vsyscall if not available.
74104         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
74105         __vdso_time.
74106
74107         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
74108         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
74109         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
74110         Add sendmmsg and internal_sendmmsg.
74111         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
74112         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
74113         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
74114
74115         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
74116         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
74117         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
74118
74119 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
74120
74121         [BZ #12813]
74122         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
74123         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
74124         available.
74125         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
74126         __vdso_getcpu.
74127
74128         [BZ #12814]
74129         * iconvdata/Makefile (tests): Add bug-iconv9.
74130         * iconvdata/bug-iconv9.c: New file.
74131
74132 2011-05-27  Andreas Schwab  <schwab@redhat.com>
74133
74134         [BZ #12814]
74135         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
74136
74137 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
74138
74139         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74140         (struct user_regs_struct): Change intcs field back to cs.
74141
74142 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
74143
74144         * po/ja.po: Update from translation team.
74145
74146 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
74147
74148         [BZ #12795]
74149         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
74150         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
74151
74152 2011-05-20  Andreas Schwab  <schwab@redhat.com>
74153
74154         * stdlib/longlong.h: Update from GCC.
74155
74156 2011-05-23  Andreas Schwab  <schwab@redhat.com>
74157
74158         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
74159         parameter name.
74160         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
74161         Add parameter name.
74162         (__sysconf): Pass it down.
74163
74164 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
74165
74166         [BZ #12671]
74167         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
74168         some situations.
74169         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
74170         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
74171         add in in __libc_use_alloca calls.  Adjust callers.
74172         (glob): Use malloc in some situations.
74173
74174         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
74175         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
74176         pltexit.
74177
74178 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
74179
74180         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
74181         and CLOCK_BOOTTIME_ALARM.
74182
74183         [BZ #12782]
74184         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
74185         is returned.
74186
74187         * string/_strerror.c (__strerror_r): Print negative errors as signed
74188         numbers.
74189
74190         [BZ #12777]
74191         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
74192         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
74193         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
74194
74195         * configure.in: Fix typo in redirection and correct removal of test
74196         files in two cases.
74197
74198         [BZ #12788]
74199         * locale/setlocale.c (new_composite_name): Fix test to check for
74200         identical name of all categories.
74201
74202         [BZ #12792]
74203         * libio/filedoalloc.c (local_isatty): New function.
74204         (_IO_file_doallocate): Use local_isatty.
74205         * stdio-common/perror.c (perror): In case a new stream is used
74206         forward the stream error.
74207         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
74208         error flag.
74209
74210 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
74211
74212         [BZ #11884]
74213         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
74214         alloca.
74215         * include/alloca.h (extend_alloca_account): Define.
74216
74217         [BZ #11857]
74218         * posix/regex.h: Fix comments with documentation of user-accessible
74219         fields after compilation and describe correct free'ing of pattern
74220         after re_compile_pattern.
74221         Patch by Reuben Thomas <rrt@sc3d.org>.
74222
74223 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
74224
74225         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
74226         and -mno-altivec to prevent the compiler from using Altivec and/or
74227         VSX instructions when the corresponding registers are not available.
74228
74229 2011-05-19  Andreas Schwab  <schwab@redhat.com>
74230
74231         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
74232
74233 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
74234
74235         * libio/freopen.c (freopen): Use __dup2, not dup2.
74236         * libio/freopen64.c (freopen64): Likewise.
74237
74238 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
74239
74240         [BZ #12775]
74241         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
74242         * math/Makefile (tests): Add test-powl.
74243         (CFLAGS-test-powl.c): Define.
74244         * math/test-powl.c: New file.
74245
74246 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
74247
74248         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
74249
74250 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
74251
74252         [BZ #11837]
74253         * iconvdata/gb18030.c: Update to GB18020-2005.
74254
74255 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
74256
74257         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
74258         RE_SYNTAX_POSIX_AWK): Update to match recent development.
74259         Patch by Aharon Robbins <arnold@skeeve.com>.
74260
74261         [BZ #11892]
74262         * stdlib/putenv.c (putenv): Don't always create copy of the variable
74263         on the stack.
74264
74265         [BZ #11895]
74266         * misc/pselect.c (__pselect): Handle timeout value errors hidden
74267         through underflows.
74268
74269         [BZ #12766]
74270         * misc/error.c (error_at_line): Ensure file_name and old_file_name
74271         point to strings before performing equality test for error_one_per_line
74272         mode.
74273
74274         [BZ #11697]
74275         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
74276
74277         [BZ #11820]
74278         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74279         (struct user_fpregs_struct): Avoid __uint*_t types.
74280
74281         [BZ #6420]
74282         * malloc/mtrace.c (tr_where): Add additional parameter to point to
74283         symbol info.  Use it instead of calling _dl_addr locally.
74284         (lock_and_info): New function.
74285         (tr_freehook): Call lock_and_info and pass symbol info as additional
74286         parameter to tr_where.
74287         (tr_mallochook): Likewise.
74288         (tr_reallochook): Likewise.
74289         (tr_memalignhook): Likewise.
74290
74291         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
74292         used and couldn't be at all thread-safe.
74293
74294 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
74295
74296         * libio/freopen.c (freopen): Don't close old file descriptor
74297         before the new one is opened.  Instead dup the new file descriptor
74298         to the old one after the new stream is created.
74299         * libio/freopen64.c (freopen64): Likewise.
74300         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
74301         * libio/fileops.c (_IO_new_file_close_it): Handle new
74302         _IO_FLAGS2_NOCLOSE flag.
74303         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
74304         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
74305         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
74306         _IO_FLAGS2_NOCLOSE flag.
74307         * include/unistd.h: Add hidden_proto for dup3.
74308         Define __have_dup3.
74309         * io/dup3.c: Define hidden symbol.
74310         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
74311
74312         [BZ #7101]
74313         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
74314         when an incomplete long option is used.
74315         * posix/tst-getopt_long1.c: New file.
74316         * posix/Makefile (tests): Add tst-getopt_long1.
74317
74318         [BZ #10138]
74319         * scripts/config.guess: Update from autoconf-2.68.
74320         * scripts/config.sub: Likewise.
74321
74322         [BZ #10157]
74323         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
74324         tests into ...
74325         (has_cpuclock): ...this.  New function.
74326         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
74327         macro here based on has_cpuclock code.
74328
74329         [BZ #10149]
74330         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74331         First byte (not low byte) is now always NUL.
74332         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
74333
74334         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74335         Use non-cancelable interfaces.
74336
74337         [BZ #9809]
74338         * locale/iso-639.def: Add entry for Sorani.
74339
74340         [BZ #11901]
74341         * include/stdlib.h: Move include protection to the right place.
74342         Define abort_msg_s.  Declare __abort_msg with it.
74343         * stdlib/abort.c (__abort_msg): Adjust type.
74344         * assert/assert.c (__assert_fail_base): New function.  Majority
74345         of code from __assert_fail.  Allocate memory for __abort_msg with
74346         mmap.
74347         (__assert_fail): Now call __assert_fail_base.
74348         * assert/assert-perr.c: Remove bulk of implementation.  Use
74349         __assert_fail_base.
74350         * include/assert.hL Declare __assert_fail_base.
74351         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
74352         mmap.
74353         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
74354
74355 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
74356
74357         [BZ #11952]
74358         [BZ #12453]
74359         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
74360         until all modules are registered in the DTV.
74361         * elf/Makefile: Add rules to build and run tst-tls19.
74362         * elf/tst-tls19.c: New file.
74363         * elf/tst-tls19mod1.c: New file.
74364         * elf/tst-tls19mod2.c: New file.
74365         * elf/tst-tls19mod3.c: New file.
74366         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
74367
74368         [BZ #12083]
74369         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
74370         correctly.
74371
74372         [BZ #12601]
74373         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
74374         two-byte sequence errors.
74375         * iconvdata/Makefile (tests): Add bug-iconv8.
74376         * iconvdata/bug-iconv8.c: New file.
74377
74378         [BZ #12626]
74379         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
74380         buf2 definition.
74381
74382         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
74383
74384         [BZ #12432]
74385         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
74386         (dummy_getcfa): New function.
74387         (init): Get _Unwind_GetCFA address, use dummy if not found.
74388         (backtrace_helper): In recursion check, also check whether CFA changes.
74389         (__backtrace): Completely initialize arg.
74390
74391         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
74392         storing incomplete byte sequence in state object.  Avoid testing for
74393         guaranteed too small input if we know there is enough data available.
74394
74395 2011-05-11  Andreas Schwab  <schwab@redhat.com>
74396
74397         * Makeconfig (+link-pie): Indent.
74398         * Rules (binaries-pie): Define if $(have-fpie) and
74399         $(build-shared).
74400         (binaries-shared): Also filter out $(binaries-pie).
74401         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
74402         * nscd/Makefile (others-pie): Add nscd.
74403         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
74404         ($(objpfx)nscd): Remove command override.
74405         * login/Makefile (others-pie): Add pt_chown.
74406         ($(objpfx)pt_chown): Remove command override.
74407         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
74408         remove command overrides.
74409
74410 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
74411
74412         * libio/tst_putwc.c: Fix error messages.
74413
74414         [BZ #12724]
74415         * libio/fileops.c (_IO_new_file_close_it): Always flush when
74416         currently writing and seek to current position when not.
74417         * libio/Makefile (tests): Add bug-fclose1.
74418         * libio/bug-fclose1.c: New file.
74419
74420 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
74421
74422         [BZ #12511]
74423         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
74424         don't set DF_1_NODELETE here.
74425         (do_lookup_x): When entering new entry test for copy relocation
74426         and if necessary set DF_1_NODELETE flag.
74427         * elf/tst-unique4.cc: New file.
74428         * elf/tst-unique4.h: New file.
74429         * elf/tst-unique4lib.cc: New file.
74430         * elf/Makefile: Add rules to build and run tst-unique4.
74431         Patch by Piotr Bury <pbury@goahead.com>.
74432
74433 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
74434
74435         [BZ #12052]
74436         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
74437
74438         [BZ #12625]
74439         * misc/mntent_r.c (addmntent): Flush the stream after the output
74440
74441         [BZ #12393]
74442         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
74443         (is_trusted_path_normalize): Skip initial colon.  Append slash
74444         to empty buffer.  Duplicate is_trusted_path code but allow
74445         constructed patch to be prefix.
74446         (is_dst): Allow $ORIGIN followed by /.
74447         (_dl_dst_substitute): Correct clearing of check_for_trusted.
74448         Correct testing of result of is_trusted_path_normalize
74449         (decompose_rpath): Fix warning.
74450
74451 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
74452
74453         [BZ #11257]
74454         * grp/initgroups.c (internal_getgrouplist): When we found the service
74455         list through the initgroups entry in nsswitch.conf do not always
74456         continue on a successful lookup.  Don't always use the
74457         __nss_group_database value if it is set.
74458         * nss/nsswitch.conf (initgroups): Change action for successful db
74459         lookup to continue for compatibility.
74460
74461 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
74462
74463         [BZ #11532]
74464         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
74465         and CP774 modules.
74466         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
74467         and CP774 modules.
74468         * iconvdata/tst-tables.sh: Likewise.
74469         * iconvdata/cp770.c: New file.
74470         * iconvdata/cp771.c: New file.
74471         * iconvdata/cp772.c: New file.
74472         * iconvdata/cp773.c: New file.
74473         * iconvdata/cp774.c: New file.
74474         * iconvdata/testdata/CP770: New file.
74475         * iconvdata/testdata/CP770..UTF8: New file.
74476         * iconvdata/testdata/CP771: New file.
74477         * iconvdata/testdata/CP771..UTF8: New file.
74478         * iconvdata/testdata/CP772: New file.
74479         * iconvdata/testdata/CP772..UTF8: New file.
74480         * iconvdata/testdata/CP773: New file.
74481         * iconvdata/testdata/CP773..UTF8: New file.
74482         * iconvdata/testdata/CP774: New file.
74483         * iconvdata/testdata/CP774..UTF8: New file.
74484
74485         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
74486         END CHARMAP line.
74487         * iconvdata/gen-8bit-gap.sh: Likewise.
74488         * iconvdata/gen-8bit.sh: Likewise.
74489
74490         * locale/iso-639.def: Add ary entry.
74491
74492         [BZ #11258]
74493         * locale/C-translit.h.in: Add U20A1 transliteration.
74494
74495         [BZ #12178]
74496         * locale/iso-639.def: Add wae entry.
74497         Patch by Kevin Bortis <bortis@translate-wae.ch>.
74498
74499         [BZ #12545]
74500         * locale/programs/localedef.c (construct_output_path): Use ssize_t
74501         for n.
74502
74503         [BZ #12711]
74504         * locale/C-translit.h.in: Add entry for U20B9.
74505         Patch by pravin.d.s@gmail.com.
74506
74507 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
74508
74509         [BZ #12713]
74510         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
74511         ENAMETOOLONG use generic getcwd.
74512         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
74513         in rtld.  Use *stat64.
74514         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
74515         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
74516         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
74517         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
74518         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
74519         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
74520         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
74521         __fstatat64 macros.
74522         * include/dirent.h: Add libc_hidden_proto for rewinddir.
74523         * dirent/rewinddir.c: Add libc_hidden_def.
74524         * sysdeps/mach/hurd/rewinddir.c: Likewise.
74525         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
74526
74527         * include/dirent.h (__alloc_dir): Add flags parameter.
74528         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
74529         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
74530         __alloc_dir.
74531         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
74532         from fdopendir if O_CLOEXEC is already set.
74533
74534 2011-03-15  Alan Modra  <amodra@gmail.com>
74535
74536         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
74537         l_tls_firstbyte_offset non-zero.  Save padding offset in
74538         l_tls_firstbyte_offset for later use.
74539         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
74540         freeing static tls block.
74541
74542 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
74543
74544         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
74545         where #ifdef was intended.  The intent is to prevent ARG_MAX from
74546         being defined by the kernel headers.
74547
74548 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
74549
74550         [BZ #12734]
74551         * resolv/resolv.h: Define RES_NOTLDQUERY.
74552         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
74553         no-tld-query and set RES_NOTLDQUERY.
74554         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
74555         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
74556         modern BIND to search name as TLD unless forbidden.
74557
74558 2011-05-07  Petr Baudis  <pasky@suse.cz>
74559             Ulrich Drepper  <drepper@gmail.com>
74560
74561         [BZ #12393]
74562         * elf/dl-load.c (fillin_rpath): Move trusted path check...
74563         (is_trusted_path): ...to here.
74564         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
74565         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
74566         using is_trusted_path_normalize() in setuid scripts.
74567
74568 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
74569
74570         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
74571         __BEGIN/__END_DECLS.
74572
74573 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
74574
74575         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
74576         NSS_STATUS_NOTFOUND if no record was found.
74577
74578 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74579
74580         * sunrpc/Makefile (headers): Add rpc/netdb.h.
74581         (headers-not-in-tirpc): Remove rpc/netdb.h
74582         * resolv/netdb.h: Revert last change.
74583
74584 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
74585
74586         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
74587         circular dependency between libgcc.a and libc.a.
74588
74589 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74590
74591         * resolv/netdb.h: Don't include <rpc/netdb.h>.
74592         * nis/Makefile: Don't install rpcsvc/*.
74593         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
74594         instead of <rpc/types.h>.
74595         (MAXHOSTNAMELEN): Define.
74596
74597 2011-05-03  Andreas Schwab  <schwab@redhat.com>
74598
74599         * elf/ldconfig.c (add_dir): Don't crash on empty path.
74600
74601 2011-04-28  Maciej Babinski  <mbabinski@google.com>
74602
74603         [BZ #12714]
74604         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
74605         gethostbyname4_r when IPv6 results are possible.
74606
74607 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
74608
74609         [BZ #12723]
74610         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
74611         _PC_PIPE_BUF handling.
74612
74613 2011-04-30  Bruno Haible  <bruno@clisp.org>
74614
74615         [BZ #12717]
74616         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
74617         * resolv/netdb.h (getnameinfo): Change type of flags parameter
74618         to 'int'.
74619         * inet/getnameinfo.c (getnameinfo): Likewise.
74620
74621 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
74622
74623         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
74624         to groups setting in database lookup.
74625         * nss/nsswitch.conf: Add initgroups entry.
74626
74627 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
74628
74629         [BZ #12685]
74630         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
74631         mode string.
74632         Patch by Eric Blake <eblake@redhat.com>.
74633
74634 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
74635
74636         * sunrpc/Makefile (need-export-routines): Add svc_run.
74637         (routines): Remove svc_run.
74638         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
74639         * sunrpc/clnt_perr.c (clnt_perrno): Export.
74640         * sunrpc/svc_run.c (svc_run): Likewise.
74641         * sunrpc/svc_udp.c (svcudp_create): Likewise.
74642
74643 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
74644
74645         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
74646         problem in reallocation in last patch.
74647
74648 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
74649
74650         * sunrpc/Makefile: Move inclusion of Rules.
74651
74652 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74653
74654         * nss/nss_files/files-initgroups.c: New file.
74655         * nss/Makefile (libnss_files-routines): Add files-initgroups.
74656         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
74657         _nss_files_initgroups_dyn.
74658
74659 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
74660
74661         * elf/elf.h (R_ARM_IRELATIVE): Define.
74662
74663 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74664
74665         * po/ru.po: Update from translation team.
74666
74667 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74668
74669         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
74670         dependencies.
74671
74672 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
74673
74674         [BZ #12653]
74675         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
74676         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
74677         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
74678         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
74679         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
74680
74681 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
74682
74683         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
74684         differing bytes.
74685         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
74686         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
74687         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
74688
74689 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74690
74691         [BZ #12420]
74692         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
74693         storing it.
74694         * stdlib/bug-getcontext.c: New file.
74695         * stdlib/Makefile: Add rules to build and run bug-getcontext.
74696
74697 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74698
74699         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
74700         instructions into .machine "z9-109".
74701         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
74702         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
74703
74704 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74705
74706         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
74707         between environment variables and auxiliary vector.
74708
74709 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
74710
74711         * Makefile: Add rules to build linkobj/libc.so.
74712         * include/libc-symbols.h: Define libc_hidden_nolink.
74713         * include/rpc/auth.h: Mark functions which are to be hidden.
74714         * include/rpc/auth_des.h: Likewise.
74715         * include/rpc/auth_unix.h: Likewise.
74716         * include/rpc/clnt.h: Likewise.
74717         * include/rpc/des_crypt.h: Likewise.
74718         * include/rpc/key_prot.h: Likewise.
74719         * include/rpc/pmap_clnt.h: Likewise.
74720         * include/rpc/pmap_prot.h: Likewise.
74721         * include/rpc/pmap_rmt.h: Likewise.
74722         * include/rpc/rpc_msg.h: Likewise.
74723         * include/rpc/svc.h: Likewise.
74724         * include/rpc/svc_auth.h: Likewise.
74725         * include/rpc/xdr.h: Likewise.
74726         * nis/Makefile: Link all DSOs against linkobj/libc.so.
74727         * nss/Makefile: Likewise.
74728         * sunrpc/Makefile: Don't install headers.  Build library with normal
74729         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
74730         * sunrpc/auth_des.c: Hide exported symbols by default, export some
74731         for the compat linking library.  Remove use of INTDEF/INTUSE.
74732         * sunrpc/auth_none.c: Likewise.
74733         * sunrpc/auth_unix.c: Likewise.
74734         * sunrpc/authdes_prot.c: Likewise.
74735         * sunrpc/authuxprot.c: Likewise.
74736         * sunrpc/clnt_gen.c: Likewise.
74737         * sunrpc/clnt_perr.c: Likewise.
74738         * sunrpc/clnt_raw.c: Likewise.
74739         * sunrpc/clnt_simp.c: Likewise.
74740         * sunrpc/clnt_tcp.c: Likewise.
74741         * sunrpc/clnt_udp.c: Likewise.
74742         * sunrpc/clnt_unix.c: Likewise.
74743         * sunrpc/des_crypt.c: Likewise.
74744         * sunrpc/des_soft.c: Likewise.
74745         * sunrpc/get_myaddr.c: Likewise.
74746         * sunrpc/key_call.c: Likewise.
74747         * sunrpc/key_prot.c: Likewise.
74748         * sunrpc/netname.c: Likewise.
74749         * sunrpc/pm_getmaps.c: Likewise.
74750         * sunrpc/pm_getport.c: Likewise.
74751         * sunrpc/pmap_clnt.c: Likewise.
74752         * sunrpc/pmap_prot.c: Likewise.
74753         * sunrpc/pmap_prot2.c: Likewise.
74754         * sunrpc/pmap_rmt.c: Likewise.
74755         * sunrpc/publickey.c: Likewise.
74756         * sunrpc/rpc_cmsg.c: Likewise.
74757         * sunrpc/rpc_common.c: Likewise.
74758         * sunrpc/rpc_dtable.c: Likewise.
74759         * sunrpc/rpc_prot.c: Likewise.
74760         * sunrpc/rpc_thread.c: Likewise.
74761         * sunrpc/rtime.c: Likewise.
74762         * sunrpc/svc.c: Likewise.
74763         * sunrpc/svc_auth.c: Likewise.
74764         * sunrpc/svc_authux.c: Likewise.
74765         * sunrpc/svc_raw.c: Likewise.
74766         * sunrpc/svc_run.c: Likewise.
74767         * sunrpc/svc_simple.c: Likewise.
74768         * sunrpc/svc_tcp.c: Likewise.
74769         * sunrpc/svc_udp.c: Likewise.
74770         * sunrpc/svc_unix.c: Likewise.
74771         * sunrpc/svcauth_des.c: Likewise.
74772         * sunrpc/xcrypt.c: Likewise.
74773         * sunrpc/xdr.c: Likewise.
74774         * sunrpc/xdr_array.c: Likewise.
74775         * sunrpc/xdr_float.c: Likewise.
74776         * sunrpc/xdr_intXX_t.c: Likewise.
74777         * sunrpc/xdr_mem.c: Likewise.
74778         * sunrpc/xdr_rec.c: Likewise.
74779         * sunrpc/xdr_ref.c: Likewise.
74780         * sunrpc/xdr_sizeof.c: Likewise.
74781         * sunrpc/xdr_stdio.c: Likewise.
74782
74783 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
74784
74785         [BZ #12650]
74786         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
74787         * sysdeps/ia64/dl-tls.h: Likewise.
74788         * sysdeps/powerpc/dl-tls.h: Likewise.
74789         * sysdeps/s390/dl-tls.h: Likewise.
74790         * sysdeps/sh/dl-tls.h: Likewise.
74791         * sysdeps/sparc/dl-tls.h: Likewise.
74792         * sysdeps/x86_64/dl-tls.h: Likewise.
74793         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
74794
74795 2011-03-14  Andreas Schwab  <schwab@redhat.com>
74796
74797         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
74798         rpath element also skip the following colon.
74799         (expand_dynamic_string_token): Add is_path parameter and pass
74800         down to DL_DST_REQUIRED and _dl_dst_substitute.
74801         (decompose_rpath): Call expand_dynamic_string_token with
74802         non-zero is_path.  Ignore empty rpaths.
74803         (_dl_map_object_from_fd): Call expand_dynamic_string_token
74804         with zero is_path.
74805
74806 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
74807
74808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
74809         Make cancelable.
74810
74811 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
74812
74813         [BZ #12655]
74814         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
74815         Patch by Filipe David Manana <fdmanana@apache.org>.
74816
74817 2011-04-07  Andreas Schwab  <schwab@redhat.com>
74818
74819         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
74820         Maintain aligned stack.
74821         (CHECK_RSP): Remove unused macro.
74822
74823 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
74824
74825         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
74826         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
74827
74828 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
74829
74830         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
74831
74832         * include/features.h: Mention __USE_XOPEN2K8 in comment.
74833
74834 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
74835
74836         [BZ #12518]
74837         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
74838         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
74839         * sysdeps/x86_64/memmove.c: New file.
74840         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
74841         (memcpy): Renamed to ...
74842         (__new_memcpy): This.
74843         (memcpy): Provide GLIBC_2_14 memcpy.
74844         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
74845         (memcpy): Provide GLIBC_2_2_5 memcpy.
74846
74847 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74848
74849         [BZ #12631]
74850         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
74851
74852 2011-03-30  Andreas Schwab  <schwab@redhat.com>
74853
74854         * misc/syncfs.c: New file.
74855         * misc/Makefile (routines): Add syncfs.
74856         * posix/unistd.h: Declare syncfs.
74857         * sysdeps/unix/syscalls.list: Add syncfs.
74858
74859 2011-04-01  Andreas Schwab  <schwab@redhat.com>
74860
74861         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
74862         open_by_handle_at.
74863         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
74864         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
74865         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
74866         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
74867         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
74868         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
74869         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74870
74871 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74872
74873         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
74874         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
74875         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
74876         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
74877         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
74878         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
74879         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74880
74881         * io/Makefile: Compile fallocate.c, fallocate64.c, and
74882         sync_file_range.c with -fexceptions.
74883         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
74884         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
74885         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
74886         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
74887         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
74888         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
74889         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
74890         sync_file_range as cancellation point
74891         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
74892         now a wrapper around __call_sync_file_range with cancellation handling.
74893         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
74894         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
74895         function name to __call_sync_file_range.
74896         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
74897         Add call_sync_file_range.
74898
74899 2011-04-01  Andreas Schwab  <schwab@redhat.com>
74900
74901         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74902         bits/timex.h.
74903
74904 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74905
74906         * iconv/iconv.h: Fix typo in comment.
74907         * io/fcntl.h: Likewise.
74908         * libio/stdio.h: Likewise.
74909         * posix/spawn.h: Likewise.
74910         * posix/unistd.h: Likewise.
74911         * stdlib/stdlib.h: Likewise.
74912         * time/time.h: Likewise.
74913         * wcsmbs/wchar.h: Likewise.
74914
74915         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
74916         open_by_handle): Add.
74917         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
74918         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
74919         Augment a few comments.
74920         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
74921         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
74922         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
74923         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
74924         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74925         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
74926         open_by_handle.
74927
74928         * io/fcntl.h (AT_EMPTY_PATH): Define.
74929
74930 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
74931
74932         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
74933         * sysdeps/unix/sysv/linux/bits/time.h: New file.
74934         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
74935         to...
74936         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
74937         * Versions.def: Add GLIBC_2.14.
74938         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
74939         Export.
74940
74941 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
74942
74943         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
74944         round counter.
74945         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
74946
74947 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
74948
74949         [BZ #12597]
74950         * string/test-strncmp.c (do_page_test): New function.
74951         (check2): Likewise.
74952         (test_main): Call check2.
74953         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
74954
74955 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
74956
74957         [BZ #12587]
74958         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
74959         Handle cache information in CPU leaf 4.
74960         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
74961
74962 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
74963
74964         [BZ #12583]
74965         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
74966         character representation.
74967         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
74968
74969 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
74970
74971         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
74972         END(__isnan) to END(__isnanf) to match function entry point/label
74973         EALIGN(__isnanf,...).
74974
74975 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
74976
74977         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
74978
74979 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
74980
74981         [BZ #12510]
74982         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
74983         copy from the symbol referenced in the relocation to initialize the
74984         used variable.
74985         Patch by Piotr Bury <pbury@goahead.com>.
74986         * elf/Makefile: Add rules to build and tst-unique3.
74987         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
74988         * elf/tst-unique3.cc: New file.
74989         * elf/tst-unique3.h: New file.
74990         * elf/tst-unique3lib.cc: New file.
74991         * elf/tst-unique3lib2.cc: New file.
74992
74993         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
74994
74995 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
74996
74997         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
74998         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
74999         to _start.
75000
75001 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
75002
75003         * elf/dl-load.c (_dl_map_object): If we are looking for the first
75004         to-be-loaded object along a path to loader is ld.so.
75005
75006 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75007             Ulrich Drepper  <drepper@gmail.com>
75008
75009         * sysdeps/x86_64/memset.S: After aligning destination, code
75010         branches to different locations depending on the value of
75011         misalignment, when multiarch is enabled. Fix this.
75012
75013 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75014
75015         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
75016         Set _x86_64_preferred_memory_instruction for AMD processsors.
75017         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75018         Set bit_Prefer_SSE_for_memop for AMD processors.
75019
75020 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
75021
75022         * libio/fmemopen.c (fmemopen): Optimize a bit.
75023
75024 2011-03-03  Andreas Schwab  <schwab@redhat.com>
75025
75026         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
75027
75028 2011-03-03  Roland McGrath  <roland@redhat.com>
75029
75030         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
75031
75032 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
75033
75034         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
75035         __bzero_ultra1 instead of __memset_ultra1.
75036
75037 2011-02-23  Andreas Schwab  <schwab@redhat.com>
75038             Ulrich Drepper  <drepper@gmail.com>
75039
75040         [BZ #12509]
75041         * include/link.h (struct link_map): Add l_orig_initfini.
75042         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
75043         returning unsuccessfully.
75044         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
75045         close of a file loaded at startup, restore the original l_initfini
75046         list.
75047         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
75048         list, store the pointer.
75049         * elf/Makefile ($(objpfx)noload-mem): New rule.
75050         (noload-ENV): Define.
75051         (tests): Add $(objpfx)noload-mem.
75052         * elf/noload.c: Include <memcheck.h>.
75053         (main): Call mtrace.  Close all opened handles.
75054
75055 2011-02-17  Andreas Schwab  <schwab@redhat.com>
75056
75057         [BZ #12454]
75058         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
75059         dependencies are missing.
75060
75061 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75062
75063         Fix __if_freereq crash: Unlike the generic version which uses free,
75064         Hurd needs munmap.
75065         * sysdeps/mach/hurd/ifreq.h: New file.
75066
75067 2011-01-27  Petr Baudis  <pasky@suse.cz>
75068             Ulrich Drepper  <drepper@gmail.com>
75069
75070         [BZ 12445]#
75071         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
75072         to extend_alloca().
75073         * stdio-common/bug23.c: New file.
75074         * stdio-common/Makefile (tests): Add bug23.
75075
75076 2010-09-28  Andreas Schwab  <schwab@redhat.com>
75077             Ulrich Drepper  <drepper@gmail.com>
75078
75079         [BZ #12489]
75080         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
75081         before performing relro protection.  At old place add assertion
75082         to make sure nothing changed.
75083
75084 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
75085             Glauber de Oliveira Costa  <glommer@gmail.com>
75086
75087         * elf/elf.h: Add new ARM TLS relocs.
75088
75089 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
75090
75091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
75092         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
75093         cast from r3.
75094         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
75095         'tests' variable.
75096         * sysdeps/wordsize-64/tst-writev.c: New file.
75097
75098 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
75099
75100         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
75101         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
75102         insns in _dl_start to prevent a TOC reference before relocs are
75103         resolved.
75104
75105 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
75106
75107         [BZ #12469]
75108         * Makeconfig: Remove RANLIB definition.
75109         * Makerules: Don't use RANLIB.
75110         * aclocal.m4: Remove ranlib test.
75111         * configure.in: No need to check for ranlib.
75112         * elf/rtld-Rules: Don't use RANLIB.
75113
75114 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75115
75116         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
75117         protection macro.
75118         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
75119         inclusion protection macro.
75120
75121         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
75122         SIGRTMIN and SIGRTMAX and print information in that case only when
75123         SIGRTMIN is defined.
75124
75125 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
75126
75127         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
75128         arginfo fn returning -1.
75129
75130         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
75131         and thousands string is zero terminated.
75132
75133 2011-02-03  Andreas Schwab  <schwab@redhat.com>
75134
75135         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
75136         sysdeps/unix/sysv/linux/bits/socket.h.
75137
75138 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75139
75140         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
75141         (__CPU_COUNT): Remove old macros.
75142         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
75143         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
75144         (__CPU_ALLOC, __CPU_FREE): Add macros.
75145         (__sched_cpualloc, __sched_cpufree): Add declarations.
75146
75147 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
75148
75149         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
75150         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
75151         * nscd/aicache.c (addhstaiX): Return timeout of added value.
75152         (readdhstai): Return value of addhstaiX call.
75153         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
75154         (addgrbyX): Return value returned by cache_addgr.
75155         (readdgrbyname): Return value returned by addgrbyX.
75156         (readdgrbygid): Likewise.
75157         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
75158         (addpwbyX): Return value returned by cache_addpw.
75159         (readdpwbyname): Return value returned by addhstbyX.
75160         (readdpwbyuid): Likewise.
75161         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
75162         (addservbyX): Return value returned by cache_addserv.
75163         (readdservbyname): Return value returned by addservbyX:
75164         (readdservbyport): Likewise.
75165         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
75166         (addhstbyX): Return value returned by cache_addhst.
75167         (readdhstbyname): Return value returned by addhstbyX.
75168         (readdhstbyaddr): Likewise.
75169         (readdhstbynamev6): Likewise.
75170         (readdhstbyaddrv6): Likewise.
75171         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
75172         (readdinitgroups): Return value returned by addinitgroupsX.
75173         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
75174         (prune_cache): Keep track of timeout value of re-added entries.
75175         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
75176         * nscd/nscd.h: Adjust prototypes of readd* functions.
75177
75178 2011-02-04  Roland McGrath  <roland@redhat.com>
75179
75180         * nis/nis_server.c (nis_servstate): Use the right name for 0.
75181         (nis_stats): Likewise.
75182         * nis/nis_modify.c (nis_modify): Likewise.
75183         * nis/nis_remove.c (nis_remove): Likewise.
75184         * nis/nis_add.c (nis_add): Likewise.
75185
75186         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
75187
75188         * posix/fnmatch_loop.c: Add some consts.
75189
75190         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
75191
75192 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
75193
75194         [BZ #12460]
75195         * config.make.in (config-cflags-novzeroupper): Define.
75196         * configure.in: Substitute libc_cv_cc_novzeroupper.
75197         * elf/Makefile (AVX-CFLAGS): Define.
75198         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
75199         (CFLAGS-tst-auditmod4a.c): Likewise.
75200         (CFLAGS-tst-auditmod4b.c): Likewise.
75201         (CFLAGS-tst-auditmod6b.c): Likewise.
75202         (CFLAGS-tst-auditmod6c.c): Likewise.
75203         (CFLAGS-tst-auditmod7b.c): Likewise.
75204         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
75205
75206 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
75207
75208         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
75209         function to the callback.
75210         Patch partly by Jiri Olsa <jolsa@redhat.com>.
75211
75212 2011-02-02  Andreas Schwab  <schwab@redhat.com>
75213
75214         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
75215         of errno.
75216
75217 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
75218
75219         [BZ #11724]
75220         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
75221         of constructors.
75222         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
75223         of destructors.
75224         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
75225
75226         [BZ #11724]
75227         * elf/Makefile: Add rules to build and run new test.
75228         * elf/tst-initorder.c: New file.
75229         * elf/tst-initorder.exp: New file.
75230         * elf/tst-initordera1.c: New file.
75231         * elf/tst-initordera2.c: New file.
75232         * elf/tst-initordera3.c: New file.
75233         * elf/tst-initordera4.c: New file.
75234         * elf/tst-initorderb1.c: New file.
75235         * elf/tst-initorderb2.c: New file.
75236         * elf/tst-order-a1.c: New file.
75237         * elf/tst-order-a2.c: New file.
75238         * elf/tst-order-a3.c: New file.
75239         * elf/tst-order-a4.c: New file.
75240         * elf/tst-order-b1.c: New file.
75241         * elf/tst-order-b2.c: New file.
75242         * elf/tst-order-main.c: New file.
75243         New test case by George Gensure <werkt0@gmail.com>.
75244
75245 2010-10-01  Andreas Schwab  <schwab@redhat.com>
75246
75247         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
75248         decoding ACE if AI_CANONIDN.
75249
75250 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
75251
75252         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
75253
75254 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
75255
75256         * version.h (RELEASE): Bump for 2.13 release.
75257         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
75258
75259         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
75260
75261         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
75262         MADV_NOHUGEPAGE.
75263         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
75264         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
75265         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
75266         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
75267         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
75268         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75269
75270         * posix/getconf.c: Update copyright year.
75271         * catgets/gencat.c: Likewise.
75272         * csu/version.c: Likewise.
75273         * debug/catchsegv.sh: Likewise.
75274         * debug/xtrace.sh: Likewise.
75275         * elf/ldconfig.c: Likewise.
75276         * elf/ldd.bash.in: Likewise.
75277         * elf/sprof.c (print_version): Likewise.
75278         * iconv/iconv_prog.c: Likewise.
75279         * iconv/iconvconfig.c: Likewise.
75280         * locale/programs/locale.c: Likewise.
75281         * locale/programs/localedef.c: Likewise.
75282         * malloc/memusage.sh: Likewise.
75283         * malloc/mtrace.pl: Likewise.
75284         * nscd/nscd.c (print_version): Likewise.
75285         * nss/getent.c: Likewise.
75286
75287         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
75288         PF_CAIF, and PF_ALG.
75289         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
75290
75291 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
75292
75293         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
75294         (modules-names): Use them.
75295         (ifunc-test-modules, ifunc-pie-tests): Define.
75296         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
75297         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
75298         (test-extras): Likewise.
75299         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
75300         $(compile-command.c).
75301         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
75302         (all-built-dso): Define.
75303         (check-textrel.out, check-execstack.out): Depend on it.
75304
75305         * configure.in: Don't override --enable-multi-arch.
75306
75307 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
75308
75309         [BZ #6812]
75310         * nscd/hstcache.c (tryagain): Define.
75311         (cache_addhst): Return tryagain not notfound for temporary errors.
75312         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
75313         failed.
75314
75315 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
75316
75317         [BZ #10563]
75318         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
75319         to make the syscall.
75320         * sysdeps/unix/sysv/linux/setgroups.c: New file.
75321
75322         [BZ #12378]
75323         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
75324         and fall back to matching as normal character if the string ends before
75325         the matching ']' is found.  This is what POSIX requires.
75326         * posix/testfnm.c: Adjust test result.
75327         * posix/globtest.sh: Adjust test result.  Add new test.
75328         * posix/tst-fnmatch.input: Likewise.
75329         * posix/tst-fnmatch2.c: Add new test.
75330
75331 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
75332
75333         * elf/Makefile (check-execstack): Revert last change.  Depend on
75334         check-execstack.h.
75335         (check-execstack.h): New target.
75336         (generated): Add check-execstack.h.
75337         * elf/check-execstack.c: Include "check-execstack.h".
75338         (main): Revert last change.
75339         (handle_file): Return zero if GNU_STACK is absent and
75340         DEFAULT_STACK_PERMS doesn't include PF_X.
75341
75342 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
75343
75344         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
75345         in child fails because the descriptor is already closed.
75346         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
75347         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
75348         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
75349
75350         [BZ #12397]
75351         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
75352         syscall.
75353
75354         [BZ #10484]
75355         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
75356         temporary buffer used to handle multi lookups locally.
75357         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
75358
75359 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75360
75361         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
75362         loader is ld.so.
75363
75364 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
75365
75366         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
75367         alignment for SSE2.
75368
75369 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75370
75371         [BZ #12394]
75372         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
75373         characters.  When rounding increased number of integer digits recompute
75374         number of groups.
75375         * stdio-common/tst-grouping.c: New file.
75376         * stdio-common/Makefile: Add rules to build and run tst-grouping.
75377
75378 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
75379
75380         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
75381         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
75382
75383         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
75384         void.
75385         * bits/select.h: Likewise.
75386
75387 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
75388
75389         * po/ja.po: Update from translation team.
75390
75391 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
75392
75393         [BZ #11155]
75394         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
75395         implementation just like for lxstat, fxstatat, et al.
75396
75397 2010-12-27  Jim Meyering  <meyering@redhat.com>
75398
75399         [BZ #12348]
75400         * posix/regexec.c (build_trtable): Return failure indication upon
75401         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
75402
75403 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
75404
75405         [BZ #12201]
75406         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
75407         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
75408         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
75409         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
75410
75411         [BZ #12207]
75412         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
75413
75414         [BZ #12204]
75415         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
75416         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
75417
75418 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
75419
75420         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
75421         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
75422         script has SORT_BY_INIT_PRIORITY.
75423         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
75424         NO_CTORS_DTORS_SECTIONS is defined.
75425         * elf/soinit.c: Likewise.
75426         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
75427         NO_CTORS_DTORS_SECTIONS is defined.
75428         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
75429         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
75430         * sysdeps/sh/init-first.c: Likewise.
75431         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
75432
75433 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
75434
75435         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
75436         always use the slow path.
75437
75438 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
75439
75440         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
75441         similar rule which adds the sysdep directories to the header search in
75442         order to pick up the correct platform stackinfo.h.
75443         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
75444         perform test if it is, otherwise return successfully without testing.
75445         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
75446         DEFAULT_STACK_PERMS define in stackinfo.h.
75447         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
75448         defined in stackinfo.h.
75449         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
75450         DEFAULT_STACK_PERMS defined in stackinfo.h.
75451         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
75452         * sysdeps/ia64/stackinfo.h: Likewise.
75453         * sysdeps/s390/stackinfo.h: Likewise.
75454         * sysdeps/sh/stackinfo.h: Likewise.
75455         * sysdeps/sparc/stackinfo.h: Likewise.
75456         * sysdeps/x86_64/stackinfo.h: Likewise.
75457         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
75458         PF_X for powerpc64.  Retain PF_X for powerpc32.
75459
75460 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
75461
75462         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
75463         accurately.
75464         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
75465         GETDENTS_64BIT_ALIGNED.
75466
75467 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
75468
75469         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
75470
75471 2010-12-10  Andreas Schwab  <schwab@redhat.com>
75472
75473         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
75474         _GNU_SOURCE.
75475
75476         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
75477         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
75478         Remove __restrict.
75479         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
75480         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
75481
75482 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
75483
75484         [BZ #11655]
75485         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
75486         are initialized.
75487
75488 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
75489
75490         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
75491
75492 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
75493
75494         * po/it.po: Update from translation team.
75495
75496 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
75497
75498         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
75499         unused codes.
75500
75501 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
75502
75503         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
75504
75505 2010-11-24  Andreas Schwab  <schwab@redhat.com>
75506
75507         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
75508         specially.
75509         (gaih_getanswer_slice): Likewise.
75510
75511 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
75512
75513         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
75514
75515 2010-05-31  Petr Baudis  <pasky@suse.cz>
75516
75517         [BZ #11149]
75518         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
75519         silently even in the chroot mode.
75520
75521 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
75522
75523         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
75524         last patch a bit.  Pretty printing
75525
75526 2010-05-31  Petr Baudis <pasky@suse.cz>
75527
75528         [BZ #10085]
75529         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
75530         initialization of skip_initgroups_dyn.
75531
75532 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
75533
75534         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
75535         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75536
75537 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
75538
75539         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
75540
75541 2010-11-11  Andreas Schwab  <schwab@redhat.com>
75542
75543         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
75544         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
75545         (tst-fnmatch-ENV): Set MALLOC_TRACE.
75546         ($(objpfx)tst-fnmatch-mem): New rule.
75547         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
75548         * posix/tst-fnmatch.c (main): Call mtrace.
75549
75550 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
75551
75552         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75553         Support Intel processor model 6 and model 0x2c.
75554
75555 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
75556
75557         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
75558           signed comparison.
75559
75560 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
75561
75562         [BZ #12205]
75563         * string/test-strncasecmp.c (check_result): New function.
75564         (do_one_test): Use it.
75565         (check1): New function.
75566         (test_main): Use it.
75567         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
75568         Support strcasecmp and strncasecmp.
75569
75570 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
75571
75572         [BZ #12194]
75573         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
75574         * sysdeps/x86_64/bits/byteswap.h: Likewise.
75575
75576 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
75577
75578         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
75579         IFUNC support.
75580         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
75581         memset-x86-64.
75582         * sysdeps/x86_64/multiarch/bzero.S: New file.
75583         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
75584         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
75585         * sysdeps/x86_64/multiarch/memset.S: New file.
75586         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
75587         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75588         Set bit_Prefer_SSE_for_memop for Intel processors.
75589         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
75590         Define.
75591         (index_Prefer_SSE_for_memop): Define.
75592         (HAS_PREFER_SSE_FOR_MEMOP): Define.
75593
75594 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
75595
75596         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
75597         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
75598
75599 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
75600
75601         [BZ #12191]
75602         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75603         (__x86_64_raw_data_cache_size_half): Likewise.
75604         (__x86_64_raw_shared_cache_size): Likewise.
75605         (__x86_64_raw_shared_cache_size_half): Likewise.
75606
75607         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75608         (__x86_64_raw_data_cache_size_half): Likewise.
75609         (__x86_64_raw_shared_cache_size): Likewise.
75610         (__x86_64_raw_shared_cache_size_half): Likewise.
75611         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
75612         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
75613         and __x86_64_raw_shared_cache_size_half.  Round
75614         __x86_64_data_cache_size_half, __x86_64_data_cache_size
75615         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
75616         to multiple of 256 bytes.
75617
75618 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
75619
75620         [BZ #12167]
75621         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
75622         of inacessible symlinks.  Verify result of symlink before returning it.
75623         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
75624         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
75625
75626 2010-10-28  Erich Ritz  <erichritz@gmail.com>
75627
75628         * math/math.h (isinf): Fix typo in comment.
75629
75630 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
75631
75632         * po/da.po: Update from translation team.
75633
75634 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
75635
75636         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
75637         is added to the list.
75638
75639 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75640             Ulrich Drepper  <drepper@gmail.com>
75641
75642         * elf/dl-object.c (_dl_new_object): Don't append the new object to
75643         the global list here.  Move code to...
75644         (_dl_add_to_namespace_list): ...here.  New function.
75645         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
75646         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
75647         * elf/dl-load.c (lose): Don't remove the element from the list.
75648         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
75649         (_dl_map_object): Likewise.
75650
75651 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
75652
75653         [BZ #12159]
75654         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
75655         into all bytes of SSE register.
75656         Patch by Richard Li <richardpku@gmail.com>.
75657
75658 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
75659
75660         [BZ #12140]
75661         * malloc/malloc.c (_int_free): Fill correct number of bytes when
75662         perturbing.
75663
75664 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
75665
75666         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
75667         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
75668         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
75669         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
75670         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
75671         submachine.
75672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
75673
75674 2010-10-22  Andreas Schwab  <schwab@redhat.com>
75675
75676         * include/dlfcn.h (__RTLD_SECURE): Define.
75677         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
75678         mode & __RTLD_SECURE instead.
75679         (open_path): Rename preloaded parameter to secure.
75680         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
75681         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
75682         * elf/dl-deps.c (openaux): Likewise.
75683         * elf/rtld.c (struct map_args): Remove is_preloaded.
75684         (map_doit): Don't use it.
75685         (dl_main): Likewise.
75686         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
75687         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
75688
75689 2010-09-09  Andreas Schwab  <schwab@redhat.com>
75690
75691         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
75692         (sysd-rules-targets): Remove duplicates.
75693         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
75694         rtld-%.$o dependency.
75695
75696 2010-10-18  Andreas Schwab  <schwab@redhat.com>
75697
75698         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
75699         _dl_map_object do it.
75700
75701 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
75702
75703         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
75704         fast fma builtins, define the macros in the C99 standard.
75705         (FP_FAST_FMAF): Likewise.
75706         (FP_FAST_FMAL): Likewise.
75707         * sysdeps/x86_64/bits/mathdef.h: Likewise.
75708
75709         * bits/mathdef.h: Update copyright year.
75710         * sysdeps/powerpc/bits/mathdef.h: Likewise.
75711
75712 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
75713
75714         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
75715         builtins, define the macros in the C99 standard.
75716         (FP_FAST_FMAF): Likewise.
75717         (FP_FAST_FMAL): Likewise.
75718         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
75719         multiply/add.
75720         (FP_FAST_FMAF): Likewise.
75721
75722 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
75723
75724         [BZ #3268]
75725         * math/libm-test.inc (fma_test): Some new testcases.
75726         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
75727         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
75728         y and infinite z.  Do multiplication by C already in long double.
75729         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
75730         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
75731         y and infinite z.  Do bitwise or of inexact bit into u.d.
75732         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
75733         * sysdeps/i386/fpu/s_fmaf.S: Removed.
75734         * sysdeps/i386/fpu/s_fma.S: Removed.
75735         * sysdeps/i386/fpu/s_fmal.S: Removed.
75736
75737 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
75738
75739         [BZ #3268]
75740         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
75741         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
75742         computation is not scheduled after fetestexcept.  Fix value
75743         of minimum denormal long double.
75744
75745 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
75746
75747         [BZ #3268]
75748         * math/libm-test.inc (fma_test): Add some more tests.
75749         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
75750         correctly.
75751
75752 2010-10-15  Andreas Schwab  <schwab@redhat.com>
75753
75754         * scripts/data/localplt-s390-linux-gnu.data: New file.
75755         * scripts/data/localplt-s390x-linux-gnu.data: New file.
75756
75757 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
75758
75759         [BZ #3268]
75760         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
75761         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
75762         instead of dbl-64.
75763         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
75764         inlines.
75765         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
75766         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
75767         if one of x and y is very large and the other is subnormal.
75768         * sysdeps/s390/fpu/s_fmaf.c: New file.
75769         * sysdeps/s390/fpu/s_fma.c: New file.
75770         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
75771         * sysdeps/powerpc/fpu/s_fma.S: New file.
75772         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
75773         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
75774         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
75775
75776 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
75777
75778         [BZ #3268]
75779         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
75780         fma tests.
75781         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
75782         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
75783         * sysdeps/i386/i686/multiarch/s_fma.c: Include
75784         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
75785         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
75786         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
75787         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
75788
75789 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
75790
75791         [BZ #12078]
75792         * posix/regcomp.c (parse_branch): One more memory leak plugged.
75793         * posix/bug-regex31.input: Add test case.
75794
75795 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
75796
75797         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
75798         * posix/bug-regex31.input: New file.
75799
75800         [BZ #12078]
75801         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
75802         (parse_sub_exp): Fix last change, use postorder.
75803
75804         * posix/bug-regex31.c: New file.
75805         * posix/Makefile: Add rules to build and run bug-regex31.
75806
75807         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
75808
75809         [BZ #12078]
75810         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
75811
75812         [BZ #12108]
75813         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
75814         to have entries in sys_siglist.
75815
75816         [BZ #12093]
75817         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
75818         be NULL.
75819
75820 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
75821
75822         [BZ #3268]
75823         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
75824         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
75825         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
75826         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
75827         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
75828         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
75829         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
75830         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
75831         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
75832         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
75833         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
75834         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
75835         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
75836         * math/ftestexcept.c (fetestexcept): Likewise.
75837         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
75838         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
75839         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
75840         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
75841         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
75842         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
75843         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
75844
75845 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
75846
75847         [BZ #12107]
75848         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
75849         newline.
75850
75851 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
75852
75853         * string/bug-strstr1.c: New file.
75854         * string/Makefile: Add rules to build and run bug-strstr1.
75855
75856 2010-10-05  Eric Blake  <eblake@redhat.com>
75857
75858         [BZ #12092]
75859         * string/str-two-way.h (two_way_long_needle): Always clear memory
75860         when skipping input due to the shift table.
75861
75862 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
75863
75864         [BZ #12005]
75865         * malloc/mcheck.c: Handle large requests.
75866
75867         [BZ #12077]
75868         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
75869         for strncmp and strncasecmp.
75870         * string/stratcliff.c: Add tests for strcmp and strncmp.
75871         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
75872
75873 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
75874
75875         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
75876         __set_fpscr.
75877
75878 2010-09-30  Andreas Jaeger  <aj@suse.de>
75879
75880         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
75881         (CGROUP_SUPER_MAGIC): Define.
75882         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
75883         Handle btrfs and cgroup file systems.
75884         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
75885         Likewise.
75886
75887 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
75888
75889         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
75890         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
75891
75892 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75893
75894         [BZ #12067]
75895         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
75896         trying to locate the ELF header.
75897
75898 2010-09-27  Andreas Schwab  <schwab@redhat.com>
75899
75900         [BZ #11611]
75901         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
75902         Mask out sign-bit copies when constructing f_fsid.
75903
75904 2010-09-24  Petr Baudis <pasky@suse.cz>
75905
75906         * debug/stack_chk_fail_local.c: Add missing licence exception.
75907         * debug/warning-nop.c: Likewise.
75908
75909 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
75910
75911         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
75912         implementing getdents64 using getdents syscall, set d_type if
75913         __ASSUME_GETDENTS32_D_TYPE.
75914
75915 2010-09-16  Andreas Schwab  <schwab@redhat.com>
75916
75917         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
75918         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
75919
75920 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
75921
75922         [BZ #12037]
75923         * posix/unistd.h: Undo change of feature selection for ftruncate from
75924         2010-01-11.
75925
75926 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
75927
75928         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
75929         detection.
75930
75931 2010-09-20  Andreas Schwab  <schwab@redhat.com>
75932
75933         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
75934         fanotify_mark.
75935         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
75936
75937 2010-09-14  Andreas Schwab  <schwab@redhat.com>
75938
75939         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
75940         variables after CHECK_SP call.
75941         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
75942
75943 2010-09-13  Andreas Schwab  <schwab@redhat.com>
75944             Ulrich Drepper  <drepper@redhat.com>
75945
75946         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
75947         re-relocationg ld.so.
75948         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
75949         _dl_init_paths call.
75950         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
75951         here anymore.
75952
75953 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
75954
75955         * resolv/res_init.c (__res_vinit): Count the default server we added.
75956
75957 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
75958             Ulrich Drepper  <drepper@redhat.com>
75959
75960         [BZ #11968]
75961         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
75962         (____longjmp_chk): Use %ebx for saving value across system call.
75963         Add unwind info.
75964
75965 2010-09-06  Andreas Schwab  <schwab@redhat.com>
75966
75967         * manual/Makefile: Don't mix pattern rules with normal rules.
75968
75969 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
75970
75971         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
75972         operation.
75973         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
75974         * libio/iofopncook.c (_IO_cookie_init): Likewise.
75975         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
75976         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
75977         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
75978         Likewise.
75979
75980 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
75981
75982         [BZ #11979]
75983         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
75984         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
75985
75986 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
75987
75988         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
75989         * sysdeps/x86_64/addmul_1.S: Likewise.
75990         * sysdeps/x86_64/lshift.S: Likewise.
75991         * sysdeps/x86_64/mul_1.S: Likewise.
75992         * sysdeps/x86_64/rshift.S: Likewise.
75993         * sysdeps/x86_64/sub_n.S: Likewise.
75994         * sysdeps/x86_64/submul_1.S: Likewise.
75995
75996 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75997
75998         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
75999         Define __sched_param instead of SCHED_* and sched_param when
76000         <bits/sched.h> is included with __need_schedparam defined.
76001         * bits/sched.h [__need_schedparam]
76002         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
76003         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
76004         (__defined_schedparam): Define to 1.
76005         (__sched_param): New structure, identical to sched_param.
76006         (__need_schedparam): Undefine.
76007
76008 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
76009
76010         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
76011         (epoll_create1): Declare.
76012
76013         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
76014
76015 2010-08-31  Andreas Schwab  <schwab@redhat.com>
76016
76017         [BZ #7066]
76018         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
76019         shifting retval into place.
76020
76021 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
76022
76023         * nis/rpcsvc/nis.h: Update copyright notice.
76024         * nis/rpcsvc/nis.x: Likewise.
76025         * nis/rpcsvc/nis_callback.h: Likewise.
76026         * nis/rpcsvc/nis_callback.x: Likewise.
76027         * nis/rpcsvc/nis_object.x: Likewise.
76028         * nis/rpcsvc/nis_tags.h: Likewise.
76029         * nis/rpcsvc/yp.h: Likewise.
76030         * nis/rpcsvc/yp.x: Likewise.
76031         * nis/rpcsvc/ypupd.h: Likewise.
76032         * nis/yp_xdr.c: Likewise.
76033         * nis/ypupdate_xdr.c: Likewise.
76034
76035         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
76036         mainly the body of pmap_getport.  Add parameters to specify timeouts.
76037         (pmap_getport): Use __libc_rpc_getport.
76038         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
76039         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
76040         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
76041
76042 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
76043
76044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
76045         fanotify_mark.
76046
76047 2010-08-27  Roland McGrath  <roland@redhat.com>
76048
76049         * sysdeps/i386/i686/multiarch/Makefile
76050         (CFLAGS-varshift.c): New variable.
76051
76052 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
76053
76054         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
76055         * sysdeps/i386/i686/multiarch/varshift.c: New file.
76056
76057         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
76058
76059         * sysdeps/x86_64/strlen.S: Minimal code improvement.
76060
76061 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
76062
76063         * sysdeps/x86_64/strlen.S: Unroll the loop.
76064         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76065         strlen-sse2 strlen-sse2-bsf.
76066         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
76067         __strlen_no_bsf if bit_Slow_BSF is set.
76068         (__strlen_sse42): Removed.
76069         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
76070         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
76071
76072 2010-08-25  Roland McGrath  <roland@redhat.com>
76073
76074         * sysdeps/x86_64/multiarch/varshift.S: File removed.
76075         * sysdeps/x86_64/multiarch/varshift.c: New file.
76076         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
76077         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
76078         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
76079         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
76080
76081 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
76082
76083         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76084         strlen-sse2 strlen-sse2-bsf.
76085         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
76086         __strlen_sse2_bsf if bit_Slow_BSF is unset.
76087         (__strlen_sse2): Removed.
76088         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
76089         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
76090         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
76091         bit_Slow_BSF for Atom.
76092         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
76093         (index_Slow_BSF): Define.
76094         (HAS_SLOW_BSF): Define.
76095
76096 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
76097
76098         [BZ #10851]
76099         * resolv/res_init.c (__res_vinit): When no server address at all
76100         is given default to loopback.
76101
76102 2010-08-24  Roland McGrath  <roland@redhat.com>
76103
76104         * configure.in: Remove config-name.h generation.
76105         * configure: Regenerated.
76106         * config-name.in: File removed.
76107         * scripts/config-uname.sh: New file.
76108         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
76109         ($(objdir)config-name.h): New target.
76110
76111         * sunrpc/rpc_parse.h: Avoid nested comment.
76112
76113 2010-08-24  Richard Henderson  <rth@redhat.com>
76114             Ulrich Drepper  <drepper@redhat.com>
76115             H.J. Lu  <hongjiu.lu@intel.com>
76116
76117         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
76118         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
76119         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
76120         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
76121         _mm_alignr_epi8 with _mm_loadu_si128.
76122         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
76123         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
76124         (__m128i_shift_right): Removed.
76125         * sysdeps/i386/i686/multiarch/varshift.h: New file.
76126         * sysdeps/i386/i686/multiarch/varshift.S: New file.
76127         * sysdeps/x86_64/multiarch/varshift.h: New file.
76128         * sysdeps/x86_64/multiarch/varshift.S: New file.
76129
76130 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
76131
76132         * configure.in: Move assembler checks to before sysdep dir checking.
76133
76134 2010-08-20  Petr Baudis  <pasky@suse.cz>
76135
76136         * LICENSES: Sync the sunrpc license.
76137
76138 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
76139
76140         * sunrpc/auth_des.c: Update copyright notice once again.
76141         * sunrpc/auth_none.c: Likewise.
76142         * sunrpc/auth_unix.c: Likewise.
76143         * sunrpc/authdes_prot.c: Likewise.
76144         * sunrpc/authuxprot.c: Likewise.
76145         * sunrpc/bindrsvprt.c: Likewise.
76146         * sunrpc/clnt_gen.c: Likewise.
76147         * sunrpc/clnt_perr.c: Likewise.
76148         * sunrpc/clnt_raw.c: Likewise.
76149         * sunrpc/clnt_simp.c: Likewise.
76150         * sunrpc/clnt_tcp.c: Likewise.
76151         * sunrpc/clnt_udp.c: Likewise.
76152         * sunrpc/clnt_unix.c: Likewise.
76153         * sunrpc/des_crypt.c: Likewise.
76154         * sunrpc/des_soft.c: Likewise.
76155         * sunrpc/get_myaddr.c: Likewise.
76156         * sunrpc/getrpcport.c: Likewise.
76157         * sunrpc/key_call.c: Likewise.
76158         * sunrpc/key_prot.c: Likewise.
76159         * sunrpc/openchild.c: Likewise.
76160         * sunrpc/pm_getmaps.c: Likewise.
76161         * sunrpc/pm_getport.c: Likewise.
76162         * sunrpc/pmap_clnt.c: Likewise.
76163         * sunrpc/pmap_prot.c: Likewise.
76164         * sunrpc/pmap_prot2.c: Likewise.
76165         * sunrpc/pmap_rmt.c: Likewise.
76166         * sunrpc/rpc/auth.h: Likewise.
76167         * sunrpc/rpc/auth_unix.h: Likewise.
76168         * sunrpc/rpc/clnt.h: Likewise.
76169         * sunrpc/rpc/des_crypt.h: Likewise.
76170         * sunrpc/rpc/key_prot.h: Likewise.
76171         * sunrpc/rpc/netdb.h: Likewise.
76172         * sunrpc/rpc/pmap_clnt.h: Likewise.
76173         * sunrpc/rpc/pmap_prot.h: Likewise.
76174         * sunrpc/rpc/pmap_rmt.h: Likewise.
76175         * sunrpc/rpc/rpc.h: Likewise.
76176         * sunrpc/rpc/rpc_des.h: Likewise.
76177         * sunrpc/rpc/rpc_msg.h: Likewise.
76178         * sunrpc/rpc/svc.h: Likewise.
76179         * sunrpc/rpc/svc_auth.h: Likewise.
76180         * sunrpc/rpc/types.h: Likewise.
76181         * sunrpc/rpc/xdr.h: Likewise.
76182         * sunrpc/rpc_clntout.c: Likewise.
76183         * sunrpc/rpc_cmsg.c: Likewise.
76184         * sunrpc/rpc_common.c: Likewise.
76185         * sunrpc/rpc_cout.c: Likewise.
76186         * sunrpc/rpc_dtable.c: Likewise.
76187         * sunrpc/rpc_hout.c: Likewise.
76188         * sunrpc/rpc_main.c: Likewise.
76189         * sunrpc/rpc_parse.c: Likewise.
76190         * sunrpc/rpc_parse.h: Likewise.
76191         * sunrpc/rpc_prot.c: Likewise.
76192         * sunrpc/rpc_sample.c: Likewise.
76193         * sunrpc/rpc_scan.c: Likewise.
76194         * sunrpc/rpc_scan.h: Likewise.
76195         * sunrpc/rpc_svcout.c: Likewise.
76196         * sunrpc/rpc_tblout.c: Likewise.
76197         * sunrpc/rpc_util.c: Likewise.
76198         * sunrpc/rpc_util.h: Likewise.
76199         * sunrpc/rpcinfo.c: Likewise.
76200         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
76201         * sunrpc/rpcsvc/key_prot.x: Likewise.
76202         * sunrpc/rpcsvc/klm_prot.x: Likewise.
76203         * sunrpc/rpcsvc/mount.x: Likewise.
76204         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
76205         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
76206         * sunrpc/rpcsvc/rex.x: Likewise.
76207         * sunrpc/rpcsvc/rstat.x: Likewise.
76208         * sunrpc/rpcsvc/rusers.x: Likewise.
76209         * sunrpc/rpcsvc/sm_inter.x: Likewise.
76210         * sunrpc/rpcsvc/spray.x: Likewise.
76211         * sunrpc/rpcsvc/yppasswd.x: Likewise.
76212         * sunrpc/rtime.c: Likewise.
76213         * sunrpc/svc.c: Likewise.
76214         * sunrpc/svc_auth.c: Likewise.
76215         * sunrpc/svc_authux.c: Likewise.
76216         * sunrpc/svc_raw.c: Likewise.
76217         * sunrpc/svc_run.c: Likewise.
76218         * sunrpc/svc_simple.c: Likewise.
76219         * sunrpc/svc_tcp.c: Likewise.
76220         * sunrpc/svc_udp.c: Likewise.
76221         * sunrpc/svc_unix.c: Likewise.
76222         * sunrpc/svcauth_des.c: Likewise.
76223         * sunrpc/xcrypt.c: Likewise.
76224         * sunrpc/xdr.c: Likewise.
76225         * sunrpc/xdr_array.c: Likewise.
76226         * sunrpc/xdr_float.c: Likewise.
76227         * sunrpc/xdr_mem.c: Likewise.
76228         * sunrpc/xdr_rec.c: Likewise.
76229         * sunrpc/xdr_ref.c: Likewise.
76230         * sunrpc/xdr_sizeof.c: Likewise.
76231         * sunrpc/xdr_stdio.c: Likewise.
76232
76233         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
76234         handling.
76235
76236 2010-08-19  Andreas Schwab  <schwab@redhat.com>
76237
76238         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
76239
76240 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
76241
76242         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
76243         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
76244         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
76245         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
76246         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
76247         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
76248         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
76249         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
76250         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
76251         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
76252         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
76253         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
76254         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
76255         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
76256
76257 2010-07-26  Anton Blanchard  <anton@samba.org>
76258
76259         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
76260         * malloc/arena.c (heap_trim): Likewise.
76261
76262 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
76263
76264         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
76265         here.  Not...
76266         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
76267         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
76268
76269 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
76270
76271         * sysdeps/i386/elf/Makefile: New file.
76272
76273 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76274
76275         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
76276         from fanotify_init.
76277         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
76278         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76279
76280 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
76281
76282         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
76283         of strncasecmp_l.
76284         * sysdeps/multiarch/strcmp.S: Likewise.
76285
76286 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
76287
76288         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76289         strncase_l-nonascii.
76290         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76291         Add strncase_l-ssse3.
76292         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
76293         * sysdeps/x86_64/strcmp.S: Likewise.
76294         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
76295         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
76296         * sysdeps/x86_64/strncase.S: New file.
76297         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
76298         * sysdeps/x86_64/strncase_l.S: New file.
76299         * string/Makefile (strop-tests): Add strncasecmp.
76300         * string/test-strncasecmp.c: New file.
76301
76302         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
76303         warning.
76304
76305         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
76306         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
76307
76308 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76309
76310         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
76311
76312 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
76313
76314         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
76315         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
76316         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
76317
76318 2010-05-01  Alan Modra  <amodra@gmail.com>
76319
76320         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
76321         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
76322         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
76323         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
76324         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
76325         tidying.  Don't tail-call __sigjmp_save for static lib.
76326         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
76327         save location.
76328         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
76329         (CALL_MCOUNT): Add eh info, and nop after bl.
76330         (TAIL_CALL_SYSCALL_ERROR): New macro.
76331         (PSEUDO_RET): Use it.
76332         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
76333         Correct save location of integer regs and cr.
76334         (_dl_profile_resolve): Correct cr save location.  Delete nops
76335         after bl when SHARED.  Reduce cfi size a little by better
76336         placement of cfi directives.
76337         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
76338         make a stack frame.  Instead use parm save area as a temp.
76339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
76340         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
76341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
76342         Don't make a stack frame for parent, use parm save area.
76343         Increase child stack frame to 112 bytes.  Don't save unused reg,
76344         and adjust reg usage.  Set up cfi on error recovery and
76345         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
76346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
76347         (__makecontext): Add dummy nop after jump to exit.
76348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
76349         Use correct parm save area and cr save, reduce stack frame.
76350         Correct cfi for possible PSEUDO_RET frame setup.
76351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
76352         Branch to local label emitted by PSEUDO_RET rather than
76353         __syscall_error.
76354
76355 2010-08-12  Andreas Schwab  <schwab@redhat.com>
76356
76357         [BZ #11904]
76358         * locale/programs/locale.c (print_assignment): New function.
76359         (show_locale_vars): Use it.
76360
76361 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
76362
76363         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
76364         field.
76365         (struct statfs64): Likewise.
76366         (_STATFS_F_FLAGS): Define.
76367         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
76368         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76369         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
76370         (ST_VALID): Define locally.
76371         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
76372         __statvfs_getflags, use the provided value.
76373         * sysdeps/unix/sysv/linux/kernel-features.h: Define
76374         __ASSUME_STATFS_F_FLAGS.
76375
76376         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
76377
76378         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
76379         Add sys/fanotify.h.
76380         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
76381         fanotify_mask for GLIBC_2.13.
76382         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
76383         fanotify_init and fanotify_mark.
76384         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76385         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
76386
76387         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
76388         Add prlimit.
76389         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
76390         prlimit64 for GLIBC_2.13.
76391         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
76392         prlimit64.
76393         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
76394         syscall.
76395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
76396         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76397         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
76398         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
76399         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
76400         add prlimit alias.
76401         * sysdeps/unix/sysv/linux/prlimit.c: New file.
76402
76403         [BZ #11903]
76404         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
76405         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
76406
76407         * nss/Makefile: Add rules to build and run tst-nss-test1.
76408         * shlib-versions: Add entry for libnss_test1.
76409         * nss/nss_test1.c: New file.
76410         * nss/tst-nss-test1.c: New file.
76411
76412         * nss/nsswitch.c (__nss_database_custom): Define new variable.
76413         (__nss_configure_lookup): Set appropriate entry in
76414         __nss_configure_lookup to true.
76415         * nss/nsswitch.h: Define enum with indeces of databases in
76416         databases and __nss_database_custom arrays.  Declare
76417         __nss_database_custom.
76418         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
76419         to avoid using nscd when custom rules are installed.
76420         * nss/getXXbyYY_r.c: Likewise.
76421         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
76422
76423         * nss/nss_files/files-parse.c: Whitespace fixes.
76424
76425 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
76426
76427         [BZ #11883]
76428         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
76429         * posix/fnmatch_loop.c: Likewise.
76430
76431 2010-07-17  Andi Kleen  <ak@linux.intel.com>
76432
76433         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
76434         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
76435         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
76436         * Versions.def [GLIBC_2.13]: Add.
76437
76438 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
76439
76440         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76441         Also fail if tpwd after pwuid call is NULL.
76442
76443 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76444
76445         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
76446         when converting to ms.
76447
76448 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76449
76450         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
76451         EOPNOTSUPP errors with ENOTTY.
76452         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
76453         EOPNOTSUPP errors with ENOTTY.
76454
76455 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
76456
76457         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76458         Add strcasecmp_l-ssse3.
76459         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
76460         strcasecmp.
76461         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
76462         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
76463         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
76464
76465 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
76466
76467         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
76468
76469         * string/Makefile (strop-tests): Add strcasecmp.
76470         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76471         strcasecmp_l-nonascii.
76472         (gen-as-const-headers): Add locale-defines.sym.
76473         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
76474         * sysdeps/x86_64/strcasecmp.S: New file.
76475         * sysdeps/x86_64/strcasecmp_l.S: New file.
76476         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
76477         * sysdeps/x86_64/locale-defines.sym: New file.
76478         * string/test-strcasecmp.c: New file.
76479
76480         * string/test-strcasestr.c: Test both ends of the range of characters.
76481         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
76482
76483 2010-07-29  Roland McGrath  <roland@redhat.com>
76484
76485         [BZ #11856]
76486         * manual/locale.texi (Yes-or-No Questions): Fix example code.
76487
76488 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
76489
76490         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
76491         for ld.so.
76492
76493 2010-07-27  Andreas Schwab  <schwab@redhat.com>
76494
76495         * manual/memory.texi (Malloc Tunable Parameters): Document
76496         M_PERTURB.
76497
76498 2010-07-26  Roland McGrath  <roland@redhat.com>
76499
76500         [BZ #11840]
76501         * configure.in (-fgnu89-inline check): Set and substitute
76502         gnu89_inline, not libc_cv_gnu89_inline.
76503         * configure: Regenerated.
76504         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
76505
76506 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
76507
76508         * string/test-strnlen.c: New file.
76509         * string/Makefile (strop-tests): Add strnlen.
76510         * string/tester.c (test_strnlen): Add a few more test cases.
76511         * string/tst-strlen.c: Better error reporting.
76512
76513         * sysdeps/x86_64/strnlen.S: New file.
76514
76515 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
76516
76517         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
76518         lower-latency instructions.
76519
76520 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
76521
76522         * string/test-strcasestr.c: New file.
76523         * string/test-strstr.c: New file.
76524         * string/Makefile (strop-tests): Add strstr and strcasestr.
76525         * string/str-two-way.h: Don't undefine MAX.
76526         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
76527
76528 2010-07-21  Andreas Schwab  <schwab@redhat.com>
76529
76530         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76531         strcasestr-nonascii.
76532         (CFLAGS-strcasestr-nonascii.c): Define.
76533         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
76534         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
76535         Remove unused attribute.
76536
76537 2010-07-20  Roland McGrath  <roland@redhat.com>
76538
76539         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
76540         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
76541         ld.so.cache was broken.  With it, there is no way to disable dsocaps
76542         like LD_HWCAP_MASK can disable hwcaps.
76543
76544 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76545
76546         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
76547
76548 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
76549
76550         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
76551         call in strcasestr.
76552         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
76553         __strcasestr_sse42_nonascii.
76554         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
76555         strcasestr-nonascii.c.
76556         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
76557
76558 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
76559
76560         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
76561         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
76562         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
76563         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
76564
76565 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
76566
76567         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
76568         fcntl.
76569
76570 2010-07-06  Andreas Schwab  <schwab@redhat.com>
76571
76572         [BZ #11577]
76573         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
76574         dl_signal_cerror.
76575
76576 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
76577
76578         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
76579         _PC_PIPE_BUF using F_GETPIPE_SZ.
76580
76581 2010-07-05  Roland McGrath  <roland@redhat.com>
76582
76583         * manual/arith.texi (Rounding Functions): Fix rint description
76584         implicit in round description.
76585
76586 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
76587
76588         * elf/Makefile: Fix linking for a few tests to make recent linker
76589         happy.
76590
76591 2010-06-30  Andreas Schwab  <schwab@redhat.com>
76592
76593         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
76594         $(common-objpfx)libc_nonshared.a.
76595
76596 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
76597
76598         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
76599         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
76600         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76601         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76602         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
76603         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
76604         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76605         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
76607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
76608         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
76609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
76611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
76613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
76614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
76615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
76616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
76618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
76620         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
76621         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
76622         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
76623         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
76624         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
76625         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
76626         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
76627         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
76628         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
76629         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
76630         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
76631         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
76632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
76633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
76634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
76635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
76636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
76637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
76638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
76639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
76640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
76641         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
76642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
76643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
76644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
76645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
76646
76647 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
76648
76649         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
76650         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
76651         * string/memmove.c (memmove): Renamed to ...
76652         (MEMMOVE): ...this.  Default to memmove.
76653         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
76654         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
76655         (END_CHK): Define.
76656         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76657         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
76658         mempcpy-ssse3-back memmove-ssse3-back.
76659         * sysdeps/x86_64/multiarch/bcopy.S: New file .
76660         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
76661         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
76662         * sysdeps/x86_64/multiarch/memcpy.S: New file.
76663         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
76664         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
76665         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
76666         * sysdeps/x86_64/multiarch/memmove.c: New file.
76667         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
76668         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
76669         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
76670         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
76671         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
76672         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
76673         Define.
76674         (index_Fast_Copy_Backward): Define.
76675         (HAS_ARCH_FEATURE): Define.
76676         (HAS_FAST_REP_STRING): Define.
76677         (HAS_FAST_COPY_BACKWARD): Define.
76678
76679 2010-06-21  Andreas Schwab  <schwab@redhat.com>
76680
76681         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76682         Restore proper fallback handling.
76683
76684 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
76685
76686         [BZ #11701]
76687         * posix/group_member.c (__group_member): Correct checking loop.
76688
76689         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
76690         OOM in getpwuid_r correctly.  Return error number when the caller
76691         should return, otherwise -1.
76692         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
76693         call returning > 0 value.
76694         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
76695
76696 2010-06-07  Andreas Schwab  <schwab@redhat.com>
76697
76698         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
76699         libc_nonshared.a from targets in modules-names.
76700
76701 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
76702
76703         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
76704         requires it.
76705
76706 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
76707
76708         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
76709         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
76710         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
76711         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
76712
76713 2010-06-02  Andreas Schwab  <schwab@redhat.com>
76714
76715         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
76716
76717 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
76718
76719         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
76720         and F_GETPIPE_SZ.
76721         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
76722         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
76723         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
76724         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
76725         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
76726         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
76727
76728 2010-06-14  Roland McGrath  <roland@redhat.com>
76729
76730         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
76731
76732 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
76733
76734         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
76735         __REDIRECT followed by __THROW.
76736         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
76737         * posix/getopt.h (getopt): Likewise.
76738
76739 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76740
76741         * hurd/lookup-at.c (__file_name_lookup_at): Accept
76742         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
76743         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
76744         in AT_FLAGS.
76745         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
76746         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
76747
76748 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
76749
76750         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
76751
76752 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
76753
76754         [BZ #11640]
76755         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76756         Properly check family and model.
76757
76758 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
76759
76760         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
76761
76762 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
76763
76764         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
76765
76766 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
76767
76768         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
76769         symbol reference.
76770
76771 2010-05-19  Andreas Schwab  <schwab@redhat.com>
76772
76773         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
76774         symbol reference.
76775
76776 2010-05-21  Andreas Schwab  <schwab@redhat.com>
76777
76778         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
76779         and internal_recvmmsg.
76780         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
76781         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
76782         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
76783         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
76784
76785         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
76786         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
76787         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
76788
76789 2010-05-20  Andreas Schwab  <schwab@redhat.com>
76790
76791         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
76792
76793 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
76794
76795         POWER7 optimizations.
76796         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
76797         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
76798
76799 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
76800
76801         * version.h: Update for 2.13 development version.
76802
76803 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
76804
76805         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
76806         exceptions.  Return 0.
76807
76808 2010-05-07  Roland McGrath  <roland@redhat.com>
76809
76810         * elf/ldconfig.c (main): Add a const.
76811
76812 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
76813
76814         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
76815         (args_options): Add no-idn option.
76816         (ahosts_keys_int): Add idn_flags to ai_flags.
76817         (parse_option): Handle 'i' option to clear idn_flags.
76818
76819         * malloc/malloc.c (_int_free): Possible race in the most recently
76820         added check.  Only act on the data if no current modification
76821         happened.
76822
76823 See ChangeLog.17 for earlier changes.